Thomas Vigouroux
f7d92f663c
feat(languagetree): implement language tree
...
Allow the LanguageTree to be used as an option for highlighting.
Co-authored-by: Santos Gallegos <stsewd@protonmail.com>
Co-authored-by: Yazdani Kiyan <yazdani.kiyan@protonmail.com>
2020-10-19 18:28:45 +02:00
Rom Grk
e9b6e2d311
readme: add nvim-treesitter-context
2020-10-19 16:08:19 +02:00
Sam Bernheim
7f3276450b
feat(folds): add catch_clause to js folds
2020-10-16 20:23:45 +02:00
sbernehim4
be2bb166c8
feat: add more javascript folds
2020-10-16 20:23:45 +02:00
Stephan Seitz
994e42fac4
Fix: avoid overwriting tables in insert_to_path
...
The following query will result in matches with only one node though it
requires two nodes to be a match.
```scheme
(function_definition
(comment) @function.inner.start
body: (block) @function.inner)
```
Why? First `insert_to_path` is called for `@function.inner.start` which
will result int the following table.
```lua
{ function = { inner = { start { node } } } }
```
`insert_to_path` will overwrite the result
```lua
{ function = { inner = { node } } }
```
Related #552
2020-10-16 13:48:59 +02:00
kiyan42
e5d8b6ade7
Remove get_parser logic
...
upstream now handles parsers by itself, so we don't need to do it
in this repo.
2020-10-16 13:48:24 +02:00
Stephan Seitz
25bdf0f00d
Update README requirements for parser download/compilation
2020-10-16 06:36:47 +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
1a62b97ccd
C++ highlights: highlight all kinds of optional parameters
...
declarator can be a identifier, a reference or a pointer
2020-10-13 19:48:42 +02:00
Thomas Vigouroux
06452845d6
fix(highlights): use new highlighter interface
2020-10-13 09:25:09 +02:00
Thomas Vigouroux
3b7b4daadb
query: remove unnecessary query parsing
2020-10-12 20:04:31 +02:00
Thomas Vigouroux
2c8d401bb8
highlight: use new highlighter interface
2020-10-12 20:04:31 +02:00
Stephan Seitz
7c96582ef1
Ruby highlights: reset highlight on interpolation
...
@TravonteD
2020-10-12 13:26:51 +02:00
Akin Sowemimo
19c9465a8c
Explicitly check for cterm and gui values for fg
...
If a user hasn't set either we default to NONE
2020-10-11 19:26:37 +02:00
Akin Sowemimo
c817b62ae4
Add a check to ensure the fg attribute exists
...
before setting the value
2020-10-11 19:26:37 +02:00
Akin Sowemimo
1e43c0267f
Don't change the background highlights
...
treesitter highlighting is colouring the characters in the foreground so
there's no need to touch the highlighting of the background
2020-10-11 19:26:37 +02:00
Akin Sowemimo
d8a516cb39
fix cterm fg and bg error
2020-10-11 19:26:37 +02:00
Akin Sowemimo
c89367f283
Add background and foreground colors to TSNone
...
This fixes the issue where colors highlighted as TSNone were not
reverting to the background and foreground color.
2020-10-11 19:26:37 +02:00
Thomas Vigouroux
c055899dc0
feat(queries): modeline mechanism for base langs
...
This implements https://github.com/neovim/neovim/pull/13059#issuecomment-704414189
This behaves like modelines and remove the use of the base_language map.
Also, this allows to fine-tune what we actually want to include per
query, which is better IMO.
2020-10-11 19:09:22 +02:00
Kristijan Husak
9ad47c65bd
Use utils get_node_text to get line content and trim all whitespaces.
2020-10-11 13:35:18 +02:00
Kristijan Husak
3aa7e575e2
Remove old statusline implementation with new one.
2020-10-11 13:35:18 +02:00
Kristijan Husak
62df1143da
Add implementation for improved statusline. Closes #545 .
2020-10-11 13:35:18 +02:00
Github Actions
030a75129d
[docgen] Update README.md
2020-10-10 15:31:51 +02:00
Stephan Seitz
45397ebbd9
fix(highlights): Add TSNamespace highlight
...
Start adding highlights for
- C++
- Rust (including other scoped_identifier/scoped_type_identifier fixes)
- JS (only namespace_import)
Addresses #516
2020-10-10 15:31:51 +02:00
Suhas Hebbar
f5ac2b4a1a
Shorten module reference shell_command_selectors to shell.
2020-10-06 19:08:42 +02:00
Suhas Hebbar
46ce4adca8
Code Refactor
...
- Move select_* function to shell_command_selectors.lua.
- Rename select_args to select_compiler_args.
2020-10-06 19:08:42 +02:00
Suhas Hebbar
40edefc476
Remove dependency on unzip.
...
Use tar instead which should be available on default Unixes and Windows
2020-10-06 19:08:42 +02:00
Corey Williamson
73ef705eb2
Fix typearg brackets not highlighting for multiple typeargs
2020-10-05 12:02:59 +02:00
Corey Williamson
85791a4316
Set function scope
2020-10-05 12:02:59 +02:00
euclidianAce
0aa4940f8b
Update queries/teal/highlights.scm
...
Co-authored-by: Santos Gallegos <stsewd@protonmail.com>
2020-10-05 12:02:59 +02:00
Corey Williamson
c2acddd651
Add teal parser
2020-10-05 12:02:59 +02:00
Stephan Seitz
93f9708a3c
Dart highlights: Reset highlight in interpolation
2020-10-05 06:37:31 +02:00
tonycheang
b9b08d776b
fix: readme link to nvim-treesitter-textobjects
2020-10-04 23:15:23 +02:00
Stephan Seitz
9f5237b6c5
Fix: fallback git-installation (list of commands is expected)
2020-10-04 21:48:25 +02:00
Github Actions
97d5329d9f
[docgen] Update README.md
2020-10-04 14:33:29 +02:00
Pau Ruiz Safont
f7126fe54b
fix(ocaml): highlight characters as such
2020-10-04 14:33:29 +02:00
Pau Ruiz Safont
f1c272676b
feat: add ocamllex parser and highlights
2020-10-04 14:33:29 +02:00
Stephan Seitz
37b011b679
Add "External modules" section to README
2020-10-04 14:20:20 +02:00
Stephan Seitz
3362f45196
Remove textobjects module
2020-10-04 14:20:20 +02:00
Steven Sojka
7f325538cc
Merge pull request #487 from steelsojka/remove-refactor
...
chore(modules): remove refactor module
2020-10-04 07:01:53 -05:00
Alvaro Muñoz
5debe93133
make query-checker happy
2020-10-01 06:26:59 +02:00
Alvaro Muñoz
9e09ce6c8e
change module to namespace
2020-10-01 06:26:59 +02:00
Alvaro Muñoz
a5dccb0ac7
CodeQL locals.scm queries
2020-10-01 06:26:59 +02:00
Github Actions
ec37addef9
[docgen] Update README.md
...
skip-checks: true
2020-09-30 20:38:04 +02:00
Alvaro Muñoz
61ea08f8d3
fine tune keyword highlights
2020-09-30 17:06:58 +02:00
Alvaro Muñoz
c29865a7b3
remove locals.scm
2020-09-30 17:06:58 +02:00
Alvaro Muñoz
90c53d3d1e
remove non-used captures
2020-09-30 17:06:58 +02:00
Alvaro Muñoz
3dc2e9331e
initial support for CodeQL
2020-09-30 17:06:58 +02:00
Stephan Seitz
b66b533ecd
chore: dedup join_paths <-> join_path
2020-09-28 17:40:34 +02:00
Akin Sowemimo
0e37148dd1
Add extension and on keywords
2020-09-27 17:42:27 +02:00