mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-13 17:00:09 -04:00
Merge branch 'master' into feat/typescript-queries
* master: Change regexes in C/C++ highlights Update C/C++ highlights to new query syntax Add better highlighting for preprocessor functions in C highlights Add operators /=,*=,|=,&= to C highlights Add compound_statement to c queries Add punctuation.bracket/punctuation.delimiter to C highlights Make =,~,! operators in C highlights Add cpp/locals.scm Add @error highlight to c/highlights.scm Add C++ highlights.scm Introduce base languages for queries Add tree-sitter-regex feat(queries): allow for user overrides Update issue templates
This commit is contained in:
commit
4551b0e1c9
11 changed files with 330 additions and 11 deletions
10
README.md
10
README.md
|
|
@ -156,7 +156,7 @@ List of currently supported languages:
|
|||
- [x] ruby (maintained by @TravonteD)
|
||||
- [x] c (maintained by @vigoux)
|
||||
- [x] go (maintained by @theHamsta)
|
||||
- [ ] cpp
|
||||
- [x] cpp (maintained by @theHamsta, extends C queries)
|
||||
- [ ] rust
|
||||
- [x] python (maintained by @theHamsta)
|
||||
- [x] javascript (maintained by @steelsojka)
|
||||
|
|
@ -180,6 +180,14 @@ List of currently supported languages:
|
|||
- [ ] yaml
|
||||
- [ ] nix
|
||||
- [ ] markdown
|
||||
- [x] regex (maintained by @theHamsta)
|
||||
|
||||
## User Query Extensions
|
||||
|
||||
You can add your own query files by placing a query file in vim's runtime path after `nvim-treesitter` is sourced.
|
||||
If the language has a built in query file, that file will be appended to or it will be used (useful for languages not yet supported).
|
||||
For example, you can add files to `<vim-config-dir>/after/queries/lua/highlights.scm` to add more queries to lua highlights.
|
||||
You can also manually add query paths to the runtime path by adding this to your vim config `set rtp+='path/to/queries'`.
|
||||
|
||||
## Troubleshooting
|
||||
Before doing anything run `:checkhealth nvim_treesitter`. This will help you find where the bug might come from.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue