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
+6 -3
View File
@@ -1,7 +1,7 @@
filetype: crystal
detect:
filename: "\\.cr$|Gemfile|config.ru|Rakefile|Capfile|Vagrantfile"
filename: "\\.cr$"
rules:
# Asciibetical list of reserved words
@@ -33,14 +33,17 @@ rules:
- constant.string:
start: "\""
end: "\""
skip: "\\\\."
rules:
- constant.specialchar: "\\\\."
- constant.specialChar: "\\\\."
- special: "#\\{[^}]*\\}"
- constant.string:
start: "'"
end: "'"
rules: []
skip: "\\\\."
rules:
- constant.specialChar: "\\\\."
- comment:
start: "#"