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:
Steven Sojka 2020-06-15 07:05:20 -05:00
commit 4551b0e1c9
11 changed files with 330 additions and 11 deletions

View file

@ -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.