Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
mskelton committed Nov 28, 2023
1 parent ba06f10 commit 45ad4b7
Show file tree
Hide file tree
Showing 6 changed files with 9,428 additions and 6,769 deletions.
1 change: 1 addition & 0 deletions .node-version
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
18
52 changes: 26 additions & 26 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@
"nan": "^2.17.0"
},
"devDependencies": {
"prettier": "^2.8.1",
"tree-sitter-cli": "^0.20.7",
"prettier": "^3.1.0",
"tree-sitter-cli": "^0.20.8",
"tree-sitter-css": "git://github.com/tree-sitter/tree-sitter-css.git"
},
"tree-sitter": [
Expand Down
137 changes: 97 additions & 40 deletions src/grammar.json
Original file line number Diff line number Diff line change
Expand Up @@ -313,6 +313,30 @@
}
]
},
"postcss_statement": {
"type": "PREC",
"value": -1,
"content": {
"type": "SEQ",
"members": [
{
"type": "SYMBOL",
"name": "at_keyword"
},
{
"type": "REPEAT",
"content": {
"type": "SYMBOL",
"name": "_value"
}
},
{
"type": "STRING",
"value": ";"
}
]
}
},
"at_rule": {
"type": "SEQ",
"members": [
Expand Down Expand Up @@ -481,6 +505,10 @@
"type": "SYMBOL",
"name": "supports_statement"
},
{
"type": "SYMBOL",
"name": "postcss_statement"
},
{
"type": "SYMBOL",
"name": "at_rule"
Expand Down Expand Up @@ -1410,6 +1438,10 @@
"type": "SYMBOL",
"name": "call_expression"
},
{
"type": "SYMBOL",
"name": "important"
},
{
"type": "ALIAS",
"content": {
Expand Down Expand Up @@ -1456,46 +1488,43 @@
]
},
"string_value": {
"type": "TOKEN",
"content": {
"type": "CHOICE",
"members": [
{
"type": "SEQ",
"members": [
{
"type": "STRING",
"value": "'"
},
{
"type": "PATTERN",
"value": "([^'\\n]|\\\\(.|\\n))*"
},
{
"type": "STRING",
"value": "'"
}
]
},
{
"type": "SEQ",
"members": [
{
"type": "STRING",
"value": "\""
},
{
"type": "PATTERN",
"value": "([^\"\\n]|\\\\(.|\\n))*"
},
{
"type": "STRING",
"value": "\""
}
]
}
]
}
"type": "CHOICE",
"members": [
{
"type": "SEQ",
"members": [
{
"type": "STRING",
"value": "'"
},
{
"type": "PATTERN",
"value": "([^'\\n]|\\\\(.|\\n))*"
},
{
"type": "STRING",
"value": "'"
}
]
},
{
"type": "SEQ",
"members": [
{
"type": "STRING",
"value": "\""
},
{
"type": "PATTERN",
"value": "([^\"\\n]|\\\\(.|\\n))*"
},
{
"type": "STRING",
"value": "\""
}
]
}
]
},
"integer_value": {
"type": "SEQ",
Expand Down Expand Up @@ -1846,6 +1875,26 @@
"type": "PATTERN",
"value": "@[a-zA-Z-_]+"
},
"js_comment": {
"type": "TOKEN",
"content": {
"type": "PREC",
"value": -1,
"content": {
"type": "SEQ",
"members": [
{
"type": "STRING",
"value": "//"
},
{
"type": "PATTERN",
"value": ".*"
}
]
}
}
},
"comment": {
"type": "TOKEN",
"content": {
Expand Down Expand Up @@ -2016,6 +2065,10 @@
{
"type": "SYMBOL",
"name": "comment"
},
{
"type": "SYMBOL",
"name": "js_comment"
}
],
"conflicts": [],
Expand All @@ -2028,6 +2081,10 @@
{
"type": "SYMBOL",
"name": "_pseudo_class_selector_colon"
},
{
"type": "SYMBOL",
"name": "__error_recovery"
}
],
"inline": [
Expand Down
Loading

0 comments on commit 45ad4b7

Please sign in to comment.