feat(languages): golang comments and numeric types (#9525)

This commit is contained in:
Matouš Dzivjak 2024-02-06 00:55:56 +00:00 committed by GitHub
parent 5c567f31e2
commit 0975d9c5e7
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -183,9 +183,12 @@
[
(int_literal)
] @constant.numeric.integer
[
(float_literal)
(imaginary_literal)
] @constant.numeric.integer
] @constant.numeric.float
[
(true)
@ -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))