-
Notifications
You must be signed in to change notification settings - Fork 1.3k
/
keyword_feature.test
167 lines (163 loc) · 3.09 KB
/
keyword_feature.test
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
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
__halt_compiler
abstract
and
array()
as
break
callable
case
catch
class;
clone
const
continue
declare
default
die
do
echo
else
elseif
empty
enddeclare
endfor
endforeach
endif
endswitch
endwhile
eval
exit
extends;
final
finally
fn
for
foreach
function
global
goto
if
implements;
include
include_once
instanceof;
insteadof
interface;
isset
list
namespace;
match
never
new;
or
parent
parent::;
print
private
protected
public
readonly
require
require_once
return
self
new self
self::;
static
static::;
switch
throw
trait;
try
unset
use;
var
void
while
xor
yield
yield from
----------------------------------------------------
[
["keyword", "__halt_compiler"],
["keyword", "abstract"],
["keyword", "and"],
["keyword", "array"], ["punctuation", "("], ["punctuation", ")"],
["keyword", "as"],
["keyword", "break"],
["keyword", "callable"],
["keyword", "case"],
["keyword", "catch"],
["keyword", "class"], ["punctuation", ";"],
["keyword", "clone"],
["keyword", "const"],
["keyword", "continue"],
["keyword", "declare"],
["keyword", "default"],
["keyword", "die"],
["keyword", "do"],
["keyword", "echo"],
["keyword", "else"],
["keyword", "elseif"],
["keyword", "empty"],
["keyword", "enddeclare"],
["keyword", "endfor"],
["keyword", "endforeach"],
["keyword", "endif"],
["keyword", "endswitch"],
["keyword", "endwhile"],
["keyword", "eval"],
["keyword", "exit"],
["keyword", "extends"], ["punctuation", ";"],
["keyword", "final"],
["keyword", "finally"],
["keyword", "fn"],
["keyword", "for"],
["keyword", "foreach"],
["keyword", "function"],
["keyword", "global"],
["keyword", "goto"],
["keyword", "if"],
["keyword", "implements"], ["punctuation", ";"],
["keyword", "include"],
["keyword", "include_once"],
["keyword", "instanceof"], ["punctuation", ";"],
["keyword", "insteadof"],
["keyword", "interface"], ["punctuation", ";"],
["keyword", "isset"],
["keyword", "list"],
["keyword", "namespace"], ["punctuation", ";"],
["keyword", "match"],
["keyword", "never"],
["keyword", "new"], ["punctuation", ";"],
["keyword", "or"],
["keyword", "parent"],
["keyword", "parent"], ["operator", "::"], ["punctuation", ";"],
["keyword", "print"],
["keyword", "private"],
["keyword", "protected"],
["keyword", "public"],
["keyword", "readonly"],
["keyword", "require"],
["keyword", "require_once"],
["keyword", "return"],
["keyword", "self"],
["keyword", "new"], ["keyword", "self"],
["keyword", "self"], ["operator", "::"], ["punctuation", ";"],
["keyword", "static"],
["keyword", "static"], ["operator", "::"], ["punctuation", ";"],
["keyword", "switch"],
["keyword", "throw"],
["keyword", "trait"], ["punctuation", ";"],
["keyword", "try"],
["keyword", "unset"],
["keyword", "use"], ["punctuation", ";"],
["keyword", "var"],
["keyword", "void"],
["keyword", "while"],
["keyword", "xor"],
["keyword", "yield"],
["keyword", "yield"], ["keyword", "from"]
]
----------------------------------------------------
Checks for keywords.