]> git.lizzy.rs Git - micro.git/blobdiff - runtime/syntax/python3.yaml
Merge pull request #613 from GeigerCounter/build_tools
[micro.git] / runtime / syntax / python3.yaml
index 864089ab85a7b453123ada1dbee4b6c6548ecb88..79b353d39fd69f89932cc8b6bcbe4656f9f51fa4 100644 (file)
@@ -28,15 +28,27 @@ rules:
       # numbers
     - constant.number: "\\b[0-9]+\\b"
 
+    - comment:
+        start: "\"\"\""
+        end: "\"\"\""
+        rules: []
+
+    - comment:
+        start: "'''"
+        end: "'''"
+        rules: []
+
     - constant.string:
         start: "\""
         end: "\""
+        skip: "\\\\."
         rules:
             - constant.specialChar: "\\\\."
 
     - constant.string:
         start: "'"
         end: "'"
+        skip: "\\\\."
         rules:
             - constant.specialChar: "\\\\."
 
@@ -45,12 +57,3 @@ rules:
         end: "$"
         rules: []
 
-    - comment:
-        start: "\"\"\""
-        end: "\"\"\""
-        rules: []
-
-    - comment:
-        start: "'''"
-        end: "'''"
-        rules: []