Skip to content

Commit

Permalink
fix smarty.hrc #75
Browse files Browse the repository at this point in the history
  • Loading branch information
ctapmex committed May 4, 2024
1 parent 440607e commit 1ef8c8c
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
- [shell-posix] Comments are not recognized in case statement
- [shell-posix] Commands are not recognized correctly after escaped new-line
- [shell-bash] Redirection symbols < and > inside "magic backticks" block break background highlighting till the end of the file
- [smarty] fixed the work of smarty templates

### Changed
- Simplified catalog.xml.
Expand Down Expand Up @@ -54,6 +55,8 @@
- [jcl] many changes
- [pl1] many changes
- [cmake] updated for cmake version 3.29.2; add gen script for cmake
- [smarty] add tpl extension and first line pattern
- [prolog] add first line pattern

## [1.2.0] - 2021-09-12

Expand Down
4 changes: 2 additions & 2 deletions hrc/hrc/inet/smarty.hrc
Original file line number Diff line number Diff line change
Expand Up @@ -280,11 +280,11 @@
</scheme>

<scheme name="Insertion">
<inherit scheme="smartyEscape" />
<!--<inherit scheme="smartyEscape" />-->
<inherit scheme="smartyComment" />
<inherit scheme="smartyPhpInsertion"/>

<block start="/(\{)/" end="/(\})/"
<block start="/(\{)\M[^\s]/" end="/(\})/"
priority="low" content-priority="low"
scheme="smartyScript" region="Insertion"
region00="OpenTag" region10="OpenTag"
Expand Down
5 changes: 4 additions & 1 deletion hrc/hrc/proto.hrc
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,9 @@
</prototype>
<prototype name="smarty" group="inet" description="Smarty PHP Templates">
<location link="inet/smarty.hrc" />
<filename weight="10">/\.smarty$/</filename>
<filename>/\.smarty$/</filename>
<filename>/\.tpl$/</filename>
<firstline>/^\s*[{&lt;]/x</firstline>
</prototype>
<prototype name="ss" group="inet" description="SilverStripe">
<location link="inet/ss.hrc" />
Expand Down Expand Up @@ -948,6 +950,7 @@
<prototype name="turboProlog" group="rare" description="Turbo Prolog">
<location link="rare/tprolog.hrc" />
<filename>/\.tpl$/i</filename>
<firstline>/^\s*(domains|predicates|goal)\s*/ix</firstline>
</prototype>
<prototype name="verilog" group="rare" description="Verilog HDL">
<location link="rare/verilog.hrc" />
Expand Down

0 comments on commit 1ef8c8c

Please sign in to comment.