/
hl-examples.xml
23 lines (17 loc) · 1.2 KB
/
hl-examples.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
<?xml version="1.0"?>
<actions>
<!-- the following highlight rules are just examples -->
<highlight regexp="((http://(\w+((:\w+)?)@)?)|((\w+((:\w+)?)@)?www\.))(\w+\.)+\w+(:\d+)?(/[\w ./?%&=]*)?" name="http-url"/>
<highlight regexp="http://(\w+((:\w+)?)@)?example.com(:\d+)?(/[\w ./?%&=]*)?" name="special-url" specialCaseOf="http-url"/>
<!-- testing the special case relationships: general case + 2 specializations -->
<highlight regexp="foobar\w*" name="special-1a" specialCaseOf="general-1"/>
<highlight regexp="foo\w*" name="general-1"/>
<highlight regexp="foobaz\w*" name="special-1b" specialCaseOf="general-1"/>
<!-- testing the special case relationships: general case + specialization + its specialization -->
<highlight regexp="cat\w*" name="general-2"/>
<highlight regexp="catdogzebra\w*" name="superspecial-2" specialCaseOf="special-2"/>
<highlight regexp="catdog\w*" name="special-2" specialCaseOf="general-2"/>
<!-- testing the special case relationships: even the circular case shouldn't confuse the computation -->
<highlight regexp="circ" name="circular-1" specialCaseOf="circular-2"/>
<highlight regexp="circ2" name="circular-2" specialCaseOf="circular-1"/>
</actions>