Skip to content

Commit

Permalink
fix: highlighting fixes for functions
Browse files Browse the repository at this point in the history
  • Loading branch information
schoero committed Sep 1, 2024
1 parent 58850a9 commit 6081252
Showing 1 changed file with 37 additions and 5 deletions.
42 changes: 37 additions & 5 deletions syntaxes/tailwindcss.json
Original file line number Diff line number Diff line change
Expand Up @@ -129,16 +129,34 @@
"name": "keyword.operator.assignment.tailwindcss"
},
"3": {
"name": "support.constant.property-value.css.tailwindcss",
"patterns": [
{
"captures": {
"1": {
"name": "property-value.tailwindcss",
"patterns": [
{
"include": "#numbers"
},
{
"include": "#functions"
},
{
"include": "#selectors"
},
{
"include": "#commas"
}
]
}
},
"match": "(.*)",
"name": "property-value.tailwindcss"
"name": "support.constant.property-value.css.tailwindcss"
}
]
}
},
"match": "([\\w-]+)(:)([\\w-]+)"
"match": "([\\w-]+)(:)(.*)"
},
{
"include": "#numbers"
Expand All @@ -148,14 +166,17 @@
},
{
"include": "#selectors"
},
{
"include": "#commas"
}
]
},
"3": {
"name": "meta.brace.square.tailwindcss"
}
},
"match": "(\\[)(.*)?(\\])"
"match": "(\\[)(.*)(\\])"
}
]
},
Expand Down Expand Up @@ -202,6 +223,14 @@
}
]
},
"commas": {
"captures": {
"1": {
"name": "punctuation.separator.comma.tailwindcss"
}
},
"match": "(,)"
},
"functions": {
"patterns": [
{
Expand All @@ -222,14 +251,17 @@
},
{
"include": "#operators"
},
{
"include": "#commas"
}
]
},
"4": {
"name": "punctuation.section.function.end.bracket.round.css.tailwindcss"
}
},
"match": "(\\w+)(\\()(.*?)(\\))"
"match": "([\\w-]+)(\\()(.*?)(\\))"
}
]
},
Expand Down

0 comments on commit 6081252

Please sign in to comment.