aboutsummaryrefslogtreecommitdiff
path: root/runtime/queries/gomod
diff options
context:
space:
mode:
Diffstat (limited to 'runtime/queries/gomod')
-rw-r--r--runtime/queries/gomod/highlights.scm17
-rw-r--r--runtime/queries/gomod/injections.scm2
2 files changed, 19 insertions, 0 deletions
diff --git a/runtime/queries/gomod/highlights.scm b/runtime/queries/gomod/highlights.scm
new file mode 100644
index 00000000..63e1f012
--- /dev/null
+++ b/runtime/queries/gomod/highlights.scm
@@ -0,0 +1,17 @@
+[
+ "require"
+ "replace"
+ "go"
+ "exclude"
+ "retract"
+ "module"
+] @keyword
+
+"=>" @operator
+
+(comment) @comment
+
+[
+(version)
+(go_version)
+] @string
diff --git a/runtime/queries/gomod/injections.scm b/runtime/queries/gomod/injections.scm
new file mode 100644
index 00000000..321c90ad
--- /dev/null
+++ b/runtime/queries/gomod/injections.scm
@@ -0,0 +1,2 @@
+((comment) @injection.content
+ (#set! injection.language "comment"))