Scanner does not properly track line starts for multi-line raw strings #22794
Labels
legacy-area-analyzer
Use area-devexp instead.
P1
A high priority bug; for example, a single project is unusable or has many test failures
Milestone
Analyzing source:
var a = r'''
blah
''';
b = 1;
yields:
src/scratch.dart 4:1 [syntactic error] Variables must be declared using the keywords 'const', 'final', 'var' or a type name
Net-net the line number should be 5.
I confirmed that making this a non-raw string fixes the line number.
The text was updated successfully, but these errors were encountered: