Skip to content

Commit

Permalink
Highlight ebuild/eclass files with shell syntax
Browse files Browse the repository at this point in the history
Upstream patch: sublimehq/Packages#2541

closes #1292
  • Loading branch information
sharkdp committed Oct 30, 2020
1 parent 9befa81 commit 16a4076
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
15 changes: 15 additions & 0 deletions assets/patches/ShellScript.sublime-syntax.patch
Original file line number Diff line number Diff line change
@@ -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)

0 comments on commit 16a4076

Please sign in to comment.