01_test_leaf-elements.ini 1.03 KB
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12

[match:symbol]
M1: "identifier"
M2: "identifier_1"
M3: "IdEnTiFiEr"

[fail:symbol]
F1: "two words"
F2: "5_starting_with_a_digit"


[match:literal]
13
14
15
16
17
18
19
20
21
M1: '"simple literal"'
M2: '"literal with following whitespace" '
M3: "'literal with single quotation marks'"
M4: "'literal with escaped \' quotation marks'"
M5: '"another literal with escaped \" quotation marks"'
M6: """'literal containing different quotation marks: " '"""
M7: '''"another literal containing different quotation marks: ' "'''
M8: '''"literal spanning
        several lines"'''
22
23

[fail:literal]
24
25
F1: ' "preceeding whitespace is not parsed by literal"'
F2: ''' "don't forget closing quotation marks'''
26
27
28


[match:plaintext]
29
30
31
32
M1: '`simple plaintext`'
M2: '`plaintext with escaped quotation: \` `'
M3: '''`plaintext spanning
       several lines`'''
33
34

[fail:plaintext]
35
36
F1: ' `preceeding whitespace not parsed by plaintext parser`'
F2: '`following whitespace is neither parsed by plaintext parser` '
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51

[match:regexp]

[fail:regexp]


[match:whitespace]

[fail:whitespace]


[match:EOF]

[fail:EOF]