Skip to content

Commit

Permalink
Merge #501
Browse files Browse the repository at this point in the history
501: Special case CStringLiteral in ident validation r=pietroalbini a=Veykril



Co-authored-by: Lukas Wirth <lukastw97@gmail.com>
  • Loading branch information
bors-ferrocene[bot] and Veykril committed Jun 14, 2024
2 parents f13662e + 7161f38 commit 342ea80
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions exts/ferrocene_spec/syntax_directive.py
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,10 @@ def is_syntax_identifier(identifier):
# the problematic part of the identifier.
if identifier.startswith("XID_"):
identifier = identifier[len("XID_") :]
# An unfortunate case where we end up with a single letter prefix violating
# our rules. Special case this like above by avoiding the rule breakage.
if identifier == "CStringLiteral":
identifier = "CstringLiteral"

expected = EXPECT_UPPER
for char in identifier:
Expand Down

0 comments on commit 342ea80

Please sign in to comment.