mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-02-04 00:35:45 +01:00
Fix CSS property completion issue.
--HG-- branch : key-processing
This commit is contained in:
@@ -331,9 +331,12 @@ var Styles = Module("Styles", {
|
||||
|
||||
propertyIter: function (str, always) {
|
||||
let i = 0;
|
||||
for (let match in this.propertyPattern.iterate(str))
|
||||
if (always && !i++ || match[0] && match.value)
|
||||
for (let match in this.propertyPattern.iterate(str)) {
|
||||
if (match.value || always && match.name || match.wholeMatch === match.preSpace && always && !i++)
|
||||
yield match;
|
||||
if (!/;/.test(match.postSpace))
|
||||
break;
|
||||
}
|
||||
},
|
||||
|
||||
propertyPattern: util.regexp(<![CDATA[
|
||||
|
||||
Reference in New Issue
Block a user