").append(yytext).append("");
+
+ } catch (IOException e) {
+ result.append("ERROR IN HIGHLIGHTER: ").append(e.getClass().getSimpleName()).append(" : ").append(e.getMessage());
+ }
+ }
+
+ result.append("aState
+ */
+ private static final int [] ZZ_ATTRIBUTE = zzUnpackAttribute();
+
+ private static final String ZZ_ATTRIBUTE_PACKED_0 =
+ "\4\0\1\11\15\1\2\11\26\1\1\11\1\1\7\11"+
+ "\2\1\1\11\1\0\1\11\1\1\1\0\2\11\1\0"+
+ "\1\1\1\0\1\1\1\0\1\1\1\0\1\11\2\1"+
+ "\2\11\4\1\5\11\1\1\1\0\27\1\1\11\1\0"+
+ "\1\1\11\11\1\1\1\0\2\11\1\0\1\11\1\1"+
+ "\1\11\2\0\2\1\4\0\3\1\1\11\23\1\4\11"+
+ "\1\0\3\11\1\0\1\1\1\11\1\1\2\0\20\1"+
+ "\2\11\2\0\11\1\1\11\11\1";
+
+ private static int [] zzUnpackAttribute() {
+ int [] result = new int[210];
+ int offset = 0;
+ offset = zzUnpackAttribute(ZZ_ATTRIBUTE_PACKED_0, offset, result);
+ return result;
+ }
+
+ private static int zzUnpackAttribute(String packed, int offset, int [] result) {
+ int i = 0; /* index in packed string */
+ int j = offset; /* index in unpacked array */
+ int l = packed.length();
+ while (i < l) {
+ int count = packed.charAt(i++);
+ int value = packed.charAt(i++);
+ do result[j++] = value; while (--count > 0);
+ }
+ return j;
+ }
+
+ /** the current state of the DFA */
+ private int zzState;
+
+ /** the current lexical state */
+ private int zzLexicalState = YYINITIAL;
+
+ /** this buffer contains the current text to be matched and is
+ the source of the yytext() string */
+ private CharSequence zzBuffer = "";
+
+ /** this buffer may contains the current text array to be matched when it is cheap to acquire it */
+ private char[] zzBufferArray;
+
+ /** the textposition at the last accepting state */
+ private int zzMarkedPos;
+
+ /** the textposition at the last state to be included in yytext */
+ private int zzPushbackPos;
+
+ /** the current text position in the buffer */
+ private int zzCurrentPos;
+
+ /** startRead marks the beginning of the yytext() string in the buffer */
+ private int zzStartRead;
+
+ /** endRead marks the last character in the buffer, that has been read
+ from input */
+ private int zzEndRead;
+
+ /**
+ * zzAtBOL == true <=> the scanner is currently at the beginning of a line
+ */
+ private boolean zzAtBOL = true;
+
+ /** zzAtEOF == true <=> the scanner is at the EOF */
+ private boolean zzAtEOF;
+
+ /** denotes if the user-EOF-code has already been executed */
+ private boolean zzEOFDone;
+
+ /* user code: */
+ private static final class State {
+ final int lBraceCount;
+ final int state;
+
+ public State(int state, int lBraceCount) {
+ this.state = state;
+ this.lBraceCount = lBraceCount;
+ }
+ }
+
+ private final Stackfalse, iff there was new input.
+ *
+ * @exception java.io.IOException if any I/O-Error occurs
+ */
+ private boolean zzRefill() throws java.io.IOException {
+ return true;
+ }
+
+
+ /**
+ * Returns the current lexical state.
+ */
+ public final int yystate() {
+ return zzLexicalState;
+ }
+
+
+ /**
+ * Enters a new lexical state
+ *
+ * @param newState the new lexical state
+ */
+ public final void yybegin(int newState) {
+ zzLexicalState = newState;
+ }
+
+
+ /**
+ * Returns the text matched by the current regular expression.
+ */
+ public final CharSequence yytext() {
+ return zzBuffer.subSequence(zzStartRead, zzMarkedPos);
+ }
+
+
+ /**
+ * Returns the character at position pos from the
+ * matched text.
+ *
+ * It is equivalent to yytext().charAt(pos), but faster
+ *
+ * @param pos the position of the character to fetch.
+ * A value from 0 to yylength()-1.
+ *
+ * @return the character at position pos
+ */
+ public final char yycharat(int pos) {
+ return zzBufferArray != null ? zzBufferArray[zzStartRead+pos]:zzBuffer.charAt(zzStartRead+pos);
+ }
+
+
+ /**
+ * Returns the length of the matched text region.
+ */
+ public final int yylength() {
+ return zzMarkedPos-zzStartRead;
+ }
+
+
+ /**
+ * Reports an error that occured while scanning.
+ *
+ * In a wellformed scanner (no or only correct usage of
+ * yypushback(int) and a match-all fallback rule) this method
+ * will only be called with things that "Can't Possibly Happen".
+ * If this method is called, something is seriously wrong
+ * (e.g. a JFlex bug producing a faulty scanner etc.).
+ *
+ * Usual syntax/scanner level error handling should be done
+ * in error fallback rules.
+ *
+ * @param errorCode the code of the errormessage to display
+ */
+ private void zzScanError(int errorCode) {
+ String message;
+ try {
+ message = ZZ_ERROR_MSG[errorCode];
+ }
+ catch (ArrayIndexOutOfBoundsException e) {
+ message = ZZ_ERROR_MSG[ZZ_UNKNOWN_ERROR];
+ }
+
+ throw new Error(message);
+ }
+
+
+ /**
+ * Pushes the specified amount of characters back into the input stream.
+ *
+ * They will be read again by then next call of the scanning method
+ *
+ * @param number the number of characters to be read again.
+ * This number must not be greater than yylength()!
+ */
+ public void yypushback(int number) {
+ if ( number > yylength() )
+ zzScanError(ZZ_PUSHBACK_2BIG);
+
+ zzMarkedPos -= number;
+ }
+
+
+ /**
+ * Contains user EOF-code, which will be executed exactly once,
+ * when the end of file is reached
+ */
+ private void zzDoEOF() {
+ if (!zzEOFDone) {
+ zzEOFDone = true;
+
+ }
+ }
+
+
+ /**
+ * Resumes scanning until the next regular expression is matched,
+ * the end of input is encountered or an I/O-Error occurs.
+ *
+ * @return the next token
+ * @exception java.io.IOException if any I/O-Error occurs
+ */
+ public IElementType advance() throws java.io.IOException {
+ int zzInput;
+ int zzAction;
+
+ // cached fields:
+ int zzCurrentPosL;
+ int zzMarkedPosL;
+ int zzEndReadL = zzEndRead;
+ CharSequence zzBufferL = zzBuffer;
+ char[] zzBufferArrayL = zzBufferArray;
+ char [] zzCMapL = ZZ_CMAP;
+
+ int [] zzTransL = ZZ_TRANS;
+ int [] zzRowMapL = ZZ_ROWMAP;
+ int [] zzAttrL = ZZ_ATTRIBUTE;
+
+ while (true) {
+ zzMarkedPosL = zzMarkedPos;
+
+ zzAction = -1;
+
+ zzCurrentPosL = zzCurrentPos = zzStartRead = zzMarkedPosL;
+
+ zzState = ZZ_LEXSTATE[zzLexicalState];
+
+
+ zzForAction: {
+ while (true) {
+
+ if (zzCurrentPosL < zzEndReadL)
+ zzInput = zzBufferArrayL != null ? zzBufferArrayL[zzCurrentPosL++]:zzBufferL.charAt(zzCurrentPosL++);
+ else if (zzAtEOF) {
+ zzInput = YYEOF;
+ break zzForAction;
+ }
+ else {
+ // store back cached positions
+ zzCurrentPos = zzCurrentPosL;
+ zzMarkedPos = zzMarkedPosL;
+ boolean eof = zzRefill();
+ // get translated positions and possibly new buffer
+ zzCurrentPosL = zzCurrentPos;
+ zzMarkedPosL = zzMarkedPos;
+ zzBufferL = zzBuffer;
+ zzEndReadL = zzEndRead;
+ if (eof) {
+ zzInput = YYEOF;
+ break zzForAction;
+ }
+ else {
+ zzInput = zzBufferArrayL != null ? zzBufferArrayL[zzCurrentPosL++]:zzBufferL.charAt(zzCurrentPosL++);
+ }
+ }
+ int zzNext = zzTransL[ zzRowMapL[zzState] + zzCMapL[zzInput] ];
+ if (zzNext == -1) break zzForAction;
+ zzState = zzNext;
+
+ int zzAttributes = zzAttrL[zzState];
+ if ( (zzAttributes & 1) == 1 ) {
+ zzAction = zzState;
+ zzMarkedPosL = zzCurrentPosL;
+ if ( (zzAttributes & 8) == 8 ) break zzForAction;
+ }
+
+ }
+ }
+
+ // store back cached position
+ zzMarkedPos = zzMarkedPosL;
+
+ switch (zzAction < 0 ? zzAction : ZZ_ACTION[zzAction]) {
+ case 3:
+ { return JetTokens.IDENTIFIER;
+ }
+ case 96: break;
+ case 11:
+ { pushState(STRING); return JetTokens.OPEN_QUOTE;
+ }
+ case 97: break;
+ case 72:
+ { return JetTokens.FOR_KEYWORD ;
+ }
+ case 98: break;
+ case 93:
+ { return JetTokens.RETURN_KEYWORD ;
+ }
+ case 99: break;
+ case 80:
+ { return JetTokens.NULL_KEYWORD ;
+ }
+ case 100: break;
+ case 34:
+ { if (lBraceCount == 0) {
+ popState();
+ return JetTokens.LONG_TEMPLATE_ENTRY_END;
+ }
+ lBraceCount--;
+ return JetTokens.RBRACE;
+ }
+ case 101: break;
+ case 18:
+ { return JetTokens.LT ;
+ }
+ case 102: break;
+ case 51:
+ { return JetTokens.DO_KEYWORD ;
+ }
+ case 103: break;
+ case 17:
+ { return JetTokens.PLUS ;
+ }
+ case 104: break;
+ case 69:
+ { return JetTokens.RAW_STRING_LITERAL;
+ }
+ case 105: break;
+ case 57:
+ { return JetTokens.PLUSEQ ;
+ }
+ case 106: break;
+ case 27:
+ { return JetTokens.COMMA ;
+ }
+ case 107: break;
+ case 19:
+ { return JetTokens.GT ;
+ }
+ case 108: break;
+ case 4:
+ { return JetTokens.WHITE_SPACE;
+ }
+ case 109: break;
+ case 25:
+ { return JetTokens.RPAR ;
+ }
+ case 110: break;
+ case 53:
+ { return JetTokens.DOUBLE_ARROW;
+ }
+ case 111: break;
+ case 82:
+ { return JetTokens.TRUE_KEYWORD ;
+ }
+ case 112: break;
+ case 36:
+ { return JetTokens.FIELD_IDENTIFIER;
+ }
+ case 113: break;
+ case 61:
+ { return JetTokens.ANDAND ;
+ }
+ case 114: break;
+ case 65:
+ { pushState(LONG_TEMPLATE_ENTRY); return JetTokens.LONG_TEMPLATE_ENTRY_START;
+ }
+ case 115: break;
+ case 68:
+ { return JetTokens.DOC_COMMENT;
+ }
+ case 116: break;
+ case 35:
+ { return JetTokens.FLOAT_LITERAL;
+ }
+ case 117: break;
+ case 39:
+ { return JetTokens.EOL_COMMENT;
+ }
+ case 118: break;
+ case 85:
+ { return JetTokens.WHEN_KEYWORD ;
+ }
+ case 119: break;
+ case 20:
+ { return JetTokens.COLON ;
+ }
+ case 120: break;
+ case 59:
+ { return JetTokens.LTEQ ;
+ }
+ case 121: break;
+ case 46:
+ { return JetTokens.ARROW ;
+ }
+ case 122: break;
+ case 32:
+ { popState(); return JetTokens.IDENTIFIER;
+ }
+ case 123: break;
+ case 22:
+ { return JetTokens.LBRACKET ;
+ }
+ case 124: break;
+ case 67:
+ { yypushback(2); return JetTokens.INTEGER_LITERAL;
+ }
+ case 125: break;
+ case 10:
+ { return JetTokens.CHARACTER_LITERAL;
+ }
+ case 126: break;
+ case 74:
+ { return JetTokens.VAR_KEYWORD ;
+ }
+ case 127: break;
+ case 60:
+ { return JetTokens.GTEQ ;
+ }
+ case 128: break;
+ case 2:
+ { return JetTokens.INTEGER_LITERAL;
+ }
+ case 129: break;
+ case 13:
+ { return JetTokens.RBRACE ;
+ }
+ case 130: break;
+ case 87:
+ { return JetTokens.CLASS_KEYWORD ;
+ }
+ case 131: break;
+ case 15:
+ { return JetTokens.EXCL ;
+ }
+ case 132: break;
+ case 71:
+ { return JetTokens.TRY_KEYWORD ;
+ }
+ case 133: break;
+ case 54:
+ { return JetTokens.EXCLEQ ;
+ }
+ case 134: break;
+ case 45:
+ { return JetTokens.MINUSEQ ;
+ }
+ case 135: break;
+ case 88:
+ { return JetTokens.THROW_KEYWORD ;
+ }
+ case 136: break;
+ case 90:
+ { return JetTokens.WHILE_KEYWORD ;
+ }
+ case 137: break;
+ case 44:
+ { return JetTokens.MINUSMINUS;
+ }
+ case 138: break;
+ case 94:
+ { return JetTokens.CONTINUE_KEYWORD ;
+ }
+ case 139: break;
+ case 77:
+ { return JetTokens.NOT_IN;
+ }
+ case 140: break;
+ case 38:
+ { return JetTokens.ATAT ;
+ }
+ case 141: break;
+ case 6:
+ { return JetTokens.DIV ;
+ }
+ case 142: break;
+ case 56:
+ { return JetTokens.ELVIS ;
+ }
+ case 143: break;
+ case 37:
+ { return JetTokens.LABEL_IDENTIFIER;
+ }
+ case 144: break;
+ case 29:
+ { return JetTokens.REGULAR_STRING_PART;
+ }
+ case 145: break;
+ case 16:
+ { return JetTokens.QUEST ;
+ }
+ case 146: break;
+ case 62:
+ { return JetTokens.OROR ;
+ }
+ case 147: break;
+ case 21:
+ { return JetTokens.PERC ;
+ }
+ case 148: break;
+ case 79:
+ { return JetTokens.EXCLEQEQEQ;
+ }
+ case 149: break;
+ case 63:
+ { return JetTokens.PERCEQ ;
+ }
+ case 150: break;
+ case 43:
+ { return JetTokens.RANGE ;
+ }
+ case 151: break;
+ case 1:
+ { return TokenType.BAD_CHARACTER;
+ }
+ case 152: break;
+ case 55:
+ { return JetTokens.SAFE_ACCESS;
+ }
+ case 153: break;
+ case 95:
+ { return JetTokens.NAMESPACE_KEYWORD ;
+ }
+ case 154: break;
+ case 78:
+ { return JetTokens.NOT_IS;
+ }
+ case 155: break;
+ case 7:
+ { return JetTokens.MUL ;
+ }
+ case 156: break;
+ case 23:
+ { return JetTokens.RBRACKET ;
+ }
+ case 157: break;
+ case 58:
+ { return JetTokens.PLUSPLUS ;
+ }
+ case 158: break;
+ case 83:
+ { return JetTokens.THIS_KEYWORD ;
+ }
+ case 159: break;
+ case 8:
+ { return JetTokens.DOT ;
+ }
+ case 160: break;
+ case 26:
+ { return JetTokens.SEMICOLON ;
+ }
+ case 161: break;
+ case 50:
+ { return JetTokens.IF_KEYWORD ;
+ }
+ case 162: break;
+ case 66:
+ { return JetTokens.ESCAPE_SEQUENCE;
+ }
+ case 163: break;
+ case 31:
+ { popState(); return JetTokens.CLOSING_QUOTE;
+ }
+ case 164: break;
+ case 14:
+ { return JetTokens.EQ ;
+ }
+ case 165: break;
+ case 5:
+ { return JetTokens.AT ;
+ }
+ case 166: break;
+ case 70:
+ { return JetTokens.AS_SAFE;
+ }
+ case 167: break;
+ case 24:
+ { return JetTokens.LPAR ;
+ }
+ case 168: break;
+ case 9:
+ { return JetTokens.MINUS ;
+ }
+ case 169: break;
+ case 91:
+ { return JetTokens.FALSE_KEYWORD ;
+ }
+ case 170: break;
+ case 84:
+ { return JetTokens.TYPE_KEYWORD ;
+ }
+ case 171: break;
+ case 73:
+ { return JetTokens.FUN_KEYWORD ;
+ }
+ case 172: break;
+ case 49:
+ { return JetTokens.IS_KEYWORD ;
+ }
+ case 173: break;
+ case 30:
+ { popState(); yypushback(1); return JetTokens.DANGLING_NEWLINE;
+ }
+ case 174: break;
+ case 33:
+ { lBraceCount++; return JetTokens.LBRACE;
+ }
+ case 175: break;
+ case 41:
+ { return JetTokens.DIVEQ ;
+ }
+ case 176: break;
+ case 81:
+ { return JetTokens.ELSE_KEYWORD ;
+ }
+ case 177: break;
+ case 47:
+ { return JetTokens.AS_KEYWORD ;
+ }
+ case 178: break;
+ case 48:
+ { return JetTokens.IN_KEYWORD ;
+ }
+ case 179: break;
+ case 52:
+ { return JetTokens.EQEQ ;
+ }
+ case 180: break;
+ case 76:
+ { return JetTokens.EQEQEQ ;
+ }
+ case 181: break;
+ case 75:
+ { return JetTokens.VAL_KEYWORD ;
+ }
+ case 182: break;
+ case 86:
+ { return JetTokens.CAPITALIZED_THIS_KEYWORD ;
+ }
+ case 183: break;
+ case 42:
+ { return JetTokens.MULTEQ ;
+ }
+ case 184: break;
+ case 64:
+ { pushState(SHORT_TEMPLATE_ENTRY);
+ yypushback(yylength() - 1);
+ return JetTokens.SHORT_TEMPLATE_ENTRY_START;
+ }
+ case 185: break;
+ case 12:
+ { return JetTokens.LBRACE ;
+ }
+ case 186: break;
+ case 92:
+ { return JetTokens.OBJECT_KEYWORD ;
+ }
+ case 187: break;
+ case 89:
+ { return JetTokens.BREAK_KEYWORD ;
+ }
+ case 188: break;
+ case 40:
+ { return JetTokens.BLOCK_COMMENT;
+ }
+ case 189: break;
+ case 28:
+ { return JetTokens.HASH ;
+ }
+ case 190: break;
+ default:
+ if (zzInput == YYEOF && zzStartRead == zzCurrentPos) {
+ zzAtEOF = true;
+ zzDoEOF();
+ return null;
+ }
+ else {
+ zzScanError(ZZ_NO_MATCH);
+ }
+ }
+ }
+ }
+
+
+}
diff --git a/confluence/src/main/resources/atlassian-plugin.xml b/confluence/src/main/resources/atlassian-plugin.xml
new file mode 100644
index 00000000000..8a806b9d89b
--- /dev/null
+++ b/confluence/src/main/resources/atlassian-plugin.xml
@@ -0,0 +1,15 @@
+