Skip to content
This repository was archived by the owner on Dec 15, 2022. It is now read-only.
This repository was archived by the owner on Dec 15, 2022. It is now read-only.

[bash] Variable is not highlighted in heredoc #151

@alexr00

Description

@alexr00

From @Ash258 in microsoft/vscode#80270

#!/bin/bash
variable='whatever'
cat << END
<prtg>
	<result>
		<Channel>Memory usage</Channel>
		<Value>$variable</Value>
	</result>
</prtg>
echo "$variable"
END

Variable substitution is supported inside heredoc and variables should be highlighted as in normal string.

image

image

Bat output for comparison:

image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions