-
Notifications
You must be signed in to change notification settings - Fork 5
/
jbehave.xml
33 lines (32 loc) · 1.92 KB
/
jbehave.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
<?xml version="1.0"?>
<!DOCTYPE MODE SYSTEM "xmode.dtd">
<MODE>
<!--
To use, add something like this to your catalog file:
<MODE NAME="jbehave" FILE="jbehave.xml" FILE_NAME_GLOB="*.story" />
-->
<PROPS>
<PROPERTY NAME="lineComment" VALUE="!--"/>
</PROPS>
<RULES IGNORE_CASE="FALSE">
<SEQ_REGEXP HASH_CHAR="N" AT_WORD_START="TRUE" AT_LINE_START="TRUE" TYPE="KEYWORD1">Narrative:</SEQ_REGEXP>
<SEQ_REGEXP HASH_CHAR="G" AT_WORD_START="TRUE" AT_LINE_START="TRUE" TYPE="KEYWORD1">GivenStories:</SEQ_REGEXP>
<SEQ_REGEXP HASH_CHAR="S" AT_WORD_START="TRUE" AT_LINE_START="TRUE" TYPE="KEYWORD1">Scenario:</SEQ_REGEXP>
<SEQ_REGEXP HASH_CHAR="M" AT_WORD_START="TRUE" AT_LINE_START="TRUE" TYPE="KEYWORD1">Meta:</SEQ_REGEXP>
<SEQ_REGEXP HASH_CHAR="E" AT_WORD_START="TRUE" AT_LINE_START="TRUE" TYPE="KEYWORD1">Examples:</SEQ_REGEXP>
<!-- meta properties -->
<SEQ_REGEXP HASH_CHAR="@" AT_WORD_START="TRUE" AT_LINE_START="TRUE" TYPE="KEYWORD2">@ *[\S]+ </SEQ_REGEXP>
<!-- narrative keywords -->
<SEQ_REGEXP HASH_CHAR="I" AT_WORD_START="TRUE" AT_LINE_START="TRUE" TYPE="KEYWORD3">In order to\b</SEQ_REGEXP>
<SEQ_REGEXP HASH_CHAR="A" AT_WORD_START="TRUE" AT_LINE_START="TRUE" TYPE="KEYWORD3">As a\b</SEQ_REGEXP>
<SEQ_REGEXP HASH_CHAR="I" AT_WORD_START="TRUE" AT_LINE_START="TRUE" TYPE="KEYWORD3">I want to\b</SEQ_REGEXP>
<!-- BDD keywords -->
<SEQ_REGEXP HASH_CHAR="G" AT_WORD_START="TRUE" AT_LINE_START="TRUE" TYPE="KEYWORD3">Given\b</SEQ_REGEXP>
<SEQ_REGEXP HASH_CHAR="W" AT_WORD_START="TRUE" AT_LINE_START="TRUE" TYPE="KEYWORD3">When\b</SEQ_REGEXP>
<SEQ_REGEXP HASH_CHAR="T" AT_WORD_START="TRUE" AT_LINE_START="TRUE" TYPE="KEYWORD3">Then\b</SEQ_REGEXP>
<SEQ_REGEXP HASH_CHAR="A" AT_WORD_START="TRUE" AT_LINE_START="TRUE" TYPE="KEYWORD3">And\b</SEQ_REGEXP>
<EOL_SPAN TYPE="COMMENT2">!--</EOL_SPAN>
<EOL_SPAN TYPE="COMMENT2">|--</EOL_SPAN>
<SEQ TYPE="OPERATOR">|</SEQ>
</RULES>
</MODE>