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

@@ -29,7 +29,7 @@ rules:
- constant.number: "\\b[0-9](_?[0-9])*(\\.([0-9](_?[0-9])*)?)?(e[0-9](_?[0-9])*)?\\b" # decimal
- constant.number: "\\b0b(_?[01])+\\b" # bin
- constant.number: "\\b0o(_?[0-7])+\\b" # oct
- constant.number: "\\b0x(_?[0-9a-f])+\\b" # hex
- constant.number: "\\b0x(_?[0-9a-fA-F])+\\b" # hex
- constant.string:
start: "\"\"\""