[gtksourceview] Fix regex modifiers in javascript.lang
- From: Sébastien Wilmet <swilmet src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtksourceview] Fix regex modifiers in javascript.lang
- Date: Wed, 4 Mar 2015 11:04:08 +0000 (UTC)
commit a868a99acfcbc110266cfb09d1b87c994f4aa0c6
Author: Robert Whitebit <robert whitebit gmail com>
Date: Tue Feb 17 19:48:08 2015 +0100
Fix regex modifiers in javascript.lang
The only valid regex modifiers in javascript are i, g and m [1].
Changed regex modifiers from [iomx]*[neus]?[iomx]* to [gim]*
[1] http://www.w3schools.com/jsref/jsref_obj_regexp.asp
https://bugzilla.gnome.org/show_bug.cgi?id=680203
data/language-specs/javascript.lang | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/data/language-specs/javascript.lang b/data/language-specs/javascript.lang
index 8c544ca..cd15040 100644
--- a/data/language-specs/javascript.lang
+++ b/data/language-specs/javascript.lang
@@ -51,7 +51,7 @@
<definitions>
<!--regex-->
- <define-regex id="regex-opts">[iomx]*[neus]?[iomx]*</define-regex>
+ <define-regex id="regex-opts">[gim]*</define-regex>
<!--contexts NOT used in the main context-->
<context id="escape" style-ref="escape">
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]