]> git.lizzy.rs Git - micro.git/blobdiff - runtime/syntax/python2.yaml
Merge branch 'python-highlight-zero' of https://github.com/a11ce/micro into a11ce...
[micro.git] / runtime / syntax / python2.yaml
index 34ca634929c8a5245b3c377389db35c5b209f877..f13319377403d0f0e550a731e643c59e8d75a8ea 100644 (file)
@@ -1,8 +1,8 @@
-filetype: python
+filetype: python2
 
 detect:
-    filename: "\\.py$"
-    header: "^#!.*/(env +)?python( |$)"
+    filename: "\\.py2$"
+    header: "^#!.*/(env +)?python2$"
 
 rules:
 
@@ -29,7 +29,7 @@ rules:
       # numbers
     - constant.number: "\\b[0-9]+\\b"
 
-    - comment:
+    - constant.string:
         start: "\"\"\""
         end: "\"\"\""
         rules: []