Skip to content

Commit

Permalink
Don't tokenize whitespace in raw strings
Browse files Browse the repository at this point in the history
  • Loading branch information
marijnh committed Mar 23, 2021
1 parent d3fb911 commit 100a750
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/cpp.grammar
Original file line number Diff line number Diff line change
Expand Up @@ -528,6 528,8 @@ FieldDesignator {
stringLiteralStart (stringLiteralContent | EscapeSequence)* stringLiteralEnd
}

RawString { rawStringStart rawStringContent* rawStringEnd }

Macro[@dynamicPrecedence=-10] { MacroName (whitespace? ArgumentList?) }
}

Expand Down Expand Up @@ -840,8 842,6 @@ primitiveType {
"char16_t" | "char32_t" | "char64_t">
}

RawString { rawStringStart rawStringContent* rawStringEnd }

kw<term> { @specialize[@name={term}]<identifier, term> }

skw<term> { @specialize[@name={term}]<scopedIdentifier, term> }
Expand Down

0 comments on commit 100a750

Please sign in to comment.