Skip to content

Commit

Permalink
Merge pull request #6 from wawandco/regex-fix
Browse files Browse the repository at this point in the history
[FIX](tmLanguage): fixing regex for form_for
  • Loading branch information
YanDeLeon authored Nov 18, 2022
2 parents 1f1a494 + 49d074f commit 843bf38
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions syntaxes/plush.tmLanguage.json
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@
"keyword": {
"patterns": [
{
"match": "(?i)(\bfunction\b|\blet\b|\bif\b|\belse\b|\breturn\b|\bfor\b|\bin\b|\bfn\b|\bfunc\b)",
"match": "(?i)\\b(function|let|if|else|return|for|in|fn|func|form_for|form)\\b",
"name": "keyword.plush"
},
{
Expand Down Expand Up @@ -153,7 +153,7 @@
"name": "constant.numeric.plush"
},
{
"match": "[a-zA-Z]+(\\()",
"match": "[A-Za-z0-9_-]+(\\()",
"captures": {
"0": {
"name": "entity.name.function.plush"
Expand All @@ -164,7 +164,7 @@
}
},
{
"match": "\b[a-zA-z]\b",
"match": "\b[A-Za-z0-9_-]\b",
"name": "variable.name.plush"
}
]
Expand Down

0 comments on commit 843bf38

Please sign in to comment.