Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(273)

Unified Diff: lib/src/prism/tests/languages/crystal/keyword_feature.test

Issue 1418513006: update elements and fix some bugs (Closed) Base URL: git@github.com:dart-lang/polymer_elements.git@master
Patch Set: code review updates Created 5 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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.

Powered by Google App Engine
This is Rietveld 408576698