From 39f19f3d6eb6532873fe991f5708203aad1c02c0 Mon Sep 17 00:00:00 2001 From: Philipp Leo Dylong Date: Thu, 5 May 2016 12:07:14 +0200 Subject: [PATCH] added Unicode and Integer Literals --- swift.nanorc | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/swift.nanorc b/swift.nanorc index ab56c6f..d1af78e 100644 --- a/swift.nanorc +++ b/swift.nanorc @@ -23,8 +23,16 @@ color magenta "\<(init)\>" # Attribute color red "(@+[a-zA-Z]+)" -# Numbers +# Numbers / Decimal Literal 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 color brightmagenta "\<((U)?Int(8|16|32|64))\>"