helix-mods/helix-core
Skyler Hawthorne 58ea193054 Allow explicit newlines in test DSL
The current test DSL currently has no way to express being at the end of
a line, save for putting an explicit LF or CRLF inside the `#[|]#`. The
problem with this approach is that it can add unintended extra new lines
if used in conjunction with raw strings, which insert newlines for you.

This is a simple attempt to mitigate this problem. If there is an
explicit newline character at the end of the selection, and then it
is immediately followed by the same newline character at the right end
of the selection, this following newline is removed. This way, one can
express a cursor at the end of a line explicitly.
2023-03-20 18:34:40 -05:00
..
src Allow explicit newlines in test DSL 2023-03-20 18:34:40 -05:00
tests Test indentation level calculation (#6281) 2023-03-12 12:41:07 -05:00
.gitignore Initial import. 2020-05-20 18:14:51 +09:00
Cargo.toml Allow explicit newlines in test DSL 2023-03-20 18:34:40 -05:00