Maxime Coste
5696ed02e4
Fix invalid insertion of ; after } closing some functions
...
Function taking a parameter with a struct tag on the last line
before the opening { were wrongly treated as structs. Add some
additional regex logic to try to catch those cases.
Fixes #4136
2021-04-08 20:14:02 +10:00
John Isom
2e6e507d42
Add c-family test cases for bad indentation edge case
2020-07-27 12:02:32 -06:00
John Isom
46ea52a0a8
Add test cases for c-family closing brace indentation
2020-07-26 19:04:08 -06:00
Maxime Coste
0a66eb9c47
Expand env vars as list of strings
...
This makes it possible to do :select `%val{selections_decs}` and to
correctly combine $kak_quoted with those.
2020-03-02 20:53:28 +11:00
Jason Felice
e888f4341c
test: Allow expect-style UI tests, testing any var
2019-10-13 14:57:24 -04:00
Maxime Coste
e840140b38
Add indent tests for brace after else indent
2019-07-25 17:27:08 +10:00
Grant Moyer
d8e4c6801f
Fix autoindent issues with paren in literal
2019-03-31 00:07:12 -04:00
Grant Moyer
61840c8b11
Preserve tabs during autoindent and alignment with '(' for c-family languages
...
Also add test for tab preservation during c-family autoindentation, and correct alignment of '}' with opening of block in cases of wrap between '(' and ')' in c-family languages
2019-03-28 13:08:02 -04:00
Alex Leferry 2
c0dccdd90d
Add categories in rc/
...
Closes #2783
2019-03-21 01:06:16 +01:00
Justin Frank
58c15b0240
Indent and deindent c-family single line else properly
2019-02-08 15:16:29 -08:00
Maxime Coste
0600724a8b
Improve some corner cases in c-family auto-indenting
2019-01-14 23:42:57 +11:00
Justin Frank
de839d14c4
added test for deindentation
2018-09-12 12:25:36 -07:00
Maxime Coste
8c6af54db3
c-family.kak: Fix comment line continuation behaviour
...
Fixes #2043
2018-05-19 14:15:16 +10:00
Maxime Coste
67424aae1e
Remove avoidance of end of lines
...
Various places in Kakoune code used to modify selections so that
cursors would not lie on an end of line. Remove those to increase
Kakoune's consistency and simplicity.
Now that end of lines are highlighted separately, they should not
be handled specially in most commands.
2018-02-25 00:05:05 +11:00
Maxime Coste
1a38849086
c-family.kak: indent after parenthesis at end of line
2017-12-03 17:47:44 +08:00
Maxime Coste
78530b82be
Add an indentation test for braces after if
2017-10-25 10:27:39 +08:00
Maxime Coste
bb9dd14a09
Check final cursor position in indent/c-family/indent-if-body test
2017-07-29 10:46:41 +07:00
Maxime Coste
e73cd78288
Fix corner case in C family indenting
2017-06-13 10:19:38 +01:00
Maxime Coste
1c16a91fd6
Add some missing tests for c-family indent
2017-05-21 22:33:00 +01:00
Maxime Coste
2f9b77b748
Smarter align to opening parenthesis/brace supporting multiline
2017-05-21 22:31:05 +01:00
Maxime Coste
cab0adaa53
Support aligning to opening { as well as ( in c-family indent
2017-05-20 11:08:13 +01:00
Maxime Coste
d5231c713e
Fix corner case in C indentation
2017-01-02 04:15:12 +00:00
Maxime Coste
d8f00198f3
Improve C indentation support around namespace/struct closing bracket
2016-12-09 13:50:41 +00:00