Skip to content

Commit

Permalink
Merge pull request #300 from thetarnav/syntax-remove-where-clause
Browse files Browse the repository at this point in the history
Remove where-clause from syntax
  • Loading branch information
DanielGavin authored Jan 25, 2024
2 parents eb9e39d + 594b43a commit d93559a
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions editors/vscode/syntaxes/odin.tmLanguage.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,9 @@
{ "include": "#constant-assignment" },
{ "include": "#variable-assignment" },
{ "include": "#case-clause" },
{ "include": "#where-clause" },
{ "include": "#block-label" },
{ "include": "#type-annotation" },
{ "include": "#block-declaration" },
{ "include": "#block-definition" },
{ "include": "#expressions" }
]
},
Expand Down Expand Up @@ -114,7 +113,15 @@
"end": "(?=^|,|;|\\)|=|:|for|switch|if|{)",
"patterns": [ { "include": "#type-declaration" } ]
},
"block-declaration": {
"object-definition": {
"name": "meta.object.type.odin",
"begin": "\\{",
"beginCaptures": { "0": { "name": "punctuation.definition.block.odin" } },
"end": "\\}",
"endCaptures": { "0": { "name": "punctuation.definition.block.odin" } },
"patterns": [ { "include": "#statements" } ]
},
"block-definition": {
"name": "meta.block.odin",
"begin": "\\{",
"beginCaptures": { "0": { "name": "punctuation.definition.block.odin" } },
Expand All @@ -141,13 +148,13 @@
"patterns": [
{ "include": "#parameters" },
{ "include": "#return-type-declaration" },
{ "include": "#where-clause" },
{ "include": "#type-declaration" }
{ "include": "#object-definition" },
{ "include": "#expressions" }
]
},
{ "include": "#comments" },
{ "include": "#strings" },
{ "include": "#block-declaration" },
{ "include": "#block-definition" },
{ "include": "#keywords" },
{ "include": "#basic-types" },
{ "include": "#slice" },
Expand Down Expand Up @@ -223,13 +230,6 @@
{ "include": "#type-declaration" }
]
},
"where-clause": {
"name": "meta.where.clause.odin",
"begin": "\\bwhere\\b",
"beginCaptures": { "0": { "name": "keyword.other.where.odin" } },
"end": "(?={)",
"patterns": [ { "include": "#expressions" } ]
},
"case-clause": {
"name": "meta.case-clause.expr.odin",
"begin": "case",
Expand Down

0 comments on commit d93559a

Please sign in to comment.