Skip to content

Commit

Permalink
chore: add gomod and gowork queries
Browse files Browse the repository at this point in the history
  • Loading branch information
ttys3 committed Apr 20, 2022
1 parent c8e4a02 commit d6be17b
Show file tree
Hide file tree
Showing 4 changed files with 33 additions and 0 deletions.
17 changes: 17 additions & 0 deletions runtime/queries/gomod/highlights.scm
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
[
"require"
"replace"
"go"
"exclude"
"retract"
"module"
] @keyword

"=>" @operator

(comment) @comment

[
(version)
(go_version)
] @string
1 change: 1 addition & 0 deletions runtime/queries/gomod/injections.scm
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
(comment) @comment
14 changes: 14 additions & 0 deletions runtime/queries/gowork/highlights.scm
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
[
"replace"
"go"
"use"
] @keyword

"=>" @operator

(comment) @comment

[
(version)
(go_version)
] @string
1 change: 1 addition & 0 deletions runtime/queries/gowork/injections.scm
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
(comment) @comment

0 comments on commit d6be17b

Please sign in to comment.