aboutsummaryrefslogtreecommitdiff
path: root/editors
diff options
context:
space:
mode:
authorDamian Tarnawski <gthetarnav@gmail.com>2023-06-18 21:32:48 +0200
committerDamian Tarnawski <gthetarnav@gmail.com>2023-06-18 21:32:48 +0200
commit51ee1f8d8f1aac12536ca4fb3d1c31437bf1af40 (patch)
tree8b3049ba4583eecddb320d3b97ed973fb7b7af24 /editors
parent574cddd80c614ba337b5fad178500f1bfd7a9506 (diff)
Replace property access procedure call with general one
Diffstat (limited to 'editors')
-rw-r--r--editors/vscode/syntaxes/odin.tmLanguage.json23
1 files changed, 14 insertions, 9 deletions
diff --git a/editors/vscode/syntaxes/odin.tmLanguage.json b/editors/vscode/syntaxes/odin.tmLanguage.json
index d050eb9..c153ea0 100644
--- a/editors/vscode/syntaxes/odin.tmLanguage.json
+++ b/editors/vscode/syntaxes/odin.tmLanguage.json
@@ -13,6 +13,9 @@
"include": "#types"
},
{
+ "include": "#object-identifiers"
+ },
+ {
"include": "#functions-and-declarations"
},
{
@@ -169,6 +172,17 @@
}
]
},
+ "object-identifiers": {
+ "patterns": [
+ {
+ "captures": {
+ "1": { "name": "variable.other.object" },
+ "2": { "name": "punctuation.accessor.odin" }
+ },
+ "match": "([A-Za-z_][A-Za-z0-9_]*)\\s*(\\.)"
+ }
+ ]
+ },
"functions-and-declarations": {
"patterns": [
{
@@ -220,15 +234,6 @@
},
{
"captures": {
- "1": { "name": "variable.other.object" },
- "2": { "name": "punctuation.accessor.odin" },
- "3": { "name": "entity.name.function.odin" },
- "4": { "name": "punctuation.odin" }
- },
- "match": "([A-Za-z_][A-Za-z0-9_]*)\\s*(\\.)\\s*([A-Za-z_][A-Za-z0-9_]*)\\s*[!]?\\s*([\\(])"
- },
- {
- "captures": {
"1": { "name": "entity.name.function.odin" },
"2": { "name": "punctuation.odin" }
},