diff options
author | Kris Maglione <maglione.k@gmail.com> | 2011-01-12 12:25:46 -0500 |
---|---|---|
committer | Kris Maglione <maglione.k@gmail.com> | 2011-01-12 12:25:46 -0500 |
commit | c3a90cf2b346dfc8c00ecb637f1c4f572dbf430b (patch) | |
tree | 9a10d64c9689e97066f8913fc364c9b9fd09b484 /common/modules/highlight.jsm | |
parent | d6e22872d31f00f450cac4720eb5a61492590c22 (diff) | |
download | pentadactyl-c3a90cf2b346dfc8c00ecb637f1c4f572dbf430b.tar.gz |
Add named groups (a la Python) to util.regexp.
Diffstat (limited to 'common/modules/highlight.jsm')
-rw-r--r-- | common/modules/highlight.jsm | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/common/modules/highlight.jsm b/common/modules/highlight.jsm index 00ee36cc..8d5bf05f 100644 --- a/common/modules/highlight.jsm +++ b/common/modules/highlight.jsm @@ -212,11 +212,11 @@ var Highlights = Module("Highlight", { sheetRegexp: util.regexp(<![CDATA[ ^\s* !? \*? - ( (?:[^;\s]|\s[^;\s])+ ) - (?:; ( (?:[^;\s]|\s[^;\s])+ )? )? - (?:; ( (?:[^;\s]|\s[^;\s])+ )? )? - (?:; ( (?:[^;\s]|\s[^;\s])+ )? )? - \s* (.*) + (?P<group> (?:[^;\s]|\s[^;\s])+ ) + (?:; (?P<selector> (?:[^;\s]|\s[^;\s])+ )? )? + (?:; (?P<sites> (?:[^;\s]|\s[^;\s])+ )? )? + (?:; (?P<extends> (?:[^;\s]|\s[^;\s])+ )? )? + \s* (?P<css> .*) $ ]]>), |