]> git.lizzy.rs Git - micro.git/blobdiff - runtime/syntax/d.yaml
Merge branch 'python-highlight-zero' of https://github.com/a11ce/micro into a11ce...
[micro.git] / runtime / syntax / d.yaml
index 98dd8a424436ad909c46f5688a9f247b0f50f508..db9fd6951414b17f78f5bc0f991ad03988eb8b59 100644 (file)
@@ -26,7 +26,8 @@ rules:
     # Character literals
     - constant.string:
         start: "'"
-        end: "(?<!\\\\)'"
+        end: "'"
+        skip: "\\\\."
         rules:
             - constant.specialChar: "\\\\."
     # Keywords
@@ -52,13 +53,14 @@ rules:
     # DoubleQuotedString
     - constant.string: 
         start: "\""
-        end: "(?<!\\\\)\""
+        end: "\""
+        skip: "\\\\."
         rules: 
             - constant.specialChar: "\\\\."
     # WysiwygString
     - constant.string:
         start: "r\""
-        end: "(?<!\\\\)\""
+        end: "\""
         rules:
             - constant.specialChar: "\\\\."
     - constant.string:
@@ -69,7 +71,7 @@ rules:
     # HexString
     - constant.string:
         start: "x\""
-        end: "(?<!\\\\)\""
+        end: "\""
         rules:
             - constant.specialChar: "\\\\."
     # DelimitedString