Julia syntax improvements (#2415)

* fix D syntax highlighting for integer literals with underscores

* improve julia syntax highlighting for strings, chars and operators
This commit is contained in:
Mikko
2022-05-15 23:00:59 +03:00
committed by GitHub
parent 656e0a8a7b
commit c57c5c04e5
2 changed files with 20 additions and 10 deletions

View File

@@ -10,7 +10,7 @@ rules:
# Octal integer literals are deprecated
- error: "(0[0-7_]*)(L[uU]?|[uU]L?)?"
# Decimal integer literals
- constant.number: "([0-9]|[1-9][0-9_]*)(L[uU]?|[uU]L?)?"
- constant.number: "([0-9]|[1-9][0-9_]*)(L[uU]?|[uU]L?)?\\b"
# Binary integer literals
- constant: "(0[bB][01_]*)(L[uU]?|[uU]L?)?"
# Decimal float literals