Skip to content

Commit 92586fd

Browse files
committed
Switch shell #! to preproc.
1 parent fd7f3ef commit 92586fd

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎lexers/bash.go‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ var Bash = Register(MustNewLexer(
3434
"basic": {
3535
{`\b(if|fi|else|while|do|done|for|then|return|function|case|select|continue|until|esac|elif)(\s*)\b`, ByGroups(Keyword, Text), nil},
3636
{"\\b(alias|bg|bind|break|builtin|caller|cd|command|compgen|complete|declare|dirs|disown|echo|enable|eval|exec|exit|export|false|fc|fg|getopts|hash|help|history|jobs|kill|let|local|logout|popd|printf|pushd|pwd|read|readonly|set|shift|shopt|source|suspend|test|time|times|trap|true|type|typeset|ulimit|umask|unalias|unset|wait)(?=[\\s)`])", NameBuiltin, nil},
37-
{`\A#!.+\n`, CommentHashbang, nil},
37+
{`\A#!.+\n`, CommentPreproc, nil},
3838
{`#.*\n`, CommentSingle, nil},
3939
{`\\[\w\W]`, LiteralStringEscape, nil},
4040
{`(\b\w+)(\s*)(\+?=)`, ByGroups(NameVariable, Text, Operator), nil},

0 commit comments

Comments
 (0)
⌂ 换网址