]> git.lizzy.rs Git - micro.git/blobdiff - runtime/syntax/crystal.yaml
Merge pull request #1315 from matbesancon/patch-1
[micro.git] / runtime / syntax / crystal.yaml
index c75843f628af19f09d49d13dc10039222c1d5d9e..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
@@ -32,15 +32,18 @@ rules:
 
     - constant.string:
         start: "\""
-        end: "(?<!\\\\)\""
+        end: "\""
+        skip: "\\\\."
         rules:
-            - constant.specialchar: "\\\\."
+            - constant.specialChar: "\\\\."
             - special: "#\\{[^}]*\\}"
 
     - constant.string:
         start: "'"
-        end: "(?<!\\\\)'"
-        rules: []
+        end: "'"
+        skip: "\\\\."
+        rules:
+            - constant.specialChar: "\\\\."
 
     - comment:
         start: "#"