mirror of
https://github.com/Hopiu/micro.git
synced 2026-04-25 16:44:43 +00: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:
parent
abd36649c9
commit
ce5a867286
2 changed files with 100 additions and 101 deletions
File diff suppressed because one or more lines are too long
|
|
@ -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 "#.*$"
|
||||
|
|
|
|||
Loading…
Reference in a new issue