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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
|
'@alias IN_LIST IL\n' Operator
'\n' Text.Whitespace
'!' Operator
'CONFIG' Keyword
'(' Punctuation
'"case_sensitive"' Literal
',' Punctuation
' ' Text.Whitespace
'"N"' Literal
')' Punctuation
'\n' Text.Whitespace
'\n' Text.Whitespace
'cars' Name
' ' Text.Whitespace
'=' Operator
' ' Text.Whitespace
'LOAD' Keyword
'(' Punctuation
'"examples/cars.txt"' Literal
')' Punctuation
' ' Text.Whitespace
'# Load items from file\n' Comment.Single
'colors' Name
' ' Text.Whitespace
'=' Operator
' ' Text.Whitespace
'{' Punctuation
'"red"' Literal
',' Punctuation
' ' Text.Whitespace
'"green"' Literal
',' Punctuation
' ' Text.Whitespace
'"blue"' Literal
',' Punctuation
' ' Text.Whitespace
'"white"' Literal
',' Punctuation
' ' Text.Whitespace
'"black"' Literal
'}' Punctuation
' ' Text.Whitespace
'# Declare items inline\n' Comment.Single
'\n' Text.Whitespace
'{' Punctuation
'IL' Keyword
'(' Punctuation
'colors' Name
')' Punctuation
',' Punctuation
' ' Text.Whitespace
'WORD' Keyword
'(' Punctuation
'"car"' Literal
')' Punctuation
'}' Punctuation
' ' Text.Whitespace
'->' Operator
' ' Text.Whitespace
'MARK' Keyword
'(' Punctuation
'"CAR_COLOR"' Literal
')' Punctuation
' ' Text.Whitespace
'# If first token is in list `colors` and second one is word `car`, label it\n' Comment.Single
'\n' Text.Whitespace
'{' Punctuation
'IL' Keyword
'(' Punctuation
'cars' Name
')' Punctuation
',' Punctuation
' ' Text.Whitespace
'WORD' Keyword
'+' Operator
'}' Punctuation
' ' Text.Whitespace
'->' Operator
' ' Text.Whitespace
'MARK' Keyword
'(' Punctuation
'"CAR_MODEL"' Literal
')' Punctuation
' ' Text.Whitespace
'# If first token is in list `cars` and follows by 1..N words, label it\n' Comment.Single
'\n' Text.Whitespace
'{' Punctuation
'ENTITY' Keyword
'(' Punctuation
'"PERSON"' Literal
')' Punctuation
',' Punctuation
' ' Text.Whitespace
'LEMMA' Keyword
'(' Punctuation
'"like"' Literal
')' Punctuation
',' Punctuation
' ' Text.Whitespace
'WORD' Keyword
'}' Punctuation
' ' Text.Whitespace
'->' Operator
' ' Text.Whitespace
'MARK' Keyword
'(' Punctuation
'"LIKED_ACTION"' Literal
')' Punctuation
' ' Text.Whitespace
'# If first token is Person, followed by any word which has lemma `like`, label it\n' Comment.Single
|