keyword_feature.test
1.39 KB
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
alias and BEGIN begin
break case
class;
def
define_method defined
do each else elsif
END end ensure false
for if in module
new;
next nil not
or raise redo require
rescue retry return
self super then throw
true undef unless until
when while yield
----------------------------------------------------
[
["keyword", "alias"], ["keyword", "and"], ["keyword", "BEGIN"], ["keyword", "begin"],
["keyword", "break"], ["keyword", "case"],
["keyword", "class"], ["punctuation", ";"],
["keyword", "def"],
["keyword", "define_method"], ["keyword", "defined"],
["keyword", "do"], ["keyword", "each"], ["keyword", "else"], ["keyword", "elsif"],
["keyword", "END"], ["keyword", "end"], ["keyword", "ensure"], ["keyword", "false"],
["keyword", "for"], ["keyword", "if"], ["keyword", "in"], ["keyword", "module"],
["keyword", "new"], ["punctuation", ";"],
["keyword", "next"], ["keyword", "nil"], ["keyword", "not"],
["keyword", "or"], ["keyword", "raise"], ["keyword", "redo"], ["keyword", "require"],
["keyword", "rescue"], ["keyword", "retry"], ["keyword", "return"],
["keyword", "self"], ["keyword", "super"], ["keyword", "then"], ["keyword", "throw"],
["keyword", "true"], ["keyword", "undef"], ["keyword", "unless"], ["keyword", "until"],
["keyword", "when"], ["keyword", "while"], ["keyword", "yield"]
]
----------------------------------------------------
Checks for all keywords.