···
1
-
diff --git a/colorer/configs/base/hrc/nix.hrc b/colorer/configs/base/hrc/nix.hrc
3
-
index 0000000..1bd9bb5
5
-
+++ b/colorer/configs/base/hrc/nix.hrc
7
-
+<?xml version="1.0" encoding="windows-1251"?>
8
-
+<!DOCTYPE hrc PUBLIC "-//Cail Lomecb//DTD Colorer HRC take5//EN"
9
-
+ "http://colorer.sf.net/2003/hrc.dtd">
10
-
+<hrc version="take5" xmlns="http://colorer.sf.net/2003/hrc"
11
-
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
12
-
+ xsi:schemaLocation="http://colorer.sf.net/2003/hrc http://colorer.sf.net/2003/hrc.xsd">
16
-
+ <annotation><documentation>
18
-
+ </documentation></annotation>
20
-
+ <import type="def"/>
22
-
+ <region name="Code" parent="def:Text"/>
23
-
+ <region name="StringEscape" parent="def:StringContent"/>
24
-
+ <region name='Import' parent='def:Directive'/>
25
-
+ <region name='ImportOutline' parent='def:Outlined'/>
26
-
+ <region name="Path" parent="def:Path"/>
27
-
+ <region name="URL" parent="def:String"/>
28
-
+ <region name="LiteralKeyword" parent="def:Keyword"/>
29
-
+ <region name='Interpolation' parent='def:StringEdge'/>
30
-
+ <region name="Ident" parent="def:Identifier"/> <!-- Label -->
32
-
+ <scheme name="TabsAsErrors" if="tabs-as-errors">
33
-
+ <regexp match="/\t+/" region='def:Error'/>
36
-
+ <scheme name="SpacesAsErrors" if="spaces-as-errors">
37
-
+ <regexp match="/\x20+$/" region='def:Error'/>
40
-
+ <scheme name="NotNestedComment">
41
-
+ <inherit scheme="TabsAsErrors"/>
42
-
+ <inherit scheme="SpacesAsErrors"/>
43
-
+ <inherit scheme="Comment"/>
46
-
+ <scheme name="String">
47
-
+ <inherit scheme="TabsAsErrors"/>
48
-
+ <inherit scheme="SpacesAsErrors"/>
49
-
+<!-- <regexp match="/\\[xX]0*[\da-fA-F]{1,2}/" region0="StringEscape"/> -->
50
-
+ <regexp match="/\\./" region0="StringEscape"/>
51
-
+ <block start="/(\$\{)/" end="/(\})/" scheme="NixExpression" region="Code" region00="Interpolation" region01="PairStart" region10="Interpolation" region11="PairEnd"/>
54
-
+ <scheme name="BlockString">
55
-
+ <inherit scheme="TabsAsErrors"/>
56
-
+ <inherit scheme="SpacesAsErrors"/>
58
-
+ <regexp match="/''\$/" region0="StringEscape"/>
59
-
+ <regexp match="/'''/" region0="StringEscape"/>
60
-
+ <block start="/(\$\{)/" end="/(\})/" scheme="NixExpression" region="Code" region00="Interpolation" region01="PairStart" region10="Interpolation" region11="PairEnd"/>
63
-
+ <scheme name="NixIdent">
64
-
+ <regexp match="/\w[\w\d-]*'*/" region0="Ident"/>
67
-
+ <scheme name="NixExpression">
68
-
+ <inherit scheme="TabsAsErrors"/>
69
-
+ <inherit scheme="SpacesAsErrors"/>
71
-
+ <inherit scheme="def:unixCommentDirective"/>
72
-
+ <block start="/#/" end="/\s*$/" scheme="Comment" region="LineComment" region10="def:Error"/>
73
-
+ <block start="/\/\*/" end="/\*\//" scheme="NotNestedComment" region="Comment" region00="PairStart" region10="PairEnd"/>
75
-
+ <block start="/(\$\{)/" end="/(\})/" scheme="NixExpression" region00="Interpolation" region01="PairStart" region10="Interpolation" region11="PairEnd"/>
76
-
+ <block start="/(\{)/" end="/(\})/" scheme="NixExpression" region00="Symbol" region01="PairStart" region10="Symbol" region11="PairEnd"/>
77
-
+ <block start="/(\()/" end="/(\))/" scheme="NixExpression" region00="Symbol" region01="PairStart" region10="Symbol" region11="PairEnd"/>
78
-
+ <block start="/(\[)/" end="/(\])/" scheme="NixExpression" region00="Symbol" region01="PairStart" region10="Symbol" region11="PairEnd"/>
80
-
+ <regexp match="/[\w\d.+=?~-]*(\/[\w\d.+?~-]+)+/" region0="Path"/>
81
-
+ <regexp match="/<[\w\d\/.+?~-]+>/" region0="Path"/>
82
-
+ <regexp match="/(ftp|mirror|http|https|git):\/\/[\w\d\/:?=&.~+-]+/" region0="URL"/>
83
-
+ <block start="/(")/" end="/(")/" scheme="String" region="String" region00="def:StringEdge" region01="def:PairStart" region10="def:StringEdge" region11="def:PairEnd"/>
84
-
+ <block start="/('')/" end="/('')/" scheme="BlockString" region="String" region00="def:StringEdge" region01="def:PairStart" region10="def:StringEdge" region11="def:PairEnd"/>
86
-
+ <keywords region="Keyword">
87
-
+ <word name="assert"/>
88
-
+ <word name="else"/>
91
-
+ <word name="inherit"/>
92
-
+ <word name="import"/>
93
-
+ <word name="let"/>
95
-
+ <word name="rec"/>
96
-
+ <word name="then"/>
97
-
+ <word name="throw"/>
98
-
+ <word name="with"/>
100
-
+ <keywords region="LiteralKeyword">
101
-
+ <word name="true"/>
102
-
+ <word name="false"/>
103
-
+ <word name="null"/>
105
-
+ <keywords region="Symbol">
119
-
+ <symb name="<"/>
120
-
+ <symb name=">"/>
121
-
+ <symb name="&"/>
124
-
+ <symb name="..."/>
127
-
+ <inherit scheme="def:Number"/>
128
-
+ <inherit scheme="NixIdent"/>
130
-
+ <regexp match="/[^\)\}\]\s]/" region='def:Error'/>
134
-
+ <scheme name="nix">
135
-
+ <inherit scheme="NixExpression"/>
140
-
diff --git a/colorer/configs/base/hrc/proto.hrc b/colorer/configs/base/hrc/proto.hrc
141
-
index 11e493b..2a67263 100644
142
-
--- a/colorer/configs/base/hrc/proto.hrc
143
-
+++ b/colorer/configs/base/hrc/proto.hrc
144
-
@@ -156,6 +156,14 @@
145
-
<location link="jar:common.jar!base/lua.hrc"/>
146
-
<filename>/\.(w?lua)$/i</filename>
148
-
+ <prototype name="nix" group="main" description="Nix">
149
-
+ <location link="nix.hrc"/>
150
-
+ <filename>/\.(nix)$/i</filename>
152
-
+ <param name="tabs-as-errors" value="true" description="Shows tabulation symbol as error"/>
153
-
+ <param name="spaces-as-errors" value="true" description="Shows trailing spaces as error"/>
156
-
<prototype name="ruby" group="main" description="Ruby">
157
-
<location link="jar:common.jar!base/ruby.hrc"/>
158
-
<filename>/\.(rb|rbw|ruby|rake)$/i</filename>