diff --git a/ShellScript/Bash.sublime-syntax b/ShellScript/Bash.sublime-syntax index 11b9c9a39c..0fcff933ed 100644 --- a/ShellScript/Bash.sublime-syntax +++ b/ShellScript/Bash.sublime-syntax @@ -13,6 +13,7 @@ file_extensions: - sh - bash - zsh + - ash - .bash_aliases - .bash_completions - .bash_functions @@ -33,22 +34,9 @@ file_extensions: - .eclass first_line_match: | - (?x) # ignore whitespace in this regex - ^ # assert start of the line - \#! # shebang token - .* # any characters - \b(bash|zsh|sh|tcsh)\b # "bash" or "zsh" or "sh" or "tcsh" - | # ... or ... - ^ # assert start of the line - \# # literal "#" character - \s* # any whitespace - -\*- # literal "-*-" string - [^*]* # any characters except "*" - mode: # literal "mode:" string - \s* # any whitespace - shell-script # literal "shell-script" string - [^*]* # any characters except "*" - -\*- # literal "-*-" string + (?x) + ^\#! .* \b(bash|zsh|sh|tcsh|ash)\b + | ^\# \s* -\*- [^*]* mode: \s* shell-script [^*]* -\*- #------------------------------------------------------------------------------- variables: