[gtksourceview] groovy.lang: fix escaping for PCRE2
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtksourceview] groovy.lang: fix escaping for PCRE2
- Date: Thu, 11 Feb 2021 21:53:13 +0000 (UTC)
commit 009c939810cf0fb3269369702e2cfc66577ad4d8
Author: Christian Hergert <chergert redhat com>
Date: Thu Feb 11 13:53:02 2021 -0800
groovy.lang: fix escaping for PCRE2
While this passed with GRegex, some semantics are different when using
PCRE2 in terms of escaping. This fixes the one-of ranges along with early
closing ) causing errors when loading the language-spec.
Fixes #149
data/language-specs/groovy.lang | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/data/language-specs/groovy.lang b/data/language-specs/groovy.lang
index 82121a6c..7542ca6c 100644
--- a/data/language-specs/groovy.lang
+++ b/data/language-specs/groovy.lang
@@ -154,8 +154,8 @@
# we can't have it match an arbitrary amount of whitespace. Thus, we do an approximate
# check, only trying zero and one spaces.
- (?<! \+\+ | -- | [])}'"\$\d] | \%{letter} |
- \+\+\s | --\s | [])}'"\$\d]\s | \%{letter}\s )
+ (?<! \+\+ | -- | [\]\)}'"\$\d] | \%{letter} |
+ \+\+\s | --\s | [\]\)}'"\$\d]\s | \%{letter}\s )
/
</start>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]