Commit graph

2300 commits

Author SHA1 Message Date
github-actions[bot]
3eb4dff014
Update lockfile.json (#2481)
Co-authored-by: GitHub <noreply@github.com>
2022-02-06 22:15:52 +00:00
Munif Tanjim
a98fa4839d test(indent): fix typos 2022-02-06 23:07:22 +01:00
Stephan Seitz
5fd68ba0c2 indents(lua): make ")" `@indent_end
Fixes #2476
2022-02-06 20:47:15 +01:00
Carlo Sala
726d9be3aa fix: readme typo, removing deprecated docs 2022-02-06 20:22:44 +01:00
Stephan Seitz
2caac44720 fix: Allow re-parsing in Python, XFAIL \ indentation test 2022-02-06 19:42:57 +01:00
Stephan Seitz
fc54020531 tests(indent): also test creating new line when still in insert mode 2022-02-06 19:42:57 +01:00
Stephan Seitz
9940e48675 tests: add test for #2086
While this does not test the described problem in insert mode
2022-02-06 19:42:57 +01:00
kiyan
a0b7cece2c chore: expose start and stop highlighter
Decompose highlighter module in small functions to allow exporting a
start and stop functions without the syntax change.
Also fix linter issues in configs.lua
2022-02-06 15:12:34 +01:00
kiyan
58a4897e6d refacto: deprecate used_by in parsers.lua
- remove print_warning function from utils.lua (unused)
- cleanup some functions in parsers.lua (parameters overloading
  and wrong bufnr used).
- log a deprecation notice when using used_by in a parser definition
- default the filetype_to_parsername table to the list of filetypes
  previously in the used_by keys
- update the README to indicate that change
2022-02-06 14:30:57 +01:00
Dundar Göc
d7eab3a5a9 ci: use apt-get instead of apt to avoid warnings from apt 2022-02-06 13:58:41 +01:00
Dundar Göc
322c7995b2 ci: remove unnecessary apt calls 2022-02-06 13:58:41 +01:00
jedsek
767292681e Update 'troubleshooting' for using mirror. 2022-02-06 12:59:12 +01:00
GitHub
1c8719f434 Update lockfile.json 2022-02-06 10:22:33 +01:00
Dundar Göc
194aaf7159 ci: remove apt update if on workflows where it's not used
Shaves off 10 seconds per workflow.
2022-02-06 01:16:59 +01:00
Stephan Seitz
a62971e0ef tests: Add test for C folding issue #1568
Also this issue has already been fixed
2022-02-05 19:29:14 +01:00
Stephan Seitz
a42137f56a
tests: add indent test for graphql (#2459)
Issue #1981
2022-02-05 19:11:14 +01:00
Stephan Seitz
a14970861c indents(lua): use (comment) @auto 2022-02-05 18:54:55 +01:00
Stephan Seitz
693dae241d indens(c): use (comment) @auto 2022-02-05 18:54:55 +01:00
Stephan Seitz
07e07cf303 fix(indents): ignore comment_parsers for indentation 2022-02-05 18:54:55 +01:00
Stephan Seitz
66f33ddd8b Update lua/nvim-treesitter/indent.lua
Co-authored-by: Kiyan <yazdani.kiyan@protonmail.com>
2022-02-05 18:54:55 +01:00
Stephan Seitz
b9069a81b9 tests: only compare indents not contents in indent tests 2022-02-05 18:54:55 +01:00
Stephan Seitz
ca06ff0a61 indents(r): fix all R tests 2022-02-05 18:54:55 +01:00
Stephan Seitz
9f25d66f7d indents(go): perform some changes as go fmt dictates 2022-02-05 18:54:55 +01:00
Stephan Seitz
0d1c1efff5 indents(go): fix aligned_indent for parameter_list 2022-02-05 18:54:55 +01:00
Stephan Seitz
5d954f1812 indents(go): add tests 2022-02-05 18:54:55 +01:00
Stephan Seitz
b7c72e9992 indents(go): remove function_declaration from indents 2022-02-05 18:54:55 +01:00
Stephan Seitz
992926ab99 indents(php): add another test 2022-02-05 18:54:55 +01:00
Stephan Seitz
1b0a74afa8 indent(lua): ignore comment 2022-02-05 18:54:55 +01:00
Stephan Seitz
aa035cdf2a workaround(indents): avoid reparsing for indent sensitive yaml/python 2022-02-05 18:54:55 +01:00
Stephan Seitz
d615497e7e indents(python): remove branches.py from expected failures
The previous indentation actually causes a linter warning when using
pep8
2022-02-05 18:54:55 +01:00
Stephan Seitz
dccf0f0cb8 indents(c): indent always after init_declarator 2022-02-05 18:54:55 +01:00
Stephan Seitz
ff96940767 docs: add @zero_indent to CONTRIBUTING.md 2022-02-05 18:54:55 +01:00
Stephan Seitz
eb2b73a5b0 indents(lua): fix comment indentation 2022-02-05 18:54:55 +01:00
Stephan Seitz
b06961a519 fix(indents): re-parse before each indent 2022-02-05 18:54:55 +01:00
Stephan Seitz
fd5a551d7c indents(c): add zero_indent for #if 2022-02-05 18:54:55 +01:00
Stephan Seitz
616dc885fc indents(c): fix indentation on block comment 2022-02-05 18:54:55 +01:00
Stephan Seitz
346366a330 indents(c): indent at expression_statement 2022-02-05 18:54:55 +01:00
Stephan Seitz
b9c38a48ca indents: refactor hanging indent 2022-02-05 18:54:55 +01:00
Stephan Seitz
059fbc487c indents: allow aligned_indent for unfinished calls in C and Python 2022-02-05 18:54:55 +01:00
Stephan Seitz
62982378b8 indents(cpp): indent at field_initializer_list 2022-02-05 18:54:55 +01:00
Stephan Seitz
7654bbc04b feat(indents): add support for language injection 2022-02-05 18:54:55 +01:00
Stephan Seitz
3ff725e654 indents(c): fix ternary 2022-02-05 18:54:55 +01:00
Dundar Göc
cf8ca7ee4e ci: combine "Compile parsers" steps into a single step 2022-02-05 18:26:06 +01:00
Dundar Göc
4e1a1e1750 ci: combine "Check query files" steps into a single step 2022-02-05 18:26:06 +01:00
Dundar Göc
e18e518751 ci: introduce platform-independent environment variable NVIM 2022-02-05 18:26:06 +01:00
Stephan Seitz
4d552d9fda injections(yaml): inject at command list for Gitlab script 2022-02-05 18:25:35 +01:00
Stephan Seitz
71cfcff510 injections(yaml): injection on Gitlab's before_script/after_script 2022-02-05 18:25:35 +01:00
Christian Clason
8e780a4c9d
refactor(latex): improve queries (#2457) 2022-02-05 16:09:35 +01:00
Uy Ha
c999f9aa13 Rename captures 2022-02-05 00:28:48 +01:00
Uy Ha
2dcfefa9da Improve set queries 2022-02-05 00:28:48 +01:00