[gtksourceview/gnome-3-24] python.lang: support dashes in named unicode character



commit d7b63f452c5945c79a005193c4ae703f56c24681
Author: Baptiste Mispelon <bmispelon gmail com>
Date:   Fri Oct 27 18:30:00 2017 +0200

    python.lang: support dashes in named unicode character
    
    For example:
    \N{CLOCK FACE ONE-THIRTY}
    
    https://bugzilla.gnome.org/show_bug.cgi?id=789566

 data/language-specs/python.lang |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/data/language-specs/python.lang b/data/language-specs/python.lang
index 0ad4308..3e51fb1 100644
--- a/data/language-specs/python.lang
+++ b/data/language-specs/python.lang
@@ -83,7 +83,7 @@
       <match extended="true">
         \\(                 # leading backslash
         [\\'"abfnrtv]     | # single escaped char
-        N\{[A-Z\ ]+\}     | # named unicode character
+        N\{[0-9A-Z\ -]+\} | # named unicode character
         u[0-9A-Fa-f]{4}   | # xxxx - character with 16-bit hex value xxxx
         U[0-9A-Fa-f]{8}   | # xxxxxxxx - character with 32-bit hex value xxxxxxxx
         x[0-9A-Fa-f]{1,2} | # \xhh - character with hex value hh


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]