atom / language-shellscript

ShellScript package for Atom
Other
39 stars 84 forks source link

preceding slash space breaks shell variable name highlighting #138

Open wesinator opened 5 years ago

wesinator commented 5 years ago

Prerequisites

Description

Phrase with slash escaped spaces preceding var use breaks the highlighting on the var name.

Steps to Reproduce

echo test\ file_$DATE.txt
echo test file_$DATE.txt

Expected behavior: DATE highlighted as var in both cases

Actual behavior: words with preceding slash escaped spaces cause var name following $ to not be highlighted.

image

Reproduces how often: always

Versions

macOS atom 1.35.1 0.27.9

rsese commented 5 years ago

Thanks @wesinator :+1: Reproduced with 1.35.1 on macOS 10.12.6.