Commit 269a2b9
fix(parser): fix ColumnEnd for string and f-string literals
StringLiteral used Previous.Value.Length for ColumnEnd, but Value
excludes quotes. Use Previous.Length (which returns SourceLength
when available) to include the full source extent with quotes.
FStringLiteral set ColumnEnd to the FStringEnd token's column
without accounting for the token's length. Add endToken.Length
so ColumnEnd is one past the closing quote, consistent with other
node types.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent 7ee6f40 commit 269a2b9
File tree
2 files changed
+3
-3
lines changed- src/Sharpy.Compiler/Parser
2 files changed
+3
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
101 | 101 | | |
102 | 102 | | |
103 | 103 | | |
104 | | - | |
| 104 | + | |
105 | 105 | | |
106 | 106 | | |
107 | 107 | | |
| |||
118 | 118 | | |
119 | 119 | | |
120 | 120 | | |
121 | | - | |
| 121 | + | |
122 | 122 | | |
123 | 123 | | |
124 | 124 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
660 | 660 | | |
661 | 661 | | |
662 | 662 | | |
663 | | - | |
| 663 | + | |
664 | 664 | | |
665 | 665 | | |
666 | 666 | | |
| |||
0 commit comments