| Summary: | Highlight PKGBUILD files as bash files | ||
|---|---|---|---|
| Product: | [Frameworks and Libraries] frameworks-syntax-highlighting | Reporter: | Andrew Shark <ashark> |
| Component: | syntax | Assignee: | KWrite Developers <kwrite-bugs-null> |
| Status: | RESOLVED FIXED | ||
| Severity: | wishlist | CC: | ashark, nate |
| Priority: | NOR | ||
| Version First Reported In: | unspecified | ||
| Target Milestone: | --- | ||
| Platform: | Other | ||
| OS: | Linux | ||
| Latest Commit: | Version Fixed/Implemented In: | ||
| Sentry Crash Report: | |||
|
Description
Andrew Shark
2017-12-08 08:44:52 UTC
Highlighting for PKGBUILD was added on 2017-11-26, see https://phabricator.kde.org/D9002 Is naming PKGBUILD-something a standard convention or just something you are doing? I am amazed how quickly this wish was handled. Thank you! Actually, naming like PKGBUILD-something is not a standard convention but just something that I am doing. Standard name is just "PKGBUILD". But it is very convinient to place such "PKGBUILD-something" files side-by-side instead of placing "PKGBUILD" files in different directories. Especially when it is needed to build different binaries from same sources. So I do not know if we should implement such "unstandard" detection, but it would be convinient. We could conceivably change PKGBUILD to PKGBUILD*, but that might have unforeseen negative ramifications. I understand that. The problems could be if somebody calls their file like "PKGBUILD instructions.txt". Maybe better instead of "PKGBUILD*" rule make "PKGBUILD-*". It should reduce unwanted behavior cases. By the way, I have found that archlinux maintainers applied patch for pkgbuild highliting https://git.archlinux.org/svntogit/packages.git/tree/trunk/pkgbuild-syntax-highlight.patch?h=packages/syntax-highlighting. I am in favor of PKGBUILD*. Will change this this weekend. I believe this is still ok and the risk of false positives is pretty low. Excellent news! @Nate: I was just about to change this. But meanwhile, I think it would be better to not change this. Instead, please configure your Kate and change PKGBUILD for Bash to PKGBUILD* yourself in the settings dialog, "Open/Save" -> "Modes & Filetypes". See: https://i.imgur.com/4Mwr9nF.png Therefore, I will change this as fixed, since the original request is already fixed. Dominik Haumann, great! Thanks for perfect suggestion. |