Warning, /frameworks/syntax-highlighting/autotests/input/syntax/d399388_dynamic_RegExpr.xml is written in an unsupported language. File is not indexed.

0001 <?xml version="1.0" encoding="UTF-8"?>
0002 
0003 <!DOCTYPE language SYSTEM "language.dtd">
0004 
0005 <language name="IncludeRules (Dynamic)" section="Other" extensions="*.dyInclRl;" mimetype="" version="1" kateversion="5.0" priority="100">
0006         <highlighting>
0007                 <contexts>
0008                         <context name="normal" attribute="Normal" lineEndContext="#stay">
0009                                 <DetectChar char="X" attribute="Operator" context="X"/>
0010                         </context>
0011                         
0012                         <context name="X" attribute="Normal" lineEndContext="#stay">
0013                                 <DetectChar char="{" attribute="Delimiter" context="X brace"/>
0014                                 <RegExpr String="(\S)" attribute="Delimiter" context="X char"/>
0015                         </context>
0016                         
0017                         <context name="X brace" attribute="String" lineEndContext="#stay">
0018                                 <!-- escape the context with a matching delimiter -->
0019                                 <DetectChar char="}" attribute="Delimiter" context="#pop#pop"/>
0020                                 <!-- inherit highlighting rules from "generic" delimiter context -->
0021                                 <IncludeRules context="X char"/>
0022                         </context>
0023                         
0024                         <context name="X char" attribute="String" lineEndContext="#stay">
0025                                 <!-- escape the context with a matching delimiter -->
0026                                 <RegExpr String="%1" dynamic="true" attribute="Delimiter" context="#pop#pop"/>
0027                                 <!-- highlight some random words -->
0028                                 <WordDetect String="other" insensitive="true" attribute="Other"/>
0029                         </context>
0030                 </contexts>
0031                 
0032                 <itemDatas>
0033                         <itemData name="Normal" defStyleNum="dsNormal"/>
0034                         <itemData name="Operator" defStyleNum="dsKeyword"/>
0035                         <itemData name="Delimiter" defStyleNum="dsExtension"/>
0036                         <itemData name="String" defStyleNum="dsString"/>
0037                         <itemData name="Other" defStyleNum="dsImport"/>
0038                 </itemDatas>
0039         </highlighting>
0040 </language>