Skip to content

Commit

Permalink
Merge pull request #1654 from mohamed-abdelnour/support-dash-syntax
Browse files Browse the repository at this point in the history
Add support for dash shebang
  • Loading branch information
keith-hall committed May 15, 2021
2 parents 52c11fe + 8435cad commit bef0bf1
Show file tree
Hide file tree
Showing 5 changed files with 881 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@

## Syntaxes

- Added support for `dash` syntax, see #1654 (@mohamed-abdelnour)
- Added support for `XAML` syntax, see #1590 and #1655 (@mohamed-abdelnour)


Expand Down
9 changes: 7 additions & 2 deletions assets/patches/ShellScript.sublime-syntax.patch
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
diff --git syntaxes/01_Packages/ShellScript/Bash.sublime-syntax syntaxes/01_Packages/ShellScript/Bash.sublime-syntax
index e973e319..a703cef8 100644
index e973e319..07c170a7 100644
--- syntaxes/01_Packages/ShellScript/Bash.sublime-syntax
+++ syntaxes/01_Packages/ShellScript/Bash.sublime-syntax
@@ -30,8 +30,8 @@ file_extensions:
@@ -30,12 +30,12 @@ file_extensions:
- .zshenv
- .zshrc
- PKGBUILD # https://jlk.fjfi.cvut.cz/arch/manpages/man/PKGBUILD.5
Expand All @@ -13,3 +13,8 @@ index e973e319..a703cef8 100644

first_line_match: |
(?x)
- ^\#! .* \b(bash|zsh|sh|tcsh|ash)\b
+ ^\#! .* \b(bash|zsh|sh|tcsh|ash|dash)\b
| ^\# \s* -\*- [^*]* mode: \s* shell-script [^*]* -\*-

#-------------------------------------------------------------------------------

0 comments on commit bef0bf1

Please sign in to comment.