1
0
mirror of https://github.com/scopatz/nanorc synced 2024-11-22 08:35:39 +01:00

Merge pull request #113 from CoffeeTableEnnui/patch-4

Update number highlighting
This commit is contained in:
Anthony Scopatz 2016-08-30 17:15:23 -04:00 committed by GitHub
commit 8093ed16c8

View File

@ -30,7 +30,8 @@ color magenta "[.:;,+*|=!\%@]" "<" ">" "/" "-" "&"
color magenta "[(){}]" "\[" "\]"
## numbers
color brightyellow "\b[0-9]+\b"
icolor blue "\b(([1-9][0-9]+)|0+)\.[0-9]+j?\b" "\b([1-9][0-9]*[Lj]?)\b" "\b0o?[0-7]*L?\b" "\b0x[1-9a-f][0-9a-f]*L?\b" "\b0b[01]+\b"
## strings
color yellow "['][^']*[^\\][']" "[']{3}.*[^\\][']{3}"