Added tests for tech component, syntax highlighter fixed.

This commit is contained in:
Matthias Koefferlein
2020-04-17 16:24:56 +02:00
parent b2216ec372
commit ca2b0cd96a
5 changed files with 104 additions and 8 deletions
+3 -3
View File
@@ -15,7 +15,7 @@
<RegExpr attribute="Normal" String=":" context="After LD"/>
<RegExpr attribute="Dec" String="\-?[1-9][0-9]*" context="#stay"/>
<RegExpr attribute="Dec" String="\-?[0-9]+" context="#stay"/>
<DetectChar attribute="Normal" char="*" context="#stay"/>
<DetectChar attribute="Normal" char="(" context="#stay"/>
<DetectChar attribute="Normal" char=")" context="#stay"/>
@@ -46,13 +46,13 @@
<context name="Quoted String" attribute="String" lineEndContext="Error">
<StringDetect attribute="String" String="\\" context="#stay"/>
<RegExpr attribute="String" String="\\\&quot;" context="#stay"/>
<DetectChar char="&quot;" attribute="String" context="After Key"/>
<DetectChar char="&quot;" attribute="String" context="Normal"/>
</context>
<context name="Apostrophed String" attribute="Raw String" lineEndContext="Error">
<StringDetect attribute="String" String="\\" context="#stay"/>
<RegExpr attribute="String" String="\\\'" context="#stay"/>
<DetectChar char="'" attribute="Raw String" context="After Key"/>
<DetectChar char="'" attribute="Raw String" context="Normal"/>
</context>
</contexts>