diff options
| author | Maxime Coste <mawww@kakoune.org> | 2017-05-25 08:30:49 +0100 |
|---|---|---|
| committer | Maxime Coste <mawww@kakoune.org> | 2017-05-25 08:30:49 +0100 |
| commit | f014eb7052082f7a6760dbd2aec9204b0cb4e1dc (patch) | |
| tree | 0f657031a7492a4704343bd34513b65bd03e6fa5 /test | |
| parent | 3e4e4f6210b7f0ff0fdbe841dc8a68a330379eb9 (diff) | |
Fix command parsing bug when commenting after a command
When a comment was present directly on the same line after a command,
we did not correctly see the command as terminated and would join
continue parsing the next line.
Diffstat (limited to 'test')
| -rw-r--r-- | test/regression/0-comment-after-command/cmd | 1 | ||||
| -rw-r--r-- | test/regression/0-comment-after-command/in | 1 | ||||
| -rw-r--r-- | test/regression/0-comment-after-command/out | 1 | ||||
| -rw-r--r-- | test/regression/0-comment-after-command/rc | 5 |
4 files changed, 8 insertions, 0 deletions
diff --git a/test/regression/0-comment-after-command/cmd b/test/regression/0-comment-after-command/cmd new file mode 100644 index 00000000..ec7cb854 --- /dev/null +++ b/test/regression/0-comment-after-command/cmd @@ -0,0 +1 @@ +:my-command<ret> diff --git a/test/regression/0-comment-after-command/in b/test/regression/0-comment-after-command/in new file mode 100644 index 00000000..8b137891 --- /dev/null +++ b/test/regression/0-comment-after-command/in @@ -0,0 +1 @@ + diff --git a/test/regression/0-comment-after-command/out b/test/regression/0-comment-after-command/out new file mode 100644 index 00000000..257cc564 --- /dev/null +++ b/test/regression/0-comment-after-command/out @@ -0,0 +1 @@ +foo diff --git a/test/regression/0-comment-after-command/rc b/test/regression/0-comment-after-command/rc new file mode 100644 index 00000000..96606f44 --- /dev/null +++ b/test/regression/0-comment-after-command/rc @@ -0,0 +1,5 @@ +def my-command %{ + buffer-next # go to next + %sh{ echo buffer-previous } + exec ifoo<esc> +} |
