aboutsummaryrefslogtreecommitdiffstats
path: root/runtime/queries/gomod/highlights.scm
diff options
context:
space:
mode:
Diffstat (limited to 'runtime/queries/gomod/highlights.scm')
-rw-r--r--runtime/queries/gomod/highlights.scm34
1 files changed, 34 insertions, 0 deletions
diff --git a/runtime/queries/gomod/highlights.scm b/runtime/queries/gomod/highlights.scm
new file mode 100644
index 000000000..b30be0944
--- /dev/null
+++ b/runtime/queries/gomod/highlights.scm
@@ -0,0 +1,34 @@
+[
+ "require"
+ "replace"
+ "go"
+ "toolchain"
+ "exclude"
+ "retract"
+ "module"
+] @keyword
+
+"=>" @operator
+
+(comment) @comment @spell
+
+(module_path) @string.special.url
+
+(tool_directive) @keyword.directive
+
+(tool) @string.special.url
+
+[
+ (version)
+ (go_version)
+ (toolchain_name)
+] @string.special
+
+[
+ "("
+ ")"
+ "["
+ "]"
+] @punctuation.bracket
+
+"," @punctuation.delimiter