aboutsummaryrefslogtreecommitdiff
path: root/runtime/queries/gowork
diff options
context:
space:
mode:
Diffstat (limited to 'runtime/queries/gowork')
-rw-r--r--runtime/queries/gowork/highlights.scm14
-rw-r--r--runtime/queries/gowork/injections.scm2
2 files changed, 16 insertions, 0 deletions
diff --git a/runtime/queries/gowork/highlights.scm b/runtime/queries/gowork/highlights.scm
new file mode 100644
index 00000000..9c84bcc4
--- /dev/null
+++ b/runtime/queries/gowork/highlights.scm
@@ -0,0 +1,14 @@
+[
+ "replace"
+ "go"
+ "use"
+] @keyword
+
+"=>" @operator
+
+(comment) @comment
+
+[
+(version)
+(go_version)
+] @string
diff --git a/runtime/queries/gowork/injections.scm b/runtime/queries/gowork/injections.scm
new file mode 100644
index 00000000..321c90ad
--- /dev/null
+++ b/runtime/queries/gowork/injections.scm
@@ -0,0 +1,2 @@
+((comment) @injection.content
+ (#set! injection.language "comment"))