Skip to content

yaml syntax does not handle \ characters in multiline strings #11517

@Nonoctis

Description

@Nonoctis

Steps to reproduce

Tested with this snippet:

---
- hosts: localhost
  vars:
    win_shell: |
      Move-Item -Path "C:\OldPath\*.dat" -Destination "C:\NewPath\"

  tasks:
    - debug:
        msg: "{{win_shell}}"

The result is this:
image

Expected behaviour

The syntax should not count \ characters as escaping characters in a multiline string,

Version of Vim

8.2

Environment

WSL 2.0 - Debian 11.5
Windows Terminal
xterm-256color
zsh

Can be reproduced on other distros

Logs and stack traces

No response

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