Fix region highlighting and skipping

Ref #8
This commit is contained in:
Zachary Yedidia
2017-03-30 10:33:52 -04:00
parent 98b6b4f75e
commit c6faee5e6c
52 changed files with 161 additions and 58 deletions
+3 -1
View File
@@ -1,7 +1,7 @@
filetype: csharp
detect:
filename: "\\.cs"
filename: "\\.cs$"
rules:
# Class
@@ -24,6 +24,7 @@ rules:
- constant.string:
start: "\""
end: "\""
skip: "\\\\."
rules:
- constant.specialChar: "\\\\([btnfr]|'|\\\"|\\\\)"
- constant.specialChar: "\\\\u[A-Fa-f0-9]{4}"
@@ -31,6 +32,7 @@ rules:
- constant.string:
start: "'"
end: "'"
skip: "\\\\."
rules:
- constant.specialChar: "\\\\([btnfr]|'|\\\"|\\\\)"
- constant.specialChar: "\\\\u[A-Fa-f0-9]{4}"