mirror of
https://github.com/zyedidia/micro.git
synced 2026-03-07 13:20:21 +09:00
Changed Python syntax file to use Go's regex for matching string literals (which also works for empty strings)
This commit is contained in:
@@ -33,8 +33,7 @@ color statement "[(){}]" "\[" "\]"
|
||||
color constant "\b[0-9]+\b"
|
||||
|
||||
## strings
|
||||
color constant.string "['][^']*[^\\][']" "[']{3}.*[^\\][']{3}"
|
||||
color constant.string "["][^"]*[^\\]["]" "["]{3}.*[^\\]["]{3}"
|
||||
color constant.string ""(\\.|[^"])*"|'(\\.|[^'])*'"
|
||||
|
||||
## brightblacks
|
||||
color comment "#.*$"
|
||||
|
||||
Reference in New Issue
Block a user