mirror of
https://github.com/scopatz/nanorc
synced 2024-11-23 19:00:27 +01:00
Update number highlighting
Added highlighting for longs, octal (both forms), complexes, binary, and hex.
This commit is contained in:
parent
9749264079
commit
fb3e5eb1b0
|
@ -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}"
|
||||
|
|
Loading…
Reference in New Issue
Block a user