[gtksourceview] Fixed regexs that needed - in the set
- From: Paolo Borelli <pborelli src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtksourceview] Fixed regexs that needed - in the set
- Date: Sat, 1 Oct 2011 13:55:51 +0000 (UTC)
commit b06feee2c752d3dfc92478632e70dcf8af4ab119
Author: Sapphire Becker <guess logicplace com>
Date: Sun Sep 25 17:30:59 2011 -0700
Fixed regexs that needed - in the set
https://bugzilla.gnome.org/show_bug.cgi?id=660186
data/language-specs/language2.rng | 21 ++++++---------------
1 files changed, 6 insertions(+), 15 deletions(-)
---
diff --git a/data/language-specs/language2.rng b/data/language-specs/language2.rng
index 5d67411..6d542ca 100644
--- a/data/language-specs/language2.rng
+++ b/data/language-specs/language2.rng
@@ -5,6 +5,7 @@
Copyright (C) 2005-2007 Marco Barisione <barisione gmail com>
Copyright (C) 2005-2007 Emanuele Aina
+ Copyright (C) 2011 Sapphire Becker <guess logicplace com>
gtksourceview is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
@@ -32,7 +33,7 @@
<attribute name="id">
<data type="string">
- <param name="pattern">([a-zA-Z0-9_]|-)+</param>
+ <param name="pattern">[a-zA-Z0-9_\-]+</param>
</data>
</attribute>
@@ -91,23 +92,13 @@
<define name="id-type">
<data type="string">
- <!-- FIXME: Why it doesn't work?
- It seems that [a-z-] is unsupported -->
- <!--
- <param name="pattern">([a-zA-Z0-9_-]+:)?[a-zA-Z0-9_-]+</param>
- -->
- <param name="pattern">(([a-zA-Z0-9_]|-)+:)?([a-zA-Z0-9_]|-)+</param>
+ <param name="pattern">([a-zA-Z0-9_\-]+:)?[a-zA-Z0-9_\-]+</param>
</data>
</define>
<define name="ref-type">
<data type="string">
- <!-- FIXME: Why it doesn't work?
- It seems that [a-z-] is unsupported -->
- <!--
- <param name="pattern">([a-zA-Z0-9_-]+:)?[a-zA-Z0-9_-]+(:\*)?</param>
- -->
- <param name="pattern">(([a-zA-Z0-9_]|-)+:)?([a-zA-Z0-9_]|-)+(:\*)?</param>
+ <param name="pattern">([a-zA-Z0-9_\-]+:)?[a-zA-Z0-9_\-]+(:\*)?</param>
</data>
</define>
@@ -141,7 +132,7 @@
<element name="property">
<attribute name="name">
<!-- <data type="string">-->
-<!-- <param name="pattern">([a-zA-Z0-9_]|-)+</param>-->
+<!-- <param name="pattern">[a-zA-Z0-9_\-]+</param>-->
<!-- </data>-->
</attribute>
<text/>
@@ -165,7 +156,7 @@
<element name="style">
<attribute name="id">
<data type="string">
- <param name="pattern">([a-zA-Z0-9_]|-)+</param>
+ <param name="pattern">[a-zA-Z0-9_\-]+</param>
</data>
</attribute>
<choice>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]