]> git.lizzy.rs Git - micro.git/blobdiff - runtime/syntax/crystal.yaml
Fix incorrect crystal filetype detection
[micro.git] / runtime / syntax / crystal.yaml
index c75843f628af19f09d49d13dc10039222c1d5d9e..ea33b9b3431c81f05a9d335606fdf2b52503dadf 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,14 +32,14 @@ rules:
 
     - constant.string:
         start: "\""
-        end: "(?<!\\\\)\""
+        end: "\""
         rules:
             - constant.specialchar: "\\\\."
             - special: "#\\{[^}]*\\}"
 
     - constant.string:
         start: "'"
-        end: "(?<!\\\\)'"
+        end: "'"
         rules: []
 
     - comment: