Skip to content

Commit 7161f38

Browse files
committed
Special case CStringLiteral in ident validation
1 parent f13662e commit 7161f38

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)