mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-19 22:27:58 +01:00
Hackier but more reliable literal() stuff.
This commit is contained in:
@@ -215,18 +215,18 @@ var Abbreviations = Module("abbreviations", {
|
||||
nonkeyword: /[ "']/
|
||||
};
|
||||
|
||||
this._match = util.regexp(literal(/*
|
||||
this._match = util.regexp(literal(function () /*
|
||||
(^ | \s | <nonkeyword>) (<keyword>+ )$ | // full-id
|
||||
(^ | \s | <keyword> ) (<nonkeyword>+ <keyword>)$ | // end-id
|
||||
(^ | \s ) (\S* <nonkeyword> )$ // non-id
|
||||
*/), "x", params);
|
||||
this._check = util.regexp(literal(/*
|
||||
*/$), "x", params);
|
||||
this._check = util.regexp(literal(function () /*
|
||||
^ (?:
|
||||
<keyword>+ | // full-id
|
||||
<nonkeyword>+ <keyword> | // end-id
|
||||
\S* <nonkeyword> // non-id
|
||||
) $
|
||||
*/), "x", params);
|
||||
*/$), "x", params);
|
||||
},
|
||||
|
||||
get allHives() contexts.allGroups.abbrevs,
|
||||
|
||||
Reference in New Issue
Block a user