summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMohamed Abdelnour <mohamed.k.abdelnour@gmail.com>2021-05-14 18:16:38 +0200
committerMohamed Abdelnour <mohamed.k.abdelnour@gmail.com>2021-05-14 18:16:38 +0200
commit395a169104446a5ca240329530de91695dbdc72e (patch)
tree0b61b55eae4d2e874838e198ea24c5bf3da9da12
parent93f710bdffcd71fb1533609339778ea699a0c8b8 (diff)
Add support for dash shebang
-rw-r--r--assets/patches/ShellScript.sublime-syntax.patch9
-rw-r--r--assets/syntaxes.binbin701786 -> 701827 bytes
2 files changed, 7 insertions, 2 deletions
diff --git a/assets/patches/ShellScript.sublime-syntax.patch b/assets/patches/ShellScript.sublime-syntax.patch
index 4afcdb00..5aa7fba1 100644
--- a/assets/patches/ShellScript.sublime-syntax.patch
+++ b/assets/patches/ShellScript.sublime-syntax.patch
@@ -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
@@ -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 [^*]* -\*-
+
+ #-------------------------------------------------------------------------------
diff --git a/assets/syntaxes.bin b/assets/syntaxes.bin
index cd87edd8..2fdd79a2 100644
--- a/assets/syntaxes.bin
+++ b/assets/syntaxes.bin
Binary files differ