diff --git a/pkg/front_end/lib/src/fasta/source/source_loader.dart b/pkg/front_end/lib/src/fasta/source/source_loader.dart index 2fed84618ac..c42070893bb 100644 --- a/pkg/front_end/lib/src/fasta/source/source_loader.dart +++ b/pkg/front_end/lib/src/fasta/source/source_loader.dart @@ -104,7 +104,8 @@ import '../parser.dart' show Parser, lengthForToken, offsetForToken; import '../problems.dart' show internalProblem; -import '../scanner.dart' show ErrorToken, ScannerResult, Token, scan; +import '../scanner.dart' + show ErrorToken, ScannerConfiguration, ScannerResult, Token, scan; import '../type_inference/interface_resolver.dart' show InterfaceResolver; @@ -200,7 +201,10 @@ class SourceLoader extends Loader { byteCount += rawBytes.length; } - ScannerResult result = scan(bytes, includeComments: includeComments); + ScannerResult result = scan(bytes, + includeComments: includeComments, + configuration: new ScannerConfiguration( + enableTripleShift: target.enableTripleShift)); Token token = result.tokens; if (!suppressLexicalErrors) { List source = getSource(bytes);