syntax: Add the empty rules: [] to the files currently "missing" them

This commit is contained in:
Jöran Karl
2025-08-31 18:53:45 +02:00
parent 3fd2fe3cc7
commit d9245d9659
3 changed files with 4 additions and 0 deletions

View File

@@ -34,11 +34,13 @@ rules:
- comment:
start: "#"
end: "$"
rules: []
# multiline strings do not support escape sequences
- constant.string:
start: "'''"
end: "'''"
rules: []
- constant.string:
start: "'"

View File

@@ -15,6 +15,7 @@ rules:
- constant.string:
start: "\""
end: "\""
rules: []
# Integer Constants
- constant.number: "\\b([0-9]+)\\b"
- constant.number: "\\b(0x[0-9a-fA-F]+)\\b"

View File

@@ -25,6 +25,7 @@ rules:
- constant:
start: "[$]([!@&`'+~=/\\\\,;.<>*$?:\"_]|-[A-Za-z0-9_]|[0-9]+)"
end: "\\B|\\b"
rules: []
# Ruby "Symbols"
- constant: "(i?)([ ]|^):[0-9A-Z_]+\\b"
- constant: "\\b(__FILE__|__LINE__)\\b"