Commit graph

2321 commits

Author SHA1 Message Date
kiyan
2e67eace75 chore: remove lua heredocs in documentation and readme 2022-02-11 10:42:03 +01:00
github-actions[bot]
708b4e4cac
Update lockfile.json (#2512)
Co-authored-by: GitHub <noreply@github.com>
2022-02-11 09:36:01 +00:00
github-actions[bot]
b291c74923
Update lockfile.json (#2508)
Co-authored-by: GitHub <noreply@github.com>
2022-02-10 09:15:48 +01:00
Connor Lay (Clay)
5045086793 Fix Elixir indents to match mix format 2022-02-10 07:24:08 +01:00
Fabian Viöl
4990db79a8 highlights(cpp): Highlight method with nested qualified_identifier
so that methods like these are correctly highlighted

```cpp

class A {
    class B {
       void foo();
    };
};

void A::B::foo() {
//         ^^^
}
```

This only increases the nesting level by one.
AFAIK abritrary nesting is difficult to do with current queries.

But this nesting is a pretty common case
2022-02-09 21:35:00 +01:00
Stephan Seitz
b9c6f3ed45 fix(makefile): add forgotten CXX_STANDARD again 2022-02-09 21:34:14 +01:00
MDeiml
7e3b06df71 Only allow yaml at start of file 2022-02-09 21:25:31 +01:00
GitHub
1b74deaa32 Update lockfile.json 2022-02-09 09:40:57 +01:00
github-actions[bot]
c79901e23a
Update lockfile.json (#2495)
Co-authored-by: GitHub <noreply@github.com>
2022-02-08 23:01:55 +00:00
Stephan Seitz
5639b74db0 chore(makefile): apply fixes to original makefile 2022-02-08 23:37:59 +01:00
Stephan Seitz
81f2a5d702 fix(makefile): fallback to c++14 when parser does not have cxx_standard set 2022-02-08 23:37:59 +01:00
Stephan Seitz
6599887899 fix: revert to basic makefile where all variables are set by Lua
Fixes #2463
2022-02-08 23:37:59 +01:00
Stephan Seitz
6c9b80d73c fix: -Os should be used during compilation phase in makefile 2022-02-08 23:37:59 +01:00
GitHub
b1ef403322 Update lockfile.json 2022-02-08 17:13:37 +01:00
Pierrick Guillaume
c867d483a5 add(vim): add highlight for more keywords 2022-02-08 16:27:40 +01:00
github-actions[bot]
6bc17444fb
Update lockfile.json (#2490)
Co-authored-by: GitHub <noreply@github.com>
2022-02-08 08:09:35 +01:00
GitHub
1f07711535 Update lockfile.json 2022-02-07 23:00:48 +01:00
Stephan Seitz
fbcfa7ebee locals(python): adapt as_pattern to upstream change 2022-02-07 22:36:46 +01:00
GitHub
6568c7570c Update lockfile.json 2022-02-07 22:36:46 +01:00
Sergio A. Vargas
3914267577
feat(highlights/julia): Add missing highlights (#2464)
- Add highlights for:
    + command strings
    + abstract type definitions
    + module `end` delimiters

- Distinguish `:` in quotes and ranges (it's already highlighted
  differently in ternary expressions).
2022-02-07 22:16:58 +01:00
Zoltán Reegn
d6e6581a25 feat(vim): highlight default parameters 2022-02-07 13:42:34 +01:00
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