]> git.lizzy.rs Git - micro.git/blobdiff - runtime/syntax/python.micro
Remove duplicate PKGBUILD filetype
[micro.git] / runtime / syntax / python.micro
index ed810689ab5af90a164862b9c77f8af39759ab70..ed5f5302307030aece7dab90826425edcd54c0fd 100644 (file)
@@ -1,6 +1,6 @@
 ## Here is an example for Python.
 ##
-syntax "Python" "\.py$"
+syntax "python" "\.py$"
 header "^#!.*/(env +)?python( |$)"
 
 ## built-in objects
@@ -30,11 +30,10 @@ color statement "[.:;,+*|=!\%@]" "<" ">" "/" "-" "&"
 color statement "[(){}]" "\[" "\]"
 
 ## numbers
-color constant "\b[0-9]+\b"
+color constant.number "\b[0-9]+\b"
 
 ## strings
-color constant "['][^']*[^\\][']" "[']{3}.*[^\\][']{3}"
-color constant "["][^"]*[^\\]["]" "["]{3}.*[^\\]["]{3}"
+color constant.string ""(\\.|[^"])*"|'(\\.|[^'])*'"
 
 ## brightblacks
 color comment "#.*$"