Case-insensitive highlighting of hexadecimal constants

This commit is contained in:
john-batch
2021-08-15 16:00:41 +02:00
committed by Zachary Yedidia
parent 02ef99a3a6
commit c226779aca
10 changed files with 33 additions and 37 deletions

View File

@@ -25,7 +25,7 @@ rules:
- statement: "([.:;,+*|=!\\%\\[\\]]|<|>|/|-|&)"
- constant.number: "(\\b(-?)?[0-9]+\\b|\\b\\[0-9]+\\.[0-9]+\\b|\\b0x[0-9A-F]+\\b)"
- constant.number: "(\\b(-?)?[0-9]+\\b|\\b\\[0-9]+\\.[0-9]+\\b|\\b0x[0-9a-fA-F]+\\b)"
- constant: "(@\\[(\\\\.|[^\\]])*\\]|@\\{(\\\\.|[^\\}])*\\}|@\\((\\\\.|[^\\)])*\\))"
- constant: "\\b<(\\\\.[^\\>])*\\>\\b"
- constant: "\\b(nil|NULL|YES|NO|TRUE|true|FALSE|false|self)\\b"
@@ -57,4 +57,3 @@ rules:
end: "\\*/"
rules:
- todo: "(TODO|XXX|FIXME):?"