| Index: lib/src/prism/tests/languages/crystal/keyword_feature.test
|
| diff --git a/lib/src/prism/tests/languages/crystal/keyword_feature.test b/lib/src/prism/tests/languages/crystal/keyword_feature.test
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..ca575efb2a6c8e028b3b736e04f63e0600a616cf
|
| --- /dev/null
|
| +++ b/lib/src/prism/tests/languages/crystal/keyword_feature.test
|
| @@ -0,0 +1,33 @@
|
| +abstract alias as asm begin break case
|
| +class;
|
| +def do else elsif
|
| +end ensure enum extend for fun
|
| +if ifdef include instance_sizeof
|
| +.is_a?
|
| +lib macro module next of out pointerof
|
| +private protected rescue
|
| +.responds_to?
|
| +return require self sizeof struct super
|
| +then type typeof union unless until when
|
| +while with yield __DIR__ __FILE__ __LINE__
|
| +
|
| +----------------------------------------------------
|
| +
|
| +[
|
| + ["keyword", "abstract"], ["keyword", "alias"], ["keyword", "as"], ["keyword", "asm"], ["keyword", "begin"], ["keyword", "break"], ["keyword", "case"],
|
| + ["keyword", "class"], ["punctuation", ";"],
|
| + ["keyword", "def"], ["keyword", "do"], ["keyword", "else"], ["keyword", "elsif"],
|
| + ["keyword", "end"], ["keyword", "ensure"], ["keyword", "enum"], ["keyword", "extend"], ["keyword", "for"], ["keyword", "fun"],
|
| + ["keyword", "if"], ["keyword", "ifdef"], ["keyword", "include"], ["keyword", "instance_sizeof"],
|
| + ["punctuation", "."], ["keyword", "is_a?"],
|
| + ["keyword", "lib"], ["keyword", "macro"], ["keyword", "module"], ["keyword", "next"], ["keyword", "of"], ["keyword", "out"], ["keyword", "pointerof"],
|
| + ["keyword", "private"], ["keyword", "protected"], ["keyword", "rescue"],
|
| + ["punctuation", "."], ["keyword", "responds_to?"],
|
| + ["keyword", "return"], ["keyword", "require"], ["keyword", "self"], ["keyword", "sizeof"], ["keyword", "struct"], ["keyword", "super"],
|
| + ["keyword", "then"], ["keyword", "type"], ["keyword", "typeof"], ["keyword", "union"], ["keyword", "unless"], ["keyword", "until"], ["keyword", "when"],
|
| + ["keyword", "while"], ["keyword", "with"], ["keyword", "yield"], ["keyword", "__DIR__"], ["keyword", "__FILE__"], ["keyword", "__LINE__"]
|
| +]
|
| +
|
| +----------------------------------------------------
|
| +
|
| +Checks for all keywords.
|
|
|