]> git.lizzy.rs Git - micro.git/blobdiff - runtime/syntax/crystal.yaml
Merge pull request #1412 from tommyshem/batSyntaxHighlighting
[micro.git] / runtime / syntax / crystal.yaml
index ae28480d3ab4e6f6ce687f8eab67b35a92ff0f02..de80e531981317ebe4b7bf6e0b648813aae073c8 100644 (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: "#"