]> git.lizzy.rs Git - micro.git/blobdiff - runtime/syntax/yaml.yaml
Add support for skipping and remove need for lookbehind
[micro.git] / runtime / syntax / yaml.yaml
index 2ca334f302a5291f3b6b465ac31427f11b0bcd6a..63f28bf84a8f6e3c55ccbe256700f437812aebd5 100644 (file)
@@ -10,7 +10,8 @@ rules:
     - constant: "\\b(true|false)\\b"
     - statement: "(:[[:space:]]|\\[|\\]|:[[:space:]]+[|>]|^[[:space:]]*- )"
     - identifier: "[[:space:]][\\*&][A-Za-z0-9]+"
-    - type: "([-\\w]+:\\s+)|([-\\w]+:$)"
+    - type: "[-.\\w]+:"
+    - statement: ":"
     - special:  "(^---|^\\.\\.\\.|^%YAML|^%TAG)"
 
     - constant.string:
@@ -30,3 +31,4 @@ rules:
         end: "$"
         rules: []
 
+