Skip to content

Commit 342ea80

Browse files
Merge #501
501: Special case CStringLiteral in ident validation r=pietroalbini a=Veykril Co-authored-by: Lukas Wirth <[email protected]>
2 parents f13662e + 7161f38 commit 342ea80

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

exts/ferrocene_spec/syntax_directive.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -162,6 +162,10 @@ def is_syntax_identifier(identifier):
162162
# the problematic part of the identifier.
163163
if identifier.startswith("XID_"):
164164
identifier = identifier[len("XID_") :]
165+
# An unfortunate case where we end up with a single letter prefix violating
166+
# our rules. Special case this like above by avoiding the rule breakage.
167+
if identifier == "CStringLiteral":
168+
identifier = "CstringLiteral"
165169

166170
expected = EXPECT_UPPER
167171
for char in identifier:

0 commit comments

Comments
 (0)