Skip to content

Commit 236d51b

Browse files
authored
editors/code/syntaxes: Add implements as a keyword (#170)
1 parent ae15f17 commit 236d51b

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

editors/code/syntaxes/v.tmLanguage.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -613,7 +613,7 @@
613613
},
614614
{
615615
"name": "keyword.$1.v",
616-
"match": "(?<!@)\\b(fn|type|typeof|enum|struct|interface|map|assert|sizeof|__offsetof)\\b"
616+
"match": "(?<!@)\\b(fn|type|typeof|enum|struct|implements|interface|map|assert|sizeof|__offsetof)\\b"
617617
}
618618
]
619619
},
@@ -834,4 +834,4 @@
834834
"name": "invalid.illegal.v"
835835
}
836836
}
837-
}
837+
}

tree_sitter_v/queries/highlights.scm

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,10 +51,10 @@
5151
"for"
5252
"$for"
5353
"go"
54-
"spawn"
5554
"goto"
5655
"if"
5756
"$if"
57+
"implements"
5858
"import"
5959
"in"
6060
"!in"
@@ -71,6 +71,7 @@
7171
"rlock"
7272
"select"
7373
"shared"
74+
"spawn"
7475
"static"
7576
"struct"
7677
"type"

0 commit comments

Comments
 (0)