Skip to content

Commit

Permalink
Correct 2xgrammar rules for compilation unit name
Browse files Browse the repository at this point in the history
  • Loading branch information
RexJaeschke authored May 25, 2024
1 parent d67b599 commit aa3b762
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions standard/lexical-structure.md
Original file line number Diff line number Diff line change
Expand Up @@ -1488,12 +1488,12 @@ fragment PP_Line_Indicator
;
fragment PP_Compilation_Unit_Name
: '"' PP_Compilation_Unit_Name_Character+ '"'
: '"' PP_Compilation_Unit_Name_Character* '"'
;
fragment PP_Compilation_Unit_Name_Character
// Any Input_Character except "
: ~('\u000D' | '\u000A' | '\u0085' | '\u2028' | '\u2029' | '#')
: ~('\u000D' | '\u000A' | '\u0085' | '\u2028' | '\u2029' | '"')
;
```
Expand Down

0 comments on commit aa3b762

Please sign in to comment.