You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
enh(bash) Less false positives for keywords in arguments (highlightjs#2669)
In bash, option, param, and command names may contain builtins as
hyphen-delimited components. As in `foo --set-bar`. (where `set`
is a keyword and therefore incorrectly highlighted)
In order to handle this, just add `-` to the pattern's set of word
characters. Includes a new test for bash tokens containing keywords,
which checks hyphens and underscores for a few common cases.
0 commit comments