Commit Graph

1885 Commits

Author SHA1 Message Date
Stephan Seitz
53ba38327e Add highlight tests 2021-11-24 17:29:55 +01:00
Stephan Seitz
8016b74cea ci: Try out windows-2022 2021-11-24 14:47:07 +01:00
Marco Galli
afed686e6a Add glsl ftdetect 2021-11-23 20:00:51 +01:00
GitHub
cda3978b86 Update lockfile.json 2021-11-23 16:46:44 +01:00
maxxnino
ff2897e5b7 zig: highlight zig format, type and function 2021-11-23 16:46:27 +01:00
Lewis Russell
011ac894ec Prefer lua-match over match
as string.find is much quicker than vim.regex:match*
2021-11-23 10:02:06 +01:00
GitHub
89fbb9b39e Update lockfile.json 2021-11-20 17:38:56 +01:00
Santos Gallegos
b784ca7fca Add query error: invalid node type at position to the troubleshooting section
We have had many of these recently...
2021-11-20 17:32:50 +01:00
aspeddro
190bcc8d56 r add new highlights 2021-11-18 14:16:09 +01:00
GitHub
997c70b77b Update lockfile.json 2021-11-18 09:32:45 +01:00
Santos Gallegos
1e5e028cb7 Format with stylua
CI is failing for stylua due to this.
2021-11-18 09:26:01 +01:00
vhyrro
d78fb79ed6 Add basic vimscript injection in vim.cmd/nvim_command/nvim_exec (#1922) 2021-11-16 21:14:22 -05:00
Santos Gallegos
bc7fb7fe7f Just one line 2021-11-16 21:03:52 -05:00
Santos Gallegos
9ee1de787a Docs: update docs on how to override a query
`queries/` and `after/queries/` are the same now.
I kind of prefer the old method, but just updating our docs to reflect
the reality for now.

Closes https://github.com/nvim-treesitter/nvim-treesitter/issues/1710
Closes https://github.com/nvim-treesitter/nvim-treesitter/issues/1441
2021-11-16 21:03:52 -05:00
Github Actions
a47df48e7d [docgen] Update README.md
skip-checks: true
2021-11-14 11:02:57 +01:00
Santos Gallegos
b972f1d985 C: fix preproc parameters
This was capturing too much,
we only want to highlight the identifier.

Fixes https://github.com/nvim-treesitter/nvim-treesitter/issues/1999
2021-11-14 11:02:57 +01:00
GitHub
724f8c7e79 Update lockfile.json 2021-11-12 22:13:05 +01:00
aspeddro
741812af8f r add new highlights 2021-11-12 22:02:52 +01:00
Stephan Seitz
8fe8415ae8 injections(http): add comment injection 2021-11-12 21:52:50 +01:00
gegoune
bb0ef18488 refactor: inherit json 2021-11-12 21:52:50 +01:00
gegoune
599bdaf2f0 fix: address change requests 2021-11-12 21:52:50 +01:00
gegoune
a93c5b80d7 feat: add http parser
All credit goes to @NTBBloodbath.

See: https://github.com/NTBBloodbath/rest.nvim/issues/75#issuecomment-960447966

Co-authored-by: NTBBloodbath <bloodbathalchemist@protonmail.com>
2021-11-12 21:52:50 +01:00
Fabian David Schmidt
fba03a304e feat: get node at cursor of other win 2021-11-12 20:56:09 +01:00
patrick96
e3dabec462 Add condition function to module config
The function is called with the language and bufnr, if it returns false,
the module is disabled for that buffer.

This gives the user more fine-grained control over whether a module is
started.
2021-11-12 19:55:04 +01:00
Santos Gallegos
6888242b98 Python: highlight semicolon 2021-11-12 19:51:04 +01:00
Łukasz Niemier
6372b689eb fix: use more specific identifier check 2021-11-12 13:42:36 -05:00
Łukasz Niemier
fdcd0edf24 fix: make comment doc highlighting work for any doc tag 2021-11-12 13:42:36 -05:00
Łukasz Niemier
2c2d4d89fd fix: Elixir non-doc sigils will no longer be flickering
It also adds support for colouring documentation metadata attributes
(ex. `@doc foo: :bar`).
2021-11-12 13:42:36 -05:00
GitHub
cfce9a58f3 Update lockfile.json 2021-11-12 19:23:42 +01:00
aspeddro
5706b1346b r: add new operator 2021-11-12 12:48:26 -05:00
GitHub
abe03e2a8e Update lockfile.json 2021-11-11 22:02:51 -05:00
Robert Jackson
da5920f2bf Ensure ft_to_lang supports multipart filetypes.
This allows a given parser to directly implement a multipart filetype
(like `glimmer` parser does for `html.handlebars`).

If an exact match for the current filetype is found in the lookup table,
it will be used; otherwise we look for just the first segment.
2021-11-11 21:11:15 -05:00
Robert Jackson
89b3b77033 Add html.handlebars as a valid type for the glimmer parser.
This filetype is in common use due to https://github.com/mustache/vim-mustache-handlebars/blob/master/ftdetect/handlebars.vim#L2
2021-11-11 21:11:15 -05:00
Cameron
e28b65bb52 Add Operators for Ruby
Many operators were missing from ruby, so, I added them.

Additionally, with string interpolation (`"#{xxx}"`), the closing `}` was being matched to `punctuation.bracket` instead of `punctuation.special`, so I fixed that too.

I didn't see any further details about how to contribute, so if I've overlooked anything, I'll be happy to add it.
2021-11-11 21:04:42 -05:00
Cyril Mizzi
94fa0d3189 fix(vue.indents): add support for template_element 2021-11-11 21:00:33 -05:00
Cyril Mizzi
8d6c2b0044 fix: define indents.scm for html_tags and inherits html and vue from this file 2021-11-11 21:00:33 -05:00
Cyril Mizzi
ce866ecc2f feat(vue): add indents.scm file
There's no indentation file for Vue. This implementation is based on the HTML indentation file with a minor support for the `template_element` tag. As JS is bind with the JS Tree-sitter, the indentation is already fine.
2021-11-11 21:00:33 -05:00
GitHub
0e25e0e989 Update lockfile.json 2021-11-08 15:19:33 +01:00
Sirisak Lueangsaksri
289439512e docs: make comment more specific 2021-11-08 15:04:38 +01:00
Sirisak Lueangsaksri
f6dcbe66b0 refactor: nitpicking 2021-11-08 15:04:38 +01:00
Sirisak Lueangsaksri
aaf157a6a9 feat: sync install for ensure_installed 2021-11-08 15:04:38 +01:00
Dundar Göc
83efae51bf docs: move description to the first line
This will make the description of nvim-treesitter show up in the LOCAL
ADDITIONS section of the help text. So this

|nvim-treesitter|

instead becomes

|nvim-treesitter|  Treesitter configurations and abstraction layer for Neovim.
2021-11-05 18:32:19 -05:00
GitHub
d8ed0eff3e Update lockfile.json 2021-11-04 20:55:10 +01:00
Lewis Russell
ece0f70139 fix(teal): highlighting for types 2021-11-04 20:42:36 +01:00
GitHub
7ada23db8b Update lockfile.json 2021-11-03 00:08:46 +01:00
Dundar Göc
6a4fdb317d chore: fix typos 2021-11-02 23:47:48 +01:00
Robert Jackson
968621dfad Add ftdetect setup for glimmer parser. (#1973)
Without this, `*.hbs` files are not highlighted (unless you have some
other plugin that adds it for you).
2021-11-02 14:03:32 -05:00
elianiva
0916cceab2 feat(svelte): inject JS on each expression (#1969) 2021-11-02 10:59:23 -05:00
Santos Gallegos
6d08b25f0e Update queries/python/highlights.scm 2021-11-01 16:54:46 +01:00
Santos Gallegos
df06643aa1 Revert "feat: add del keyword for highlights"
This reverts commit 385193d41f.
2021-11-01 16:54:46 +01:00