Skip to content

Commit

Permalink
feat(languages): golang comments and numeric types (helix-editor#9525)
Browse files Browse the repository at this point in the history
  • Loading branch information
matoous authored and Vulpesx committed Jun 7, 2024
1 parent 34272f9 commit d7034c4
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 d7034c4

Please sign in to comment.