Skip to content

Commit 815ca0b

Browse files
fix c++ highlighting for binary literal with digit separator and suffix (#3870)
1 parent ec8bb7c commit 815ca0b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

runtime/syntax/cpp.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ rules:
7171
- constant.string:
7272
start: "'"
7373
end: "'"
74-
skip: "(\\\\.)|(\\b[1-9][0-9']+[0-9]|0[0-7']+[0-7]|0[Xx][0-9A-Fa-f][0-9A-Fa-f']+[0-9A-Fa-f]|0[Bb][01][01']*[01]\\b)"
74+
skip: "(\\\\.)|\\b([1-9][0-9']+[0-9]|0[0-7']+[0-7]|0[Xx][0-9A-Fa-f][0-9A-Fa-f']+[0-9A-Fa-f]|0[Bb][01][01']*[01])([Uu][Ll]?[Ll]?|[Ll][Ll]?[Uu]?)?\\b"
7575
rules:
7676
# TODO: Revert back to - error: "..+" once #3127 is merged
7777
- error: "[[:graph:]]{2,}'"

0 commit comments

Comments
 (0)