[gtksourceview] Fix negative lookbehind regex for 'keyword-char-class'.



commit 2970edca5089f08142f2a77422ab87dfd0f2be1c
Author: Mark Corbin <mark dibsco co uk>
Date:   Sun Sep 15 15:18:03 2013 +0100

    Fix negative lookbehind regex for 'keyword-char-class'.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=708113

 gtksourceview/gtksourcelanguage-parser-2.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gtksourceview/gtksourcelanguage-parser-2.c b/gtksourceview/gtksourcelanguage-parser-2.c
index a7c0cfc..7ddd23a 100644
--- a/gtksourceview/gtksourcelanguage-parser-2.c
+++ b/gtksourceview/gtksourcelanguage-parser-2.c
@@ -1484,7 +1484,7 @@ handle_keyword_char_class_element (ParserState *parser_state)
        g_free (parser_state->opening_delimiter);
        g_free (parser_state->closing_delimiter);
 
-       parser_state->opening_delimiter = g_strdup_printf ("(?!<%s)(?=%s)",
+       parser_state->opening_delimiter = g_strdup_printf ("(?<!%s)(?=%s)",
                                                           char_class, char_class);
        parser_state->closing_delimiter = g_strdup_printf ("(?<=%s)(?!%s)",
                                                           char_class, char_class);


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