Skip to content

Continuation lines confuse the intra-word highlighting #705

Open
@danielshahaf

Description

@danielshahaf
% tests/generate.zsh $'echo foo\\\nbar"baz"' main backslash-continuation2
BUFFER=$'echo foo\\\nbar"baz"'

expected_region_highlight=(
  '1 4 builtin' # echo
  '6 16 default' # foo\\\nbar"ba
  '12 16 double-quoted-argument' # ar"ba
)

What happens is that ${(z)} eats the backslash for us:

% pz $'echo foo\\\nbar"baz"' 
$'echo'
$'foobar"baz"'
% 

… but we don't account for that.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions