[gtksourceview/gnome-3-14] Fix regex modifiers in javascript.lang
- From: Sébastien Wilmet <swilmet src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtksourceview/gnome-3-14] Fix regex modifiers in javascript.lang
- Date: Thu, 5 Mar 2015 15:16:56 +0000 (UTC)
commit 68220fe57af72dec579fe1947654125504c10cc4
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]