diff options
author | Matouš Dzivjak | 2024-02-06 00:55:56 +0000 |
---|---|---|
committer | GitHub | 2024-02-06 00:55:56 +0000 |
commit | 0975d9c5e7e4caf08d1c1204f09ab6d2f718105d (patch) | |
tree | 76d1edea88e11a70f63011d95977ccafbfa541b6 /runtime/queries/go/highlights.scm | |
parent | 5c567f31e236134c0e27dc689c8ad07ef5f9b5d1 (diff) |
feat(languages): golang comments and numeric types (#9525)
Diffstat (limited to 'runtime/queries/go/highlights.scm')
-rw-r--r-- | runtime/queries/go/highlights.scm | 32 |
1 files changed, 31 insertions, 1 deletions
diff --git a/runtime/queries/go/highlights.scm b/runtime/queries/go/highlights.scm index fba2df99..8eed12af 100644 --- a/runtime/queries/go/highlights.scm +++ b/runtime/queries/go/highlights.scm @@ -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)) |