Skip to content

Commit

Permalink
add icon command
Browse files Browse the repository at this point in the history
  • Loading branch information
SiriusAshling committed Sep 30, 2021
1 parent 85db5f6 commit 6fd2717
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 4 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "header-language",
"displayName": "Ori WotW Header Language",
"description": "Support for the .wotwrh language",
"version": "0.2.1",
"version": "0.2.2",
"publisher": "orirando",
"license": "MIT",
"repository": {
Expand Down
16 changes: 13 additions & 3 deletions syntaxes/ori-wotw-header.tmLanguage.json
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@
{ "include": "#progressMessage" },
{ "include": "#wheelCommand" },
{ "include": "#shopCommand" },
{ "include": "placeholder" }
{ "include": "#placeholder" }
]
},
"spiritLight": {
Expand Down Expand Up @@ -346,14 +346,14 @@
"icon": {
"patterns": [
{
"match": "\\G((shard|spell|map|opher|lupo|grom|tuley):)\\d+",
"match": "((shard|spell|map|opher|lupo|grom|tuley):)\\d+",
"captures": {
"0": { "name": "variable" },
"1": { "name": "entity.name.type" }
}
},
{
"begin": "\\Gfile:",
"begin": "file:",
"end": "$|(?=//)",
"name": "entity.name.type",
"patterns": [
Expand Down Expand Up @@ -406,6 +406,7 @@
{ "include": "#includeCommand" },
{ "include": "#addCommand" },
{ "include": "#nameCommand" },
{ "include": "#iconCommand" },
{ "include": "#parameterCommand" },
{ "include": "#poolCommand" },
{ "include": "#addpoolCommand" },
Expand Down Expand Up @@ -442,6 +443,15 @@
{ "include": "#messageString" }
]
},
"iconCommand": {
"begin": "^(!!icon) ",
"end": "$|(?=//)",
"beginCaptures": { "1": { "name": "keyword" } },
"patterns": [
{ "include": "#pickup" },
{ "include": "#icon" }
]
},
"parameterCommand": {
"match": "^(!!parameter) \\w+ ((bool:)(true|false)|(int:)\\d+|(float:)\\d+([,.]\\d+)?|(string:)\\w+)\\b",
"captures": {
Expand Down

0 comments on commit 6fd2717

Please sign in to comment.