Skip to content

bash syntax highlighting incorrect #2437

Description

@bahamas10

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

No activity

Activity on this issue will appear here.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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