c-family: highlight 0X style int literals

This commit is contained in:
Cormac Stephenson 2022-02-27 11:42:24 +00:00
parent 56c3ab4ff8
commit 6a630ae3e6

View File

@ -217,7 +217,7 @@ evaluate-commands %sh{
} }
# c specific # c specific
add-highlighter shared/c/code/numbers regex %{\b-?(0x[0-9a-fA-F]+|\d+)([uU][lL]{0,2}|[lL]{1,2}[uU]?|[fFdDiI]|([eE][-+]?\d+))?|'((\\.)?|[^'\\])'} 0:value add-highlighter shared/c/code/numbers regex %{\b-?(0[xX][0-9a-fA-F]+|\d+)([uU][lL]{0,2}|[lL]{1,2}[uU]?|[fFdDiI]|([eE][-+]?\d+))?|'((\\.)?|[^'\\])'} 0:value
evaluate-commands %sh{ evaluate-commands %sh{
# Grammar # Grammar
keywords='asm break case continue default do else for goto if return keywords='asm break case continue default do else for goto if return