Changed Python syntax file to use Go's regex for matching string literals (which also works for empty strings)

This commit is contained in:
Timon Böhler
2016-07-13 21:03:16 +02:00
parent abd36649c9
commit ce5a867286
2 changed files with 100 additions and 101 deletions

View File

@@ -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 "#.*$"