<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE language SYSTEM "language.dtd">
<language name="stringdet" version="0.1" section="Test" extensions="*.stringdet;">
<highlighting>
<contexts>
<context name="Base" attribute="Normal Text" lineEndContext="#stay">
<StringDetect attribute="Test Area" context="Test" String="<Test>" />
<StringDetect attribute="Test Area" context="TestD" String="<TestD>" />
<StringDetect attribute="Test Area" context="TestDI" String="<TestDI>" />
<StringDetect attribute="Test Area" context="TestI" String="<TestI>" />
<IncludeRules context="##XML" />
</context>
<context name="Comment" attribute="Comment" lineEndContext="#pop">
</context>
<!-- Testing default without options -->
<context name="Test" attribute="Test Area" lineEndContext="#stay">
<DetectChar attribute="Comment" context="Comment" char="#" />
<!-- tests go here -->
<StringDetect attribute="Match" context="#stay" String="antimoon" />
<StringDetect attribute="Test Area" context="#pop" String="<Test>" />
</context>
<!-- Testing dynamic in two steps-->
<context name="TestD" attribute="Test Area" lineEndContext="#stay">
<DetectChar attribute="Comment" context="Comment" char="#" />
<RegExpr attribute="Match" context="TestDT" String="\s(a)ntimoo(n)" />
<StringDetect attribute="Test Area" context="#pop" String="<TestD>" />
</context>
<context name="TestDT" attribute="Test Area" dynamic="true" lineEndContext="#stay">
<DetectChar attribute="Comment" context="Comment" char="#" />
<!-- tests go here -->
<StringDetect attribute="Match" dynamic="true" context="#pop" String="%1ntimoo%2" />
<StringDetect attribute="Test Area" context="#pop#pop" String="<TestD>" />
</context>
<!-- Testing dynamic insensitive in two steps-->
<context name="TestDI" attribute="Test Area" lineEndContext="#stay">
<DetectChar attribute="Comment" context="Comment" char="#" />
<RegExpr attribute="Match" context="TestDIT" String="\s(a)ntimoo(n)" />
<StringDetect attribute="Test Area" context="#pop" String="<TestDI>" />
</context>
<context name="TestDIT" attribute="Test Area" dynamic="true" lineEndContext="#stay">
<DetectChar attribute="Comment" context="Comment" char="#" />
<!-- tests go here -->
<StringDetect attribute="Match" insensitive="true" dynamic="true" context="#pop" String="%1ntimoo%2" />
<StringDetect attribute="Test Area" context="#pop#pop" String="<TestDI>" />
</context>
<!-- Testing insensitive -->
<context name="TestI" attribute="Test Area" lineEndContext="#stay">
<DetectChar attribute="Comment" context="Comment" char="#" />
<!-- tests go here -->
<StringDetect attribute="Match" insensitive="true" context="#stay" String="antimoon" />
<StringDetect attribute="Test Area" context="#pop" String="<TestI>" />
</context>
</contexts>
<itemDatas>
<itemData name="Normal Text" defStyleNum="dsNormal" />
<itemData name="Test Area" defStyleNum="dsOthers" />
<itemData name="Match" defStyleNum="dsDataType" />
<itemData name="Match2" defStyleNum="dsString" />
<itemData name="Match3" defStyleNum="dsChar" />
<itemData name="Match4" defStyleNum="dsDataType" />
<itemData name="Match5" defStyleNum="dsString" />
<itemData name="Comment" defStyleNum="dsComment" />
</itemDatas>
</highlighting>
<general>
<keywords casesensitive="1" weakDeliminator="."/>
</general>
</language>