mirror of https://github.com/helix-editor/helix
feat(languages): golang comments and numeric types (#9525)
parent
5c567f31e2
commit
0975d9c5e7
|
@ -183,9 +183,12 @@
|
||||||
|
|
||||||
[
|
[
|
||||||
(int_literal)
|
(int_literal)
|
||||||
|
] @constant.numeric.integer
|
||||||
|
|
||||||
|
[
|
||||||
(float_literal)
|
(float_literal)
|
||||||
(imaginary_literal)
|
(imaginary_literal)
|
||||||
] @constant.numeric.integer
|
] @constant.numeric.float
|
||||||
|
|
||||||
[
|
[
|
||||||
(true)
|
(true)
|
||||||
|
@ -197,4 +200,31 @@
|
||||||
(iota)
|
(iota)
|
||||||
] @constant.builtin
|
] @constant.builtin
|
||||||
|
|
||||||
|
; Comments
|
||||||
|
|
||||||
(comment) @comment
|
(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))
|
||||||
|
|
Loading…
Reference in New Issue