Index: lib/src/prism/tests/languages/java/keyword_feature.test |
diff --git a/lib/src/prism/tests/languages/java/keyword_feature.test b/lib/src/prism/tests/languages/java/keyword_feature.test |
new file mode 100644 |
index 0000000000000000000000000000000000000000..4a6613c86850651b30b9be36cdc0d443124479e2 |
--- /dev/null |
+++ b/lib/src/prism/tests/languages/java/keyword_feature.test |
@@ -0,0 +1,51 @@ |
+abstract continue for |
+new ; |
+switch assert default |
+goto package synchronized |
+boolean do if private |
+this break double |
+implements ; |
+protected throw byte else |
+import public throws case |
+enum |
+instanceof ; |
+return transient catch |
+extends ; |
+int short try char |
+final |
+interface ; |
+static void |
+class ; |
+finally long |
+strictfp volatile const |
+float native super while |
+ |
+---------------------------------------------------- |
+ |
+[ |
+ ["keyword", "abstract"], ["keyword", "continue"], ["keyword", "for"], |
+ ["keyword", "new"], ["punctuation", ";"], |
+ ["keyword", "switch"], ["keyword", "assert"], ["keyword", "default"], |
+ ["keyword", "goto"], ["keyword", "package"], ["keyword", "synchronized"], |
+ ["keyword", "boolean"], ["keyword", "do"], ["keyword", "if"], ["keyword", "private"], |
+ ["keyword", "this"], ["keyword", "break"], ["keyword", "double"], |
+ ["keyword", "implements"], ["punctuation", ";"], |
+ ["keyword", "protected"], ["keyword", "throw"], ["keyword", "byte"], ["keyword", "else"], |
+ ["keyword", "import"], ["keyword", "public"], ["keyword", "throws"], ["keyword", "case"], |
+ ["keyword", "enum"], |
+ ["keyword", "instanceof"], ["punctuation", ";"], |
+ ["keyword", "return"], ["keyword", "transient"], ["keyword", "catch"], |
+ ["keyword", "extends"], ["punctuation", ";"], |
+ ["keyword", "int"], ["keyword", "short"], ["keyword", "try"], ["keyword", "char"], |
+ ["keyword", "final"], |
+ ["keyword", "interface"], ["punctuation", ";"], |
+ ["keyword", "static"], ["keyword", "void"], |
+ ["keyword", "class"], ["punctuation", ";"], |
+ ["keyword", "finally"], ["keyword", "long"], |
+ ["keyword", "strictfp"], ["keyword", "volatile"], ["keyword", "const"], |
+ ["keyword", "float"], ["keyword", "native"], ["keyword", "super"], ["keyword", "while"] |
+] |
+ |
+---------------------------------------------------- |
+ |
+Checks for all keywords. |