Add important
This commit is contained in:
parent
b2c8e4a547
commit
d9f5080cca
|
@ -111,3 +111,19 @@ a {
|
|||
(selectors (tag_name))
|
||||
(block
|
||||
(declaration (property_name) (plain_value)))))
|
||||
|
||||
============================
|
||||
Important declarations
|
||||
============================
|
||||
|
||||
a {
|
||||
b: c !important;
|
||||
}
|
||||
|
||||
---
|
||||
|
||||
(stylesheet
|
||||
(rule_set
|
||||
(selectors (tag_name))
|
||||
(block
|
||||
(declaration (property_name) (plain_value) (important)))))
|
||||
|
|
|
@ -139,9 +139,12 @@ module.exports = grammar({
|
|||
optional(','),
|
||||
$._value
|
||||
)),
|
||||
optional($.important),
|
||||
';'
|
||||
)),
|
||||
|
||||
important: $ => '!important',
|
||||
|
||||
// Media queries
|
||||
|
||||
_query: $ => choice(
|
||||
|
|
|
@ -627,6 +627,18 @@
|
|||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "CHOICE",
|
||||
"members": [
|
||||
{
|
||||
"type": "SYMBOL",
|
||||
"name": "important"
|
||||
},
|
||||
{
|
||||
"type": "BLANK"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"type": "STRING",
|
||||
"value": ";"
|
||||
|
@ -634,6 +646,10 @@
|
|||
]
|
||||
}
|
||||
},
|
||||
"important": {
|
||||
"type": "STRING",
|
||||
"value": "!important"
|
||||
},
|
||||
"_query": {
|
||||
"type": "CHOICE",
|
||||
"members": [
|
||||
|
|
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue