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: - comment:
start: "#" start: "#"
end: "$" end: "$"
rules: []
# multiline strings do not support escape sequences # multiline strings do not support escape sequences
- constant.string: - constant.string:
start: "'''" start: "'''"
end: "'''" end: "'''"
rules: []
- constant.string: - constant.string:
start: "'" start: "'"

View File

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

View File

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