]> git.lizzy.rs Git - micro.git/blobdiff - runtime/syntax/crystal.yaml
Ruby syntax improvements.
[micro.git] / runtime / syntax / crystal.yaml
index ae28480d3ab4e6f6ce687f8eab67b35a92ff0f02..faf0c7000e345dde5c68f3b054b8705e9382ae12 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,21 @@ rules:
     - constant.string:
         start: "\""
         end: "\""
+        skip: "\\\\."
         rules:
-            - constant.specialchar: "\\\\."
-            - special: "#\\{[^}]*\\}"
+            - constant.specialChar: "\\\\."
+            - symbol.brackets:
+                start: "#\\{"
+                end: "\\}"
+                rules:
+                    - default: ".*"
 
     - constant.string:
         start: "'"
         end: "'"
-        rules: []
+        skip: "\\\\."
+        rules:
+            - constant.specialChar: "\\\\."
 
     - comment:
         start: "#"