]> git.lizzy.rs Git - micro.git/blobdiff - runtime/syntax/json.yaml
Merge pull request #1412 from tommyshem/batSyntaxHighlighting
[micro.git] / runtime / syntax / json.yaml
index 3b1c0d4ddce01146487f1137ada7f3dcf6a7158a..c590bd388d00db9416db1090e5b10dcbd147a856 100644 (file)
@@ -12,13 +12,16 @@ rules:
     - constant: "\\b(true|false)\\b"
     - constant.string: 
         start: "\""
-        end: "(?<!\\\\)\""
+        end: "\""
+        skip: "\\\\."
         rules:
             - constant.specialChar: "\\\\."
     - constant.string:
         start: "'"
-        end: "(?<!\\\\)'"
+        end: "'"
+        skip: "\\\\."
         rules:
             - constant.specialChar: "\\\\."
+
     - statement: "\\\"(\\\\\"|[^\"])*\\\"[[:space:]]*:\"  \"'(\\'|[^'])*'[[:space:]]*:"
     - constant: "\\\\u[0-9a-fA-F]{4}|\\\\[bfnrt'\"/\\\\]"