()
| 789 | var TextHighlightRules = require("./text_highlight_rules").TextHighlightRules; |
| 790 | |
| 791 | var JavaHighlightRules = function() { |
| 792 | var keywords = ( |
| 793 | "abstract|continue|for|new|switch|" + |
| 794 | "assert|default|goto|package|synchronized|" + |
| 795 | "boolean|do|if|private|this|" + |
| 796 | "break|double|implements|protected|throw|" + |
| 797 | "byte|else|import|public|throws|" + |
| 798 | "case|enum|instanceof|return|transient|" + |
| 799 | "catch|extends|int|short|try|" + |
| 800 | "char|final|interface|static|void|" + |
| 801 | "class|finally|long|strictfp|volatile|" + |
| 802 | "const|float|native|super|while" |
| 803 | ); |
| 804 | |
| 805 | var buildinConstants = ("null|Infinity|NaN|undefined"); |
| 806 | |
| 807 | |
| 808 | var langClasses = ( |
| 809 | "AbstractMethodError|AssertionError|ClassCircularityError|"+ |
| 810 | "ClassFormatError|Deprecated|EnumConstantNotPresentException|"+ |
| 811 | "ExceptionInInitializerError|IllegalAccessError|"+ |
| 812 | "IllegalThreadStateException|InstantiationError|InternalError|"+ |
| 813 | "NegativeArraySizeException|NoSuchFieldError|Override|Process|"+ |
| 814 | "ProcessBuilder|SecurityManager|StringIndexOutOfBoundsException|"+ |
| 815 | "SuppressWarnings|TypeNotPresentException|UnknownError|"+ |
| 816 | "UnsatisfiedLinkError|UnsupportedClassVersionError|VerifyError|"+ |
| 817 | "InstantiationException|IndexOutOfBoundsException|"+ |
| 818 | "ArrayIndexOutOfBoundsException|CloneNotSupportedException|"+ |
| 819 | "NoSuchFieldException|IllegalArgumentException|NumberFormatException|"+ |
| 820 | "SecurityException|Void|InheritableThreadLocal|IllegalStateException|"+ |
| 821 | "InterruptedException|NoSuchMethodException|IllegalAccessException|"+ |
| 822 | "UnsupportedOperationException|Enum|StrictMath|Package|Compiler|"+ |
| 823 | "Readable|Runtime|StringBuilder|Math|IncompatibleClassChangeError|"+ |
| 824 | "NoSuchMethodError|ThreadLocal|RuntimePermission|ArithmeticException|"+ |
| 825 | "NullPointerException|Long|Integer|Short|Byte|Double|Number|Float|"+ |
| 826 | "Character|Boolean|StackTraceElement|Appendable|StringBuffer|"+ |
| 827 | "Iterable|ThreadGroup|Runnable|Thread|IllegalMonitorStateException|"+ |
| 828 | "StackOverflowError|OutOfMemoryError|VirtualMachineError|"+ |
| 829 | "ArrayStoreException|ClassCastException|LinkageError|"+ |
| 830 | "NoClassDefFoundError|ClassNotFoundException|RuntimeException|"+ |
| 831 | "Exception|ThreadDeath|Error|Throwable|System|ClassLoader|"+ |
| 832 | "Cloneable|Class|CharSequence|Comparable|String|Object" |
| 833 | ); |
| 834 | |
| 835 | var keywordMapper = this.createKeywordMapper({ |
| 836 | "variable.language": "this", |
| 837 | "keyword": keywords, |
| 838 | "constant.language": buildinConstants, |
| 839 | "support.function": langClasses |
| 840 | }, "identifier"); |
| 841 | |
| 842 | this.$rules = { |
| 843 | "start" : [ |
| 844 | { |
| 845 | token : "comment", |
| 846 | regex : "\\/\\/.*$" |
| 847 | }, |
| 848 | DocCommentHighlightRules.getStartRule("doc-start"), |
nothing calls this directly
no outgoing calls
no test coverage detected