mirror of
https://github.com/pulsar-edit/pulsar.git
synced 2024-09-11 19:17:09 +03:00
Added implicitly defined keywords to completions.js
This commit is contained in:
parent
0b6fd03db2
commit
b15410ee5c
File diff suppressed because it is too large
Load Diff
@ -181,11 +181,13 @@ function getValuesOfProp(value, allValues) {
|
||||
// Like mentioned above `value` = "value1 | value2 | <valueGroupName>"
|
||||
// https://developer.mozilla.org/en-US/docs/Web/CSS/Value_definition_syntax
|
||||
|
||||
// We will first insert the implicitly defined keywords that apply to all CSS properties
|
||||
let values = [ "inherit", "initial", "unset" ];
|
||||
|
||||
if (!value || value.length < 0) {
|
||||
return [];
|
||||
return values;
|
||||
}
|
||||
|
||||
let values = [];
|
||||
let parser = new CSSParser(value);
|
||||
|
||||
let rawArrayValues = parser.parse();
|
||||
@ -293,7 +295,6 @@ function dedupPropValues(values) {
|
||||
check[values[i]] = true;
|
||||
}
|
||||
}
|
||||
console.log(`Dedup Took: ${values} returned: ${out}`);
|
||||
return out;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user