| Commit message (Collapse) | Author | Age | Files | Lines |
| | |
|
| | |
|
| | |
|
| |
|
|
| |
Grammar name was changed to coincide with repository name
|
| |
|
|
|
| |
* chore: sort languages
* fix: register `powershell` language for `ps1` filetype
|
| |
|
|
|
|
|
| |
Problem: People complain about noisy `install()`.
Solution: Gate operation summary behind `summary` install option
(default false, set to true for interactive `:TS*` commands).
|
| | |
|
| |
|
|
|
|
|
|
|
| |
Problem: Can't uninstall custom parsers without queries since
`installed_parsers` only iterates over installed queries (to include
query-only languages, and to avoid string manipulation).
Solution: Iterate over both queries and parsers to collect list of
installed languages (optionally only queries or only parsers).
|
| | |
|
| | |
|
| | |
|
| |
|
|
|
|
|
|
|
|
|
| |
Problem: Tracking parser revision in lockfile and allowing override
through the parsers module complicates the code. In addition, only
revision changes are handled robustly, not changes to other installation
info.
Solution: Track parser revision in the parsers module directly. Reload
parser table on every install or update call. Support modifying parser
table in a `User TSUpdate` autocommand.
|
| |
|
|
|
|
|
|
|
|
|
|
| |
Problem: Many parsers require node/npm to evaluate the `grammar.js`
before being able to generate a parser from it.
Solution: Generate from `grammar.json` instead, which is fully resolved.
Drops `node` and `npm` as (optional) requirements for nvim-treesitter.
Note that this requires parsers to commit the generated json iff the
grammar requires evaluation (which is currently the case for all tracked
languages).
|
| | |
|
| |
|
|
|
| |
Update custom predicates and directives to handle multiple nodes per
capture ID per changes upstream.
|
| |
|
|
| |
`#inject-lang!` and `#trim!`; fix `set-lang-from-mimetype`
|
| |
|
|
| |
also fixes the hole in install.compilers
|
| | |
|
| |
|
|
| |
Replace sync variants with callback support
|
| | |
|
| | |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
If the plugin is loaded after a colorscheme is set that defines any of
these highlight groups, the default won't be applied. Subsequent
"highlight clear" commands (common when switching colorschemes) will
then clear any of those highlights, but these defaults never have
another opportunity to be initialized.
Effectively, if you load neovim with a colorscheme that has definitions
for some of these highlight groups, then load treesitter, then switch
colorschemes, many of these default links will be absent resulting in
colors that do not appear the same as if that colorscheme had been
used at startup.
Hooking the ColorScheme event with an autocmd that just reapplies these
defaults gives every colorscheme switch the opportunity to get the
defaults for non-explicitly-defined groups.
|
| |
|
|
|
|
|
| |
* set highlight groups via nvim_set_hl
* define autocommands via nvim_create_autocmd
* port plugin/nvim-treesitter.vim to Lua
* port healthcheck to Lua
|
| |
|
|
|
| |
Some builtin highlight groups (see `:h group-name`) do not yet have
associated capture groups, so add them.
|
| |
|
| |
references #1572
|
| |
|
|
|
|
|
|
|
|
| |
* Highlights: define string.special
This was in our CONTRIBUTING.md file,
but wasn't defined.
Fixes https://github.com/nvim-treesitter/nvim-treesitter/issues/1405
* Use string.escape
|
| | |
|
| | |
|
| | |
|
| |
|
|
| |
Fix https://github.com/nvim-treesitter/nvim-treesitter/issues/1246
|
| | |
|
| | |
|
| | |
|
| | |
|
| |
|
| |
Closes #236
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
Addresses issue #892
Ruby and Dart literal symbols will now be highlighted by the new
TSSymbol highlight group, which itself will, by default, link to the Vim
Identifier highlight group. Vim theme authors can then set their
TSSymbol colors.
Symbol highlighting can apply to a number of languages as noted in the
following Wikipedia page: https://en.wikipedia.org/wiki/Symbol_(programming)
Not just for Ruby and Dart.
|
| | |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* added cached to get_query
* added reload function
* fixed message
* added autocommand to reload cache on bufwrite for query file
* pass filename to autocommand v:lua fn
* removed comment
* added metatable
* fixed loop
* Update lua/nvim-treesitter/query.lua
Co-authored-by: Thomas Vigouroux <tomvig38@gmail.com>
* Update lua/nvim-treesitter/query.lua
Co-authored-by: Thomas Vigouroux <tomvig38@gmail.com>
* added do ... end to local query_cache
* made line shorter
Co-authored-by: Thomas Vigouroux <tomvig38@gmail.com>
|
| |
|
|
| |
This reverts commit 00f4f4d9856da0191c1d7f0d33f22b7cfcbb56c8.
|
| | |
|
| |
|
|
| |
highlighting
|
| |
|
|
| |
If a user hasn't set either we default to NONE
|
| |
|
|
| |
before setting the value
|
| |
|
|
|
| |
treesitter highlighting is colouring the characters in the foreground so
there's no need to touch the highlighting of the background
|
| | |
|
| |
|
|
|
| |
This fixes the issue where colors highlighted as TSNone were not
reverting to the background and foreground color.
|
| |
|
|
|
|
|
|
|
| |
Start adding highlights for
- C++
- Rust (including other scoped_identifier/scoped_type_identifier fixes)
- JS (only namespace_import)
Addresses #516
|
| | |
|
| | |
|
| |
|
|
| |
@exception for Java/JS
|