Skip to content

Commit

Permalink
Merge pull request #145 from chpock/add-shell
Browse files Browse the repository at this point in the history
Add schemes for shell POSIX and shell bash
  • Loading branch information
ctapmex authored Feb 14, 2024
2 parents 751ba3d + fdaaac0 commit 894a560
Show file tree
Hide file tree
Showing 11 changed files with 4,129 additions and 13 deletions.
5 changes: 4 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,14 @@
- [csharp] recognise functions with nullable results

### Changed
- Simplified catalog.xml.
- Simplified catalog.xml.
- Use new xsd schema for catalog.xml.
- Common.jar rename to common.zip
- reformat proto.hrc and included files; changed namespace.
- Tweak visual.hrd xml CData markup
- remove obsolete from visual-rgb.hrd
- [groovy] add .gradle as groovy
- Use the new shell-posix schema for shell scripts by default

### Added
- New package type of base - all packed. Hrc and hrd files in one archive. Directory 'auto' not in archive.
Expand All @@ -37,6 +38,8 @@
- [csharp] support C# 11 raw strings
- [cpp] add support for C++11 string literals
- [asm] add new registers, blocks. New masks for filenames and firstline
- [shell-posix] add a new schema for POSIX shell with block structures and error checking
- [shell-bash] add a new schema for bash script based on shell-posix

## [1.2.0] - 2021-09-12

Expand Down
18 changes: 15 additions & 3 deletions hrc/hrc/proto.hrc
Original file line number Diff line number Diff line change
Expand Up @@ -591,11 +591,23 @@
</prototype>
<prototype name="shell" group="scripts" description="sh/ksh/bash script">
<location link="scripts/sh.hrc" />
<firstline>/^\#(!\s*.+sh\b)/</firstline>
</prototype>
<prototype name="shell-posix" group="scripts" description="Shell Scripts (POSIX)">
<location link="scripts/shell-posix.hrc" />
<filename>/\.(sh|spec)$/i</filename>
<filename>/^PKGBUILD$/i</filename>
<filename>/\.(bash_|z)?profile/</filename>
<filename>/\.(ba|k|z)?shrc/</filename>
<firstline weight='2'>/^\#(!\s*.+sh\b)/</firstline>
<filename>/\.z?profile/</filename>
<filename>/\.(k|z)?shrc/</filename>
<firstline weight='3'>/^\#(!\s*.+sh\b)/</firstline>
</prototype>
<prototype name="shell-bash" group="scripts" description="Shell Scripts (bash)">
<location link="scripts/shell-bash.hrc" />
<filename weight='3'>/\.sh$/i</filename>
<filename weight='5'>/\.bash$/i</filename>
<filename>/\.bash_profile/</filename>
<filename>/\.bashrc/</filename>
<firstline weight='5'>/^\#!(\s*.+bash\b)/</firstline>
</prototype>
<prototype name="avisynth" group="scripts" description="AviSynth">
<location link="scripts/avisynth.hrc" />
Expand Down
Loading

0 comments on commit 894a560

Please sign in to comment.