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

Syntax highlighting broken after <<< is found in file contents #82

Closed
baziliolg opened this issue Oct 4, 2017 · 2 comments · Fixed by #83
Closed

Syntax highlighting broken after <<< is found in file contents #82

baziliolg opened this issue Oct 4, 2017 · 2 comments · Fixed by #83

Comments

@baziliolg
Copy link

baziliolg commented Oct 4, 2017

Description

here-string <<< breaks Shell syntax highlighting

Steps to Reproduce

Here's an example of code that makes my editor show the rest of the script in red:

if [[ -n ${COUNTRIES} && -z ${EXCLUDE_COUNTRIES} ]]; then
    IFS=', ' read -a countries_list <<< $COUNTRIES
    for i in ${countries_list[@]} ; do
        if ! grep $i ${_cm}; then
            logerror "Country code $i does not exist." && return ${C_ERROR}
        fi
    done
fi

Starting with line after the one with <<<, the rest of the file is shown in single red color.
Screenshot link

Expected behavior: syntax highlighting should not get confused by <<<

Actual behavior: all the rest of the file contents are shown in single red color

Reproduces how often: every time here-string exists in Shell-script that I'm editing

Versions

Atom    : 1.21.0
Electron: 1.6.9
Chrome  : 56.0.2924.87
Node    : 7.4.0

apm  1.18.5
npm  3.10.10
node 6.9.5 x64
python 2.7.10
git 2.14.1

OS is MacOS Sierra 10.12.6

@DanielRivasMD
Copy link

This issue came back after update 1.38

@50Wliu
Copy link
Contributor

50Wliu commented Jun 13, 2019

@DanielRivasMD please open a new issue and we'll take a look!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants