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

bash syntax highlighting incorrect #2437

Closed
bahamas10 opened this issue Jun 4, 2015 · 2 comments
Closed

bash syntax highlighting incorrect #2437

bahamas10 opened this issue Jun 4, 2015 · 2 comments

Comments

@bahamas10
Copy link

not sure if this is the right place, but the bash syntax highlighter breaks if command substitution is done inside parameter expansion

foo=${foo:-$(date | awk '{print $0}')}

# now everything is messed up
for f in ./*.js; do
  echo "$f"
done

The curly braces inside the awk command throw off the outside curly braces used around the variable it seems

@pchaigno
Copy link
Contributor

pchaigno commented Jun 4, 2015

Linguist only selects the grammar to highlight the language based on the detection results. atom/language-shellscript is used to highlight Bash code. You should open an issue there.

@arfon
Copy link
Contributor

arfon commented Oct 20, 2015

I believe this is now fixed. Please re-open if not!

@arfon arfon closed this as completed Oct 20, 2015
@github-linguist github-linguist locked as resolved and limited conversation to collaborators Jun 17, 2024
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