fix c++ highlighting for binary literal with digit separator and suffix (#3870)

This commit is contained in:
Mikko
2025-10-11 22:59:02 +03:00
committed by GitHub
parent ec8bb7c11d
commit 815ca0b6d8

View File

@@ -71,7 +71,7 @@ rules:
- constant.string:
start: "'"
end: "'"
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)"
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"
rules:
# TODO: Revert back to - error: "..+" once #3127 is merged
- error: "[[:graph:]]{2,}'"