1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-02-17 22:25:47 +01:00

Hopefully remove some :abbrev silliiodocy.

This commit is contained in:
Kris Maglione
2010-10-18 00:07:19 -04:00
parent 1e3ce10290
commit 23a4bde382
4 changed files with 60 additions and 37 deletions

View File

@@ -258,9 +258,7 @@ const Styles = Module("Styles", {
});
},
propertyPattern: (function () {
const string = /(?:"(?:[^\\"]|\\.)*(?:"|$)|'(?:[^\\']|\\.)*(?:'|$))/.source;
return RegExp(String.replace(<![CDATA[
propertyPattern: util.regexp(<![CDATA[
(?:
(\s*)
([-a-z]*)
@@ -270,19 +268,18 @@ const Styles = Module("Styles", {
[-\w]
(?:
\s* \( \s*
(?: S | [^)]* )
(?: <string> | [^)]* )
\s* (?: \) | $)
)?
\s*
| \s* S \s* | [^;}]*
| \s* <string> \s* | [^;}]*
)*
)
)?
)
(\s* (?: ; | $) )
]]>, /S/g, string).replace(/\s*/g, ""),
"gi");
})()
]]>, "gi",
{ string: /(?:"(?:[^\\"]|\\.)*(?:"|$)|'(?:[^\\']|\\.)*(?:'|$))/ })
}, {
commands: function (dactyl, modules, window) {
const commands = modules.commands;