summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorsharkdp <davidpeter@web.de>2020-10-30 20:25:23 +0100
committerDavid Peter <sharkdp@users.noreply.github.com>2020-10-30 22:33:23 +0100
commitc4bbf2886240148979f65d88f1adf548c3e5be4d (patch)
tree234842696e96d00990680f27c5f2c6647136723f
parent9befa81e36de97475e324931061150e3d97da9c1 (diff)
Highlight ebuild/eclass files with shell syntax
Upstream patch: https://github.com/sublimehq/Packages/pull/2541 closes #1292
-rw-r--r--CHANGELOG.md1
-rw-r--r--assets/patches/ShellScript.sublime-syntax.patch15
2 files changed, 16 insertions, 0 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 478324c4..91a0ab46 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -8,6 +8,7 @@
## Bugfixes
- Throws an error when `bat` is being used as `pager`, see #1343 (@adrian-rivera)
+- Bash syntax highlighting not selected for `*.ebuild` and `*.eclass` files, see #1292 (@sharkdp)
## Other
diff --git a/assets/patches/ShellScript.sublime-syntax.patch b/assets/patches/ShellScript.sublime-syntax.patch
new file mode 100644
index 00000000..4afcdb00
--- /dev/null
+++ b/assets/patches/ShellScript.sublime-syntax.patch
@@ -0,0 +1,15 @@
+diff --git syntaxes/01_Packages/ShellScript/Bash.sublime-syntax syntaxes/01_Packages/ShellScript/Bash.sublime-syntax
+index e973e319..a703cef8 100644
+--- syntaxes/01_Packages/ShellScript/Bash.sublime-syntax
++++ syntaxes/01_Packages/ShellScript/Bash.sublime-syntax
+@@ -30,8 +30,8 @@ file_extensions:
+ - .zshenv
+ - .zshrc
+ - PKGBUILD # https://jlk.fjfi.cvut.cz/arch/manpages/man/PKGBUILD.5
+- - .ebuild
+- - .eclass
++ - ebuild
++ - eclass
+
+ first_line_match: |
+ (?x)