mirror of
https://github.com/scopatz/nanorc
synced 2024-11-27 12:25:53 +01:00
added Unicode and Integer Literals
This commit is contained in:
parent
f8f7242417
commit
39f19f3d6e
10
swift.nanorc
10
swift.nanorc
|
@ -23,8 +23,16 @@ color magenta "\<(init)\>"
|
||||||
# Attribute
|
# Attribute
|
||||||
color red "(@+[a-zA-Z]+)"
|
color red "(@+[a-zA-Z]+)"
|
||||||
|
|
||||||
# Numbers
|
# Numbers / Decimal Literal
|
||||||
color blue "\<([0-9]+)\>"
|
color blue "\<([0-9]+)\>"
|
||||||
|
# Unicode Literal "U+"
|
||||||
|
color blue "\<(U\++[0-9A-Z]+)\>"
|
||||||
|
# Binary Literal "0b"
|
||||||
|
color blue "\<(0b+[0-1]+)\>"
|
||||||
|
# Octal Literal "0o"
|
||||||
|
color blue "\<(0o+[0-7]+)\>"
|
||||||
|
# Hexadecimal Literal "0x"
|
||||||
|
color blue "\<(0x+[0-9A-Fa-f]+)\>"
|
||||||
|
|
||||||
# Standard Types
|
# Standard Types
|
||||||
color brightmagenta "\<((U)?Int(8|16|32|64))\>"
|
color brightmagenta "\<((U)?Int(8|16|32|64))\>"
|
||||||
|
|
Loading…
Reference in New Issue
Block a user