Commit graph

125 commits

Author SHA1 Message Date
Eric Zheng (PiaoDan)
9587db3d07
fix: add more indentations for ruby (#3139) 2022-07-09 10:58:25 +02:00
kiyan
8bc4d046e7 fix(rust): remove if_let from indent captures
fixes https://github.com/nvim-treesitter/nvim-treesitter/issues/3073
2022-07-08 00:27:51 +02:00
kiyan
6eb35103d0 fix(go): indent const declaration
https://github.com/nvim-treesitter/nvim-treesitter/issues/3104
2022-07-08 00:14:29 +02:00
Kiyan
6f3fbb2622
fix(ecma): indent end for bracket (#3121) 2022-07-07 14:35:12 +02:00
Duncan McDougall
901ffe1a36
Add support for custom parser install locations #2959 (#3031) 2022-06-20 22:50:07 +02:00
Phelipe Teles
589d18ab68 test(indents/yaml): add tests 2022-06-14 22:37:52 +02:00
Bruno BELANYI
fcba0368a6 fix(tiger): add 'ft' modeline in highlight corpus 2022-06-14 22:34:03 +02:00
Bruno BELANYI
b8e3b03748 fix(tiger): adjust invalid queries 2022-06-14 22:34:03 +02:00
Bruno BELANYI
6e3f888dc7 test(tiger): import upstream tests 2022-06-14 22:34:03 +02:00
przepompownia
910743c77a Don't expect any change on reindenting the whole unfinished-call.php 2022-05-15 14:52:43 +02:00
przepompownia
d4d77b315f unfinished-call.php: expect 0-column indentation 2022-05-15 14:52:43 +02:00
przepompownia
c43d2cec08 Remove unused XFAIL 2022-05-15 14:52:43 +02:00
przepompownia
afd74f4ccf Change test expectation 2022-05-15 14:52:43 +02:00
Santos Gallegos
f1373051e5
Python: highlight future import (#2936)
* Python: highlight future import

* Use constant.builtin
2022-05-13 21:46:06 +00:00
Stephan Seitz
a4f9539a0c highlights(cpp): make "::" @punctuation.delimiter
Fixes #2902
2022-05-07 13:30:36 +02:00
Santos Gallegos
132405f18f Python: highlight raise from statement 2022-05-01 10:06:13 +02:00
Christian Clason
bc25a6a5c4 chore!: remove ensure_installed='maintained'
Removes all support (and tests) for the parser category "maintained", as
this is no longer a useful category.

BREAKING CHANGE: replace `ensure_installed='maintained'` by an explicit
list of parsers, or use `'all'` (not recommended).
2022-04-30 11:42:46 +02:00
Michael Hoffmann
82e43748cf indent(hcl): fix function calls 2022-04-25 23:36:36 +02:00
Michael Hoffmann
b1e8b61a94 indents(hcl): fix indentation queries
This commit adds tests for hcl indentation and fixes various bugs
2022-04-24 18:57:30 +02:00
Akin Sowemimo
bca65c068b test(go): add cases for newlines de-indentation
test(go): combine new indent test cases

test(go): add incorrect indent after var closing )

this case does not work correctly already so add that in since this PR
does not address that case

test(go): set current lines in indent test

test(go): simplify test case
2022-04-18 14:11:02 +02:00
Jędrzej Boczar
717fef738b fix(indent/lua): wrong for nested tables due to branch on opening pairs 2022-04-06 21:28:11 +02:00
Stephan Seitz
bda4b35f76 indents(ecma): use auto indent on (ERROR)
Fixes #2515
2022-04-04 09:03:30 +02:00
Daniel Woznicki
f84a634ffd Changed quotes to appease stylua 2022-04-04 06:58:26 +02:00
Daniel Woznicki
e1f8a8a6f8 Fixed incorrect Java indentation for method chaining 2022-04-04 06:58:26 +02:00
Stephan Seitz
acdec99163 chore: update formatting for stylua update 2022-04-02 18:25:47 +02:00
Stephan Seitz
b8d1c2445a highlights(python): "from" in yield should be @keyword.return
Fixes #2712
2022-04-01 17:00:21 +02:00
Pedro Castro
cf9faaa0e3 r(indents): fix brace_list alignment 2022-03-29 08:43:38 +02:00
Daniel Woznicki
b7ae8867b0 Combined closing.css and block.css test files into single open_block.css 2022-03-19 12:29:36 +01:00
Daniel Woznicki
b1380560a0 Added fix for incorrect CSS indent after closing bracket
Added a failing test for possible broken CSS syntax tree
2022-03-19 12:29:36 +01:00
YongJieYongJie
fc0b881f93 Refactor solidity highlights.scm further
- Instead of @keyword, use @conditional, @exception, @return, @function
  as appropriate
- Standardize to using @field (instead of @property)for struct members
2022-03-11 19:06:39 +01:00
YongJieYongJie
8f3991065d Refactor solidity highlights.scm
- Use more specific/appropriate captures; change invalid captures
- Don't highlight punctuations in type names (e.g., the brackets in
  'bytes32[]')
2022-03-11 19:06:39 +01:00
YongJieYongJie
a180859eea Add highlights query for Solidity 2022-03-11 19:06:39 +01:00
Daniel Woznicki
82389e52b6 Added test for known indent failure when tree is in broken state 2022-03-01 21:12:14 +01:00
Daniel Woznicki
3d6f2637a2 Made block comment indent @auto so that new lines line up nicely with existing comment block
Previous indentation:
    /**
    *
    */

    New indentation:
    /**
     *
     */
2022-03-01 21:12:14 +01:00
Daniel Woznicki
9f78c9f0ad Added test case for broken trees, plus partial test coverage 2022-03-01 21:12:14 +01:00
Daniel Woznicki
e23f5d48be Modified Java indent rules to stop ignoring block comments because javadoc blocks were defaulting to indent 0 2022-03-01 21:12:14 +01:00
Daniel Woznicki
bf2493f5e1 Added fix for Java interfaces not being indented properly 2022-03-01 21:12:14 +01:00
Munif Tanjim
3ef2c77e13 fix(indent): ecma - parenthesized expression indentation 2022-02-26 15:44:37 +01:00
Munif Tanjim
20168d8e20 fix(indent): ecma - class method indentation 2022-02-26 15:44:11 +01:00
Daniel Woznicki
18c558fd92 Fixed a bug where indentation was not correct for class/enum bodies that had an annotation 2022-02-25 08:03:43 +01:00
Daniel Woznicki
1b47af43ce Fixed a bug where Java enum body indentation was not correct
Added test for Java enum indentation
2022-02-25 08:03:43 +01:00
Daniel Woznicki
8f04c2ad2d Removed newline causing sylua lint check to fail 2022-02-25 00:58:59 +01:00
Daniel Woznicki
b425a9c813 Added fix for incorrect Java indentation after a closing "}" in a method declaration
Added tests for Java indentation, including one for issue 2571
2022-02-25 00:58:59 +01:00
Connor Lay (Clay)
00dce44780 Gleam highlight tests 2022-02-15 19:01:02 +01:00
Connor Lay (Clay)
b62750e328 Gleam indentation tests 2022-02-15 19:01:02 +01:00
Stephan Seitz
6e7c8c4fed tests: add failing test for incomplete arguments 2022-02-13 12:19:54 +01:00
Stephan Seitz
3fbf280e34 indents(php): don't use aligned_indent for php
Fixes #2497
2022-02-13 12:19:54 +01: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
Stephan Seitz
2caac44720 fix: Allow re-parsing in Python, XFAIL \ indentation test 2022-02-06 19:42:57 +01:00