Sergio Alejandro Vargas
4ad6c526f3
Add do_statement to lua folds
2021-05-16 21:26:06 +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
Thomas Vigouroux
f0ab5edab9
fix(lua): correctly highlight field names
2021-04-22 17:51:43 +02: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
kiyan
2d82a7fe07
add do statement to lua indents
2021-02-23 00:28:43 +01:00
Santos Gallegos
98127bded6
Lua: highlight fields
2021-02-10 22:15:17 +01:00
Santos Gallegos
e5319aa9aa
Lua: improve scope queries
...
- Set scope to parent
- Group all scopes
- Use the . operator
2021-02-07 15:26:34 +01:00
Thomas Vigouroux
12181e236e
fix(lua): correctly handle do_statement in locals
2021-01-27 10:21:37 +01:00
Thomas Vigouroux
b8a7f0ea38
fix(lua): correctly highlight do_statement
2021-01-27 10:21:37 +01:00
Lewis Russell
362204f85c
lua: Add more indent nodes
2021-01-20 10:36:11 +01:00
kiyan42
f2c219cddc
indent fixes
2021-01-04 17:42:19 +01:00
Simon Hauser
748ac8f781
Add c injection for ffi.cdef to lua
2021-01-01 11:45:45 +01:00
El Piloto
775021cbd5
Remove duplicate capture for function_definition
2020-12-16 11:44:39 +01:00
El Piloto
6182c2b0a6
Capture anonymous functions assigned to variables
...
Closes https://github.com/nvim-treesitter/nvim-treesitter/issues/709
2020-12-16 11:44:39 +01:00
Thomas Vigouroux
d5a8ff94cd
lua: update to pull shebang fix
2020-11-25 21:47:38 +01:00
Thomas Vigouroux
809b95ddb1
lua: fix "then" highlighting
2020-11-23 23:17:28 +01:00
Chinmay Dalal
6d352a0efc
Add lua params ( #605 )
...
* Add lua params
* Fix
* Remove redundant outer
2020-10-21 06:46:05 +02:00
kiyan42
1735528db5
Treesitter indent
...
also fixes the memoize_by_buf_tick function
2020-10-19 21:08:15 +02:00
Mike
1f3999234a
feat: Add more lua folds
...
Add repeat_statement to lua folds
2020-10-15 21:01:18 +02:00
Stephan Seitz
3362f45196
Remove textobjects module
2020-10-04 14:20:20 +02:00
Stephan Seitz
7e3c4f8089
Add @keyword.operator for operators that are English words and add @exception for Java/JS
2020-09-19 07:30:49 +02:00
Stephan Seitz
bcf421b4e7
Fix #307 : Use and document TSVariable/TSVariableBuiltin in all languages
2020-09-14 18:27:20 +02:00
Santos Gallegos
50991e370b
Folds: rename query files to folds.scm to be consistent
...
We use plural names for all query files except folds.
2020-09-14 18:26:30 +02:00
Nolan Prochnau
10848ca5bd
Add folding for local functions in lua
2020-09-10 09:20:23 +02:00
kyazdani42
3a3a1bb252
use keyword.function instead of function
2020-09-08 19:23:04 +02:00
kyazdani42
b10a09ebc3
fix function/end keywords not applied for every scope
2020-09-08 19:23:04 +02:00
kyazdani42
b69b43b712
fix: contional > conditional in lua hl.scm
2020-09-06 18:32:14 +02:00
Santos Gallegos
0928b918a0
Lua: update highlights
2020-09-06 17:25:03 +02:00
Santos Gallegos
5504b84d21
Lua: fix loop and conditional keywords highlights
2020-09-06 17:24:34 +02:00
Thomas Vigouroux
545e5c479a
fix(fold): revamp fold
...
fix(fold): typo
fix(fold): remove debug and add queries
fix(fold): fallback to local scopes for folds
2020-09-01 21:51:17 +02:00
Steven Sojka
cab8717959
chore(highlights): remove is predicate usage
2020-08-17 19:27:35 +02:00
Steven Sojka
579c9936d6
feat(highlights): add is predicate
2020-08-16 09:04:07 -05:00
Stephan Seitz
1c366a3a1c
Lua highlights: add operator "=" and punctuation
2020-08-11 14:11:24 +02:00
Santos Gallegos
429036317a
Lua: highlight function name
2020-08-09 18:38:00 +02:00
Santos Gallegos
32c19ec1e8
Lua: fix @error capture
2020-08-04 08:07:49 +02:00
Stephan Seitz
a0abaf936c
Lua locals: Make property_identifier a reference
2020-08-03 08:06:40 +02:00
Santos Gallegos
b8e3a2dc65
Lua: update some queries
...
- Basic textobjects
- Highlighting punctuation symbols
2020-07-28 09:54:40 +02:00
Thomas Vigouroux
85d2f9ee93
highlights: some fixes
...
Add `goto` keyword for C.
Fix typo for lua.
2020-07-16 10:49:49 +02:00
Thomas Vigouroux
3faaeb479b
locals(lua): simplify args
2020-07-08 22:16:53 +02:00
Thomas Vigouroux
f9844d359e
highlight(lua): fix overlapping queries
2020-07-08 22:16:53 +02:00
Thomas Vigouroux
e8af62c843
locals(lua): capture function definition params
2020-07-01 14:46:55 +02:00
Thomas Vigouroux
d15210b22f
highlights(lua): update query to new syntax
2020-07-01 14:46:55 +02:00
Thomas Vigouroux
22f73628f6
fix(lua): update queries
2020-05-07 14:03:29 +02:00
Thomas Vigouroux
f6f402e870
locals(lua): incorrect query for field functions
2020-04-23 10:29:41 +02:00
Thomas Vigouroux
7cff1aabaa
highlight(lua): highlight local functions
2020-04-23 10:28:26 +02:00
Thomas Vigouroux
c4862c656e
highlight(lua): add more operators
2020-04-22 22:02:42 +02:00
Thomas Vigouroux
d05728e155
feat: syntax highlighting
2020-04-22 22:02:42 +02:00
Thomas Vigouroux
b706c4e8ed
feat: first version of locals
...
Locals will be the main interface to treesitter, through some functions:
get_definitions(bufnr) : returns all the definitions in bufnr
get_scopes(bufnr): returns all definitions in bufnr
get_references(bufnr): returns all references in bufnr
2020-04-19 17:28:52 +02:00