Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Shell script syntax highlighting error #33034

Closed
fmercier opened this issue Aug 23, 2017 · 2 comments
Closed

Shell script syntax highlighting error #33034

fmercier opened this issue Aug 23, 2017 · 2 comments
Assignees

Comments

@fmercier
Copy link

fmercier commented Aug 23, 2017

  • VSCode Version: Code 1.15.1 (41abd21, 2017-08-16T18:07:25.676Z)
  • OS Version: Windows_NT x64 6.1.7601
  • Extensions:
Extension Author (truncated) Version
Bookmarks ale 0.15.2
xml Dot 1.9.2
tortoise-svn fan 0.1.1
rest-client hum 0.15.2
AWK lug 0.0.2
mssql ms- 1.1.0
PowerShell ms- 1.4.1
vs-keybindings ms- 0.1.7
partial-diff ryu 0.3.1

Steps to Reproduce:

  1. Create a new file
  2. Select Language shell script (Bash)
  3. Enter the snippet
#!/bin/bash
CONT=`cat <<-END1 | wc -l
    line1
    line2
END1`
echo "$CONT"

4.- The last lime must be highlighted as a new statement

Reproduces without extensions: Yes

@LaurentTreguier
Copy link

LaurentTreguier commented Aug 29, 2017

I don't know if this is really related, but a similar problem arises with herestrings (<<<) :

format() {
    name=$(awk '{print tolower($0)}' <<< $1)
    name=$(sed 's/\s+//g;s/[^a-z]//g'<<< $name)
    echo $name
}

With this snippet, the 2 last lines of the function will not be highlighted properly.

  • VSCode Version: VSCode 1.15.1 (41abd21)
  • OS Version: Fedora 26 x86_64

@aeschli
Copy link
Contributor

aeschli commented Aug 31, 2017

Duplicate of textmate/shellscript.tmbundle#35

image

@aeschli aeschli closed this as completed Aug 31, 2017
@vscodebot vscodebot bot locked and limited conversation to collaborators Nov 17, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants