[gtksourceview] xml.lang: fix prefix and name regexes



commit 032ed9d72397ec68ca54dd33d1557f42990d565a
Author: Sébastien Wilmet <swilmet gnome org>
Date:   Tue Sep 24 19:14:14 2013 +0200

    xml.lang: fix prefix and name regexes
    
    a-zA-Z doesn't include special characters, like ö, ß, etc.
    Use the [:alpha:] and [:alnum:] character classes instead.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=650667

 data/language-specs/xml.lang |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/data/language-specs/xml.lang b/data/language-specs/xml.lang
index 3fe955c..c148b3e 100644
--- a/data/language-specs/xml.lang
+++ b/data/language-specs/xml.lang
@@ -46,9 +46,9 @@
     </styles>
 
     <definitions>
-        <define-regex id="prefix">[a-zA-Z_][a-zA-Z0-9._-]*</define-regex>
+        <define-regex id="prefix">[[:alpha:]_][[:alnum:]._-]*</define-regex>
 
-        <define-regex id="name">[a-zA-Z_][a-zA-Z0-9.:_-]*</define-regex>
+        <define-regex id="name">[[:alpha:]_][[:alnum:].:_-]*</define-regex>
 
         <context id="entity" style-ref="entity" class="no-spell-check">
             <match>&amp;\%{name};</match>


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