Skip to content

Commit

Permalink
Added support for index declaration grammar
Browse files Browse the repository at this point in the history
  • Loading branch information
v1def committed Jan 2, 2023
1 parent 0494f35 commit 3004198
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
- Added support for error declaration grammar.
- Added support for declaration function call grammar.
- Added support for comment grammar.
- Added support for index declaration grammar.

## [0.0.2] - 2023-01-01

Expand Down
7 changes: 6 additions & 1 deletion syntaxes/polylang.tmLanguage.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,8 @@
{"include": "#declaration-storage"},
{"include": "#declaration-function"},
{"include": "#declaration-error"},
{"include": "#declaration-call"}
{"include": "#declaration-call"},
{"include": "#declaration-index"}
]
},
"declaration-collection": {
Expand Down Expand Up @@ -79,6 +80,10 @@
"match": "\\b([A-Za-z_]\\w*)\\s*(\\()",
"name": "entity.name.function.call.polylang"
},
"declaration-index": {
"match": "(@index|@unique)\\b",
"name": "keyword.control.index.polylang"
},
"operator": {
"patterns": [
{"include": "#operator-binary"},
Expand Down

0 comments on commit 3004198

Please sign in to comment.