Skip to content

Shell lexer incorrectly highlights some BASH syntax extensions #4

@craigbarnes

Description

@craigbarnes

Is lexers/sh.lua intended to support BASH or strictly just POSIX shell? If fed the following BASH syntax, everything after the # is highlighted as a comment:

if test ${#A[@]} -eq 0; then
    echo
fi

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions