Commit graph

32 commits

Author SHA1 Message Date
Sergio Alejandro Vargas
820b4a9c21 Use @keyword.function consistently 2021-07-06 00:53:40 +02:00
antonk52
90f15d9bf7 feat(keywords) merge return and yield into keyword.return group 2021-07-04 21:49:17 +02:00
antonk52
bd9095e969 feat(keywords) add keyword.return & keyword.yield 2021-07-04 21:49:17 +02:00
Stephan Seitz
2e073285dc highlights(go): modernize highlights.scm 2021-07-01 22:38:26 +02:00
Joakker
c699cc2e47 Use #any-of? instead of #match? where posible 2021-06-25 00:22:48 +02:00
Santos Gallegos
67f0857015 Revert "Comment: use @combined to create just one tree per buffer (#1252)"
This reverts commit 4a7a713c52.
2021-05-07 16:51:57 +02:00
Santos Gallegos
4a7a713c52
Comment: use @combined to create just one tree per buffer (#1252)
* Comment: use `@combined` to create just one tree per buffer

There is no need to create a tree per line/block for comments.
Should fix https://github.com/nvim-treesitter/nvim-treesitter/issues/1251

* Add injections for scss

* Fix jsonc

* Combine jsdoc
2021-04-28 07:19:07 -05:00
Stephan Seitz
eb742e304a locals(Go): add namespace definition for import_spec_list
This would define `foo`
```go
import (
	foo "fmt"
)
```
2021-04-13 13:34:57 +02:00
Stephan Seitz
f8314a4df3 highlights(go): Highlight const_declaration
Fixes #1157
2021-04-07 13:03:44 +02:00
Yuki Ito
b818ace315 go: add builtin types 2021-03-19 13:48:24 +01:00
Yuki Ito
df81a91ba9 go: add builtin functions 2021-03-16 17:45:29 +01:00
Santos Gallegos
e4083fc8e1
Add comment parser to highlight comment tags (#893)
Closes #236
2021-03-12 11:21:46 -05:00
elianiva
0bf8f58cd2 feat: use @ignore for comments and multiline strings 2021-03-01 23:28:53 +01:00
elianiva
0ebd51c2d8 fix: dedent golang case keyword 2021-01-20 07:20:20 +01:00
elianiva
f132021d31 feat: add missing golang indent queries 2021-01-15 08:07:36 +01:00
elianiva
9184cf3953 feat: added more indent queries 2021-01-14 14:43:04 +01:00
rockerBOO
9279ff5065 go: Add package_identifier as variable 2020-12-10 23:56:01 +01:00
Claudia Hardman
62551bca4e Add folds for Go
The default behavior in which `@scope` captures were folded resulted in
toplevel fold for an entire source file, which was mildly irritating.
2020-10-31 23:11:23 +01:00
Stephan Seitz
3362f45196 Remove textobjects module 2020-10-04 14:20:20 +02:00
Santos Gallegos
68d8f4c02e Remove @definition.doc captures
These aren't really definitions and are being show in the definitions
list. We aren't using them at the moment, we could use another group or
query file.
2020-09-17 09:18:05 +02:00
Thomas Vigouroux
b90e520ccd ci: fix wrong queries 2020-09-11 12:02:35 +02:00
Stephan Seitz
f37d94699f go locals: remove unused strip! directive 2020-09-07 01:47:53 +02:00
Steven Sojka
ce43dbf54c fix(queries): use vim-match for non lua regexes 2020-08-16 18:31:56 +02:00
Stephan Seitz
5b8c110ea4 Go locals: Make func_literal (lambda) a @scope 2020-07-26 10:16:24 +02:00
Stephan Seitz
17f99676e1 Go locals: use reference.kind for calls 2020-07-26 10:16:24 +02:00
Stephan Seitz
b7a4c97feb Go locals: range_clause can define variables
```go
for _, num := range numbers {
         fmt.Print(num, " ")
}
```
2020-07-24 10:07:46 +02:00
winwisely268
954b8c718f fixes golang method highlights (overwritten by parameter in the ordering) 2020-07-22 11:28:57 +02:00
winwisely268
59c084b5d8 go loop and func literal, rust textobject support 2020-07-17 20:44:43 +02:00
winwisely268
ee4cd7b0fd added textobject support for golang 2020-07-16 11:09:33 +02:00
Stephan Seitz
5a096cb3f1 Add call references for Go 2020-06-07 12:39:58 +02:00
Stephan Seitz
452447694a Add go locals.scm 2020-06-07 12:39:58 +02:00
Stephan Seitz
04040c61c7 Add highlights.scm for Go 2020-06-07 12:39:58 +02:00