Revert "syntax: Remove empty rules in regions"

This reverts commit a9b513a28a.
This commit is contained in:
Jöran Karl
2025-08-31 13:47:53 +02:00
parent b8057f28c6
commit 0277516eef
69 changed files with 138 additions and 0 deletions

View File

@@ -31,18 +31,22 @@ rules:
- constant.string:
start: "[bc]?r#\""
end: "\"#"
rules: []
- constant.string:
start: "[bc]?r##\""
end: "\"##"
rules: []
- constant.string:
start: "[bc]?r###\""
end: "\"###"
rules: []
- constant.string:
start: "[bc]?r####+\""
end: "\"####+"
rules: []
# Character literals
# NOTE: This is an ugly hack to work around the fact that rust uses
@@ -54,6 +58,7 @@ rules:
- constant.string:
start: "'\""
end: "'"
rules: []
- comment:
start: "//"
@@ -70,3 +75,4 @@ rules:
- special:
start: "#!\\["
end: "\\]"
rules: []