fixup: ignore grammar in (), preserve -
in LC
This commit is contained in:
parent
9cc4696927
commit
dfed35c1f4
|
@ -152,7 +152,7 @@
|
||||||
if (prop) {
|
if (prop) {
|
||||||
if (/[^-\w]/.test(leftLC)) {
|
if (/[^-\w]/.test(leftLC)) {
|
||||||
prev += execAt(/[\s:()]*/y, prev, text)[0].length;
|
prev += execAt(/[\s:()]*/y, prev, text)[0].length;
|
||||||
leftLC = '';
|
leftLC = leftLC.replace(/^\s*:?\s*/, '');
|
||||||
}
|
}
|
||||||
if (!cssPropsValues) cssPropsValues = await linterMan.worker.getCssPropsValues();
|
if (!cssPropsValues) cssPropsValues = await linterMan.worker.getCssPropsValues();
|
||||||
list = [...new Set([...cssPropsValues[prop] || [], ...cssGlobalValues])];
|
list = [...new Set([...cssPropsValues[prop] || [], ...cssGlobalValues])];
|
||||||
|
|
|
@ -29,6 +29,7 @@
|
||||||
let last = '';
|
let last = '';
|
||||||
const uniq = [];
|
const uniq = [];
|
||||||
const words = describeProp(v)
|
const words = describeProp(v)
|
||||||
|
.replace(/\(.*?\)/g, '(')
|
||||||
.replace('<named-color>', namedColors)
|
.replace('<named-color>', namedColors)
|
||||||
.split(rxNonWord)
|
.split(rxNonWord)
|
||||||
.sort(comparator);
|
.sort(comparator);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user