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

Update number highlighting

Added highlighting for longs, octal (both forms), complexes, binary, and hex.
This commit is contained in:
CoffeeTableEnnui 2016-08-30 14:04:41 -07:00 committed by GitHub
parent 9749264079
commit fb3e5eb1b0

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}"