1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-02-24 10:45:46 +01:00

Require "x" flag in util.regexp for "extended" regex processing.

This commit is contained in:
Kris Maglione
2011-02-15 13:06:40 -05:00
parent 5d53adcebc
commit 5606b96957
9 changed files with 51 additions and 42 deletions

View File

@@ -473,7 +473,7 @@ var Styles = Module("Styles", {
)?
)
(?P<postSpace> <space>* (?: ; | $) )
]]>, "gi",
]]>, "gix",
{
space: /(?: \s | \/\* .*? \*\/ )/,
string: /(?:" (?:[^\\"]|\\.)* (?:"|$) | '(?:[^\\']|\\.)* (?:'|$) )/
@@ -491,7 +491,7 @@ var Styles = Module("Styles", {
)?
)
(?P<postSpace> <space>* (?: ; | $) )
]]>, "gi", this),
]]>, "gix", this),
get function() util.regexp(<![CDATA[
(?P<function>
@@ -499,7 +499,7 @@ var Styles = Module("Styles", {
(?: <string> | [^)]* )
\s* (?: \) | $)
)
]]>, "g", this),
]]>, "gx", this),
space: /(?: \s | \/\* .*? \*\/ )/,
@@ -508,7 +508,7 @@ var Styles = Module("Styles", {
" (?:[^\\"]|\\.)* (?:"|$) |
' (?:[^\\']|\\.)* (?:'|$)
)
]]>, "g", this),
]]>, "gx", this),
get token() util.regexp(<![CDATA[
(?P<token>
@@ -520,7 +520,7 @@ var Styles = Module("Styles", {
| <space>+
| [^;}\s]+
)
]]>, "gi", this)
]]>, "gix", this)
})
}, {
commands: function (dactyl, modules, window) {