Skip to content

Commit

Permalink
[ShellScript] Use Bash.sublime-syntax with the ash shell
Browse files Browse the repository at this point in the history
  • Loading branch information
wbond committed Feb 8, 2019
1 parent 180e61a commit 54f0cf6
Showing 1 changed file with 4 additions and 16 deletions.
20 changes: 4 additions & 16 deletions ShellScript/Bash.sublime-syntax
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ file_extensions:
- sh
- bash
- zsh
- ash
- .bash_aliases
- .bash_completions
- .bash_functions
Expand All @@ -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:
Expand Down

0 comments on commit 54f0cf6

Please sign in to comment.