Pham Huy Hoang
01e8a51451
feat(python): add "return" patterns to @indent_end
...
`return ...` is usually the last line of a
function/statement, so mark some possible patterns of `return` with
`@indent_end` to dedent the line after it
2023-03-16 13:41:19 +01:00
Pham Huy Hoang
f5ddd8f92e
fix(python): add missing @indent_end
2023-03-16 03:46:01 -04:00
George Harker
fa0644667e
fix: change folding algorithm to fix Python indents
2023-03-15 22:44:59 +01:00
Stephan Seitz
2caac44720
fix: Allow re-parsing in Python, XFAIL \ indentation test
2022-02-06 19:42:57 +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
b06961a519
fix(indents): re-parse before each indent
2022-02-05 18:54:55 +01:00
Munif Tanjim
bb60706433
feat(indent): support @aligned_indent for python
2022-01-21 10:51:51 +01:00
Munif Tanjim
c0110e34aa
feat: rewrite indent module
2022-01-21 10:51:51 +01:00
Munif Tanjim
baf94219aa
feat: improve indent module
...
get_node_at_line should return appropriate child if available
2022-01-21 10:51:51 +01:00
oxalica
6407d54092
fix: off-by-one errors in indent calculation
2021-11-28 14:52:06 +01:00
Stephan Seitz
c7634f16de
Mark failing indent tests to add them to CI
...
Expected failures should be monitored so that we don't have regressions
and also remove failure marks when they are resolved.
2021-11-24 17:29:55 +01:00
Santos Gallegos
be8f656087
Use stylua for autoformat code ( #1480 )
2021-07-04 21:12:17 +00:00
Jędrzej Boczar
af3537fbe5
tests/indent: factor out most of the code into common.lua
2021-04-23 21:21:38 +02:00
Jędrzej Boczar
dbb1550aaf
tests/indent: move common code out of main lua/ directory
2021-04-23 21:21:38 +02:00
Jędrzej Boczar
db97170e4e
tests/indent: move the run helper functions to top-level
2021-04-23 21:21:38 +02:00
Jędrzej Boczar
63a88c873f
move all tests to top-level tests/ directory
2021-04-23 21:21:38 +02:00