Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'runtime/queries/go/highlights.scm')
| -rw-r--r-- | runtime/queries/go/highlights.scm | 41 |
1 files changed, 18 insertions, 23 deletions
diff --git a/runtime/queries/go/highlights.scm b/runtime/queries/go/highlights.scm index be9efeac..0be296cf 100644 --- a/runtime/queries/go/highlights.scm +++ b/runtime/queries/go/highlights.scm @@ -207,30 +207,25 @@ ] @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)) + (comment) @comment.block.documentation . (comment)* . [ + (package_clause) ; `package` + (type_declaration) ; `type` + (function_declaration) ; `func` + (method_declaration) ; `func` + (var_declaration) ; `var` + (const_declaration) ; `const` + ; var ( + ; A = 1 + ; B = 2 + ; ) + (var_spec) + ; const ( + ; A = 1 + ; B = 2 + ; ) + (const_spec) + ]) |