Skip to content

Commit

Permalink
feat(languages): golang comments and numeric types (#9525)
Browse files Browse the repository at this point in the history
  • Loading branch information
matoous committed Feb 6, 2024
1 parent 5c567f3 commit 0975d9c
Showing 1 changed file with 31 additions and 1 deletion.
32 changes: 31 additions & 1 deletion runtime/queries/go/highlights.scm
Original file line number Diff line number Diff line change
Expand Up @@ -183,9 +183,12 @@

[
(int_literal)
] @constant.numeric.integer

[
(float_literal)
(imaginary_literal)
] @constant.numeric.integer
] @constant.numeric.float

[
(true)
Expand All @@ -197,4 +200,31 @@
(iota)
] @constant.builtin

; Comments

(comment) @comment

; Doc Comments
(source_file
.
(comment)+ @comment.block.documentation)

(source_file
(comment)+ @comment.block.documentation
.
(const_declaration))

(source_file
(comment)+ @comment.block.documentation
.
(function_declaration))

(source_file
(comment)+ @comment.block.documentation
.
(type_declaration))

(source_file
(comment)+ @comment.block.documentation
.
(var_declaration))

0 comments on commit 0975d9c

Please sign in to comment.