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

Unified Diff: lib/src/prism/tests/languages/rust/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/rust/keyword_feature.test
diff --git a/lib/src/prism/tests/languages/rust/keyword_feature.test b/lib/src/prism/tests/languages/rust/keyword_feature.test
new file mode 100644
index 0000000000000000000000000000000000000000..06da8844d26b171ff483817501fa215275d4159b
--- /dev/null
+++ b/lib/src/prism/tests/languages/rust/keyword_feature.test
@@ -0,0 +1,39 @@
+abstract alignof as
+be box break const
+continue crate do
+else enum extern
+false final fn for
+if impl in let loop
+match mod move mut
+offsetof once override
+priv pub pure ref
+return sizeof static
+self struct super
+true trait type typeof
+unsafe unsized use
+virtual where while
+yield
+
+----------------------------------------------------
+
+[
+ ["keyword", "abstract"], ["keyword", "alignof"], ["keyword", "as"],
+ ["keyword", "be"], ["keyword", "box"], ["keyword", "break"], ["keyword", "const"],
+ ["keyword", "continue"], ["keyword", "crate"], ["keyword", "do"],
+ ["keyword", "else"], ["keyword", "enum"], ["keyword", "extern"],
+ ["keyword", "false"], ["keyword", "final"], ["keyword", "fn"], ["keyword", "for"],
+ ["keyword", "if"], ["keyword", "impl"], ["keyword", "in"], ["keyword", "let"], ["keyword", "loop"],
+ ["keyword", "match"], ["keyword", "mod"], ["keyword", "move"], ["keyword", "mut"],
+ ["keyword", "offsetof"], ["keyword", "once"], ["keyword", "override"],
+ ["keyword", "priv"], ["keyword", "pub"], ["keyword", "pure"], ["keyword", "ref"],
+ ["keyword", "return"], ["keyword", "sizeof"], ["keyword", "static"],
+ ["keyword", "self"], ["keyword", "struct"], ["keyword", "super"],
+ ["keyword", "true"], ["keyword", "trait"], ["keyword", "type"], ["keyword", "typeof"],
+ ["keyword", "unsafe"], ["keyword", "unsized"], ["keyword", "use"],
+ ["keyword", "virtual"], ["keyword", "where"], ["keyword", "while"],
+ ["keyword", "yield"]
+]
+
+----------------------------------------------------
+
+Checks for all keywords.
« no previous file with comments | « lib/src/prism/tests/languages/rust/function_feature.test ('k') | lib/src/prism/tests/languages/rust/macro-rules_feature.test » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698