]> git.lizzy.rs Git - micro.git/blobdiff - runtime/syntax/python2.yaml
Merge pull request #1233 from teresy/simplify-index
[micro.git] / runtime / syntax / python2.yaml
index 68e0424d238451e60bce589e46a6250f40649fb3..2bfc7ea63bbf845f4a1b1a762282da225f254051 100644 (file)
@@ -29,7 +29,7 @@ rules:
       # numbers
     - constant.number: "\\b[0-9]+\\b"
 
-    - comment:
+    - constant.string:
         start: "\"\"\""
         end: "\"\"\""
         rules: []
@@ -41,13 +41,15 @@ rules:
 
     - constant.string:
         start: "\""
-        end: "(?<!\\\\)\""
+        end: "\""
+        skip: "\\\\."
         rules:
             - constant.specialChar: "\\\\."
 
     - constant.string:
         start: "'"
-        end: "(?<!\\\\)'"
+        end: "'"
+        skip: "\\\\."
         rules:
             - constant.specialChar: "\\\\."