Skip to content

Commit b53eb50

Browse files
committed
colorer schemes v1.2.0.62
1 parent 600ff46 commit b53eb50

File tree

9 files changed

+673
-70
lines changed

9 files changed

+673
-70
lines changed

colorer/configs/base/CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,10 @@
2424
- [smarty] fixed working with nested brackets
2525
- [smarty] literal block - text only
2626
- [shell-posix] fix variable assignments with line continuations
27+
- [shell-bash] fix indirect expansion+transformation
28+
- [shell-posix] fix unhighlighted areas after updating colorer from 1.3.3 to 1.4.0
29+
- [shell-bash] fix unhighlighted areas after updating colorer from 1.3.3 to 1.4.0
30+
- [dockerfile] fix unhighlighted areas after updating colorer from 1.3.3 to 1.4.0
2731

2832
### Changed
2933
- Simplified catalog.xml.
@@ -35,6 +39,9 @@
3539
- [groovy] add .gradle as groovy
3640
- Use the new shell-posix schema for shell scripts by default
3741
- [json] highlight JSON object keys
42+
- rename lib/default.hrc to lib/def.hrc
43+
- move 'default' type implementation from proto.hrc to base/default.hrc
44+
- [shell-posix] allow to include shell-posix scheme as subscheme enclosed in quotes
3845

3946
### Added
4047
- New package type of base - all packed. Hrc and hrd files in one archive. Directory 'auto' not in archive.
@@ -72,6 +79,7 @@
7279
- [hcl] add a new schema for HashiCorp HCL
7380
- [terraform] add a new schema for HashiCorp Terraform
7481
- [dockerfile] add a new schema for Dockerfile
82+
- [jenkinsfile] add a new schema for Jenkins configuration (Jenkinsfile)
7583

7684
## [1.2.0] - 2021-09-12
7785

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!DOCTYPE hrc PUBLIC "-//Cail Lomecb//DTD Colorer HRC take5//EN"
3+
"http://colorer.sf.net/2003/hrc.dtd">
4+
<hrc version="take5" xmlns="http://colorer.sf.net/2003/hrc"
5+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
6+
xsi:schemaLocation="http://colorer.sf.net/2003/hrc http://colorer.sf.net/2003/hrc.xsd">
7+
8+
<type name="default">
9+
<scheme name='default' />
10+
</type>
11+
12+
</hrc>
13+
<!-- ***** BEGIN LICENSE BLOCK *****
14+
- Copyright (C) 1999-2009 Cail Lomecb <irusskih at gmail dot com>.
15+
- This program is free software; you can redistribute it and/or
16+
- modify it under the terms of the GNU General Public License
17+
- as published by the Free Software Foundation; either version 2
18+
- of the License, or (at your option) any later version.
19+
- This program is distributed in the hope that it will be useful,
20+
- but WITHOUT ANY WARRANTY; without even the implied warranty of
21+
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22+
- GNU General Public License for more details.
23+
- You should have received a copy of the GNU General Public License
24+
- along with this program; If not, see <http://www.gnu.org/licenses/>.
25+
- ***** END LICENSE BLOCK ***** -->
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -277,4 +277,4 @@
277277
- GNU General Public License for more details.
278278
- You should have received a copy of the GNU General Public License
279279
- along with this program; If not, see <http://www.gnu.org/licenses/>.
280-
- ***** END LICENSE BLOCK ***** -->
280+
- ***** END LICENSE BLOCK ***** -->

colorer/configs/base/hrc/proto.hrc

Lines changed: 19 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,6 @@
223223
<filename>/\.groovy$/i</filename>
224224
<filename>/\.gdsl$/i</filename>
225225
<filename>/\.gradle$/i</filename>
226-
<filename>/Jenkinsfile/i</filename>
227226
<firstline>/^import/</firstline>
228227
<firstline>/^#!groovy/</firstline>
229228
<parameters>
@@ -232,6 +231,17 @@
232231
<param name="spaces-as-errors" value="false" description="Shows trailing spaces as error" />
233232
</parameters>
234233
</prototype>
234+
<prototype name="jenkinsfile" group="scripts" description="Jenkinsfile">
235+
<location link="scripts/jenkinsfile.hrc"/>
236+
<filename>/^Jenkins[Ff]ile\..+$/</filename>
237+
<filename>/^.+\.Jenkins[Ff]ile/</filename>
238+
<filename>/^Jenkins[Ff]ile$/</filename>
239+
<filename>/\.gdsl$/i</filename>
240+
<firstline weight='3'>/(^|\n)\s*pipeline\s+\{\s*$/</firstline>
241+
<firstline weight='3'>/(^|\n)\s*node\s+\{\s*$/</firstline>
242+
<firstline weight='3'>/(^|\n)\s*node\([^\)]\)\s+\{\s*$/</firstline>
243+
<firstline weight='3'>/(^|\n)\s*import\s+org\.jenkinsci\./</firstline>
244+
</prototype>
235245

236246
<prototype name="rust" group="main" description="Rust">
237247
<location link="base/rust.hrc" />
@@ -638,13 +648,11 @@
638648
<filename>/\.(text|md|markdown)$/i</filename>
639649
</prototype>
640650
&scripts-colorer-protos;
641-
&scripts-far-protos;
651+
&scripts-far-protos;
642652
<prototype name="makefile" group="scripts" description="makefile">
643653
<location link="scripts/makefile.hrc" />
644654
<filename>/(makefile | tools\.ini) | \.(mak|gmk|ds(p|w)|bp(k|r|g))$/ix</filename>
645655
<filename weight='3'>/\.mk$/i</filename>
646-
<!--firstline>/Microsoft Developer Studio Project File/i</firstline>
647-
<firstline>/^\!if/i</firstline-->
648656
<firstline>/makefile/s</firstline>
649657
<parameters>
650658
<param name="gnu" value="false" description="use GNU make only" />
@@ -824,10 +832,10 @@
824832

825833
<!-- rare languages -->
826834
&rare-j2ee-protos;
827-
&rare-gen-protos;
828-
&rare-scripts-protos;
829-
&rare-qrm-protos;
830-
&rare-ie-weidu-protos;
835+
&rare-gen-protos;
836+
&rare-scripts-protos;
837+
&rare-qrm-protos;
838+
&rare-ie-weidu-protos;
831839
<prototype name="c1c" group="rare" description="1C">
832840
<location link="rare/1c.hrc" />
833841
<filename>/\.1c$/i</filename>
@@ -850,7 +858,7 @@
850858
</prototype>
851859

852860
<!-- !! you may wish to swap next two types
853-
because of collision with extensions -->
861+
because of collision with extensions -->
854862
<prototype name="dssp" group="rare" description="Dssp">
855863
<location link="rare/dssp.hrc" />
856864
<filename>/\.dsp$/i</filename>
@@ -1087,6 +1095,7 @@
10871095
</prototype>
10881096

10891097
<prototype name="default" group="other" description="default type">
1098+
<location link="base/default.hrc" />
10901099
<filename weight='1'>//</filename>
10911100
<parameters>
10921101
<!-- firstline -->
@@ -1095,15 +1104,10 @@
10951104
</parameters>
10961105
</prototype>
10971106

1098-
<type name="default">
1099-
<scheme name='default' />
1100-
</type>
1101-
1102-
11031107
<!-- packages -->
11041108

11051109
<package name="def" description="core definitions">
1106-
<location link="lib/default.hrc" />
1110+
<location link="lib/def.hrc" />
11071111
</package>
11081112
<package name="uri" description="URI (RFC 2396)">
11091113
<location link="lib/uri.hrc" />

colorer/configs/base/hrc/rare/json.hrc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,7 @@
145145
</hrc>
146146
<!-- ***** BEGIN LICENSE BLOCK *****
147147
- Copyright (C) 1999-2009 Cail Lomecb <irusskih at gmail dot com>.
148+
- Copyright (C) Konstantin Kushnir <[email protected]>
148149
- This program is free software; you can redistribute it and/or
149150
- modify it under the terms of the GNU General Public License
150151
- as published by the Free Software Foundation; either version 2
@@ -155,4 +156,4 @@
155156
- GNU General Public License for more details.
156157
- You should have received a copy of the GNU General Public License
157158
- along with this program; If not, see <http://www.gnu.org/licenses/>.
158-
- ***** END LICENSE BLOCK ***** -->
159+
- ***** END LICENSE BLOCK ***** -->

colorer/configs/base/hrc/scripts/dockerfile.hrc

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -159,13 +159,13 @@
159159

160160
<scheme name="string-array-body">
161161
<inherit scheme="escape_newline"/>
162-
<block start="/(\[?#1|\s*(?{Symbol},)|^)\s*((&quot;))(.*&quot;)?=/" end="/(&quot;|$)\M(?{Symbol},)?/" scheme="string-with-var"
162+
<block start="/(\[?#1|\s*(?{Symbol},)|^)\s*((&quot;))(.*&quot;)?=/" end="/(&quot;|$)\M,?/" scheme="string-with-var"
163163
region="String"
164164
region02="def:PairStart" region10="def:PairEnd"
165165
region03="Symbol" region11="Symbol"/>
166166
<!-- skip some free space -->
167167
<regexp match="/\s+\M\]/"/>
168-
<regexp match="/\s*,?\s*\M%escape;$/"/>
168+
<regexp match="/\s*(?{Symbol},)?\s*\M%escape;$/"/>
169169
<!-- everything else except closing bracket is an error -->
170170
<block start="/(\])?!/" end="/\M(\]|$)/" scheme="def:empty" region="Error"/>
171171
</scheme>
@@ -422,7 +422,6 @@
422422
</hrc>
423423

424424
<!-- ***** BEGIN LICENSE BLOCK *****
425-
- Copyright (C) 1999-2009 Cail Lomecb <irusskih at gmail dot com>.
426425
- Copyright (C) Konstantin Kushnir <[email protected]>
427426
- This program is free software; you can redistribute it and/or
428427
- modify it under the terms of the GNU General Public License

0 commit comments

Comments
 (0)