diff --git a/.idea/workspace.xml b/.idea/workspace.xml
index ecd5eae..3e332b8 100644
--- a/.idea/workspace.xml
+++ b/.idea/workspace.xml
@@ -7,10 +7,145 @@
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -88,7 +223,7 @@
"RunOnceActivity.ShowReadmeOnStart": "true",
"git-widget-placeholder": "master",
"kotlin-language-version-configured": "true",
- "last_opened_file_path": "C:/Users/zc/Desktop/intellij",
+ "last_opened_file_path": "C:/Users/zc/Desktop/xlua2/emmylua-love2d",
"node.js.detected.package.eslint": "true",
"node.js.detected.package.tslint": "true",
"node.js.selected.package.eslint": "(autodetect)",
@@ -122,7 +257,7 @@
-
+
@@ -164,8 +299,7 @@
-
-
+
diff --git a/build.gradle.kts b/build.gradle.kts
index 658a317..5b0d97e 100644
--- a/build.gradle.kts
+++ b/build.gradle.kts
@@ -92,7 +92,7 @@ intellij {
type.set(buildVersionData.type) // Target IDE Platform
sandboxDir.set("${project.buildDir}/${buildVersionData.ideaSDKShortVersion}/idea-sandbox")
- plugins.set(listOf("com.redhat.devtools.lsp4ij:0.0.2-20240614-013035@nightly"))
+ plugins.set(listOf("com.redhat.devtools.lsp4ij:0.7.0"))
}
repositories {
diff --git a/gen/com/tang/intellij/lua/comment/lexer/LuaDocLexer.java b/gen/com/tang/intellij/lua/comment/lexer/LuaDocLexer.java
deleted file mode 100644
index bcc42f8..0000000
--- a/gen/com/tang/intellij/lua/comment/lexer/LuaDocLexer.java
+++ /dev/null
@@ -1,28 +0,0 @@
-/*
- * Copyright (c) 2017. tangzx(love.tangzx@qq.com)
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package com.tang.intellij.lua.comment.lexer;
-
-import com.intellij.lexer.FlexAdapter;
-
-/**
- * Created by Client on 2018/3/2.
- */
-public class LuaDocLexer extends FlexAdapter {
- public LuaDocLexer() {
- super(new _LuaDocLexer());
- }
-}
diff --git a/gen/com/tang/intellij/lua/comment/lexer/_LuaDocLexer.java b/gen/com/tang/intellij/lua/comment/lexer/_LuaDocLexer.java
deleted file mode 100644
index 47c97bc..0000000
--- a/gen/com/tang/intellij/lua/comment/lexer/_LuaDocLexer.java
+++ /dev/null
@@ -1,1015 +0,0 @@
-// Generated by JFlex 1.9.1 http://jflex.de/ (tweaked for IntelliJ platform)
-// source: doc.flex
-
-package com.tang.intellij.lua.comment.lexer;
-
-import com.intellij.lexer.FlexLexer;
-import com.intellij.psi.tree.IElementType;
-import com.tang.intellij.lua.comment.psi.LuaDocTypes;
-
-
-public class _LuaDocLexer implements FlexLexer, LuaDocTypes {
-
- /** This character denotes the end of file */
- public static final int YYEOF = -1;
-
- /** initial size of the lookahead buffer */
- private static final int ZZ_BUFFERSIZE = 16384;
-
- /** lexical states */
- public static final int YYINITIAL = 0;
- public static final int xTAG = 2;
- public static final int xTAG_WITH_ID = 4;
- public static final int xTAG_NAME = 6;
- public static final int xCOMMENT_STRING = 8;
- public static final int xLANGUAGE = 10;
-
- /**
- * ZZ_LEXSTATE[l] is the state in the DFA for the lexical state l
- * ZZ_LEXSTATE[l+1] is the state in the DFA for the lexical state l
- * at the beginning of a line
- * l is of the form l = 2*k, k a non negative integer
- */
- private static final int ZZ_LEXSTATE[] = {
- 0, 0, 1, 1, 2, 2, 3, 3, 4, 4, 5, 5
- };
-
- /**
- * Top-level table for translating characters to character classes
- */
- private static final int [] ZZ_CMAP_TOP = zzUnpackcmap_top();
-
- private static final String ZZ_CMAP_TOP_PACKED_0 =
- "\1\0\1\u0100\1\u0200\1\u0300\1\u0400\1\u0500\1\u0600\1\u0700"+
- "\1\u0800\1\u0900\1\u0a00\1\u0b00\1\u0c00\1\u0d00\1\u0e00\1\u0f00"+
- "\1\u1000\1\u0100\1\u1100\1\u1200\1\u1300\1\u0100\1\u1400\1\u1500"+
- "\1\u1600\1\u1700\1\u1800\1\u1900\1\u1a00\1\u1b00\1\u0100\1\u1c00"+
- "\1\u1d00\1\u1e00\12\u1f00\1\u2000\1\u2100\1\u2200\1\u1f00\1\u2300"+
- "\1\u2400\2\u1f00\31\u0100\1\u2500\121\u0100\1\u2600\4\u0100\1\u2700"+
- "\1\u0100\1\u2800\1\u2900\1\u2a00\1\u2b00\1\u2c00\1\u2d00\53\u0100"+
- "\1\u2e00\10\u2f00\31\u1f00\1\u0100\1\u3000\1\u3100\1\u0100\1\u3200"+
- "\1\u3300\1\u3400\1\u3500\1\u3600\1\u3700\1\u3800\1\u3900\1\u3a00"+
- "\1\u0100\1\u3b00\1\u3c00\1\u3d00\1\u3e00\1\u3f00\1\u4000\1\u4100"+
- "\1\u4200\1\u4300\1\u4400\1\u4500\1\u4600\1\u4700\1\u4800\1\u4900"+
- "\1\u4a00\1\u4b00\1\u4c00\1\u4d00\1\u4e00\1\u1f00\1\u4f00\1\u5000"+
- "\1\u5100\1\u5200\3\u0100\1\u5300\1\u5400\1\u5500\12\u1f00\4\u0100"+
- "\1\u5600\17\u1f00\2\u0100\1\u5700\41\u1f00\2\u0100\1\u5800\1\u5900"+
- "\2\u1f00\1\u5a00\1\u5b00\27\u0100\1\u5c00\4\u0100\1\u5d00\1\u5e00"+
- "\42\u1f00\1\u0100\1\u5f00\1\u6000\11\u1f00\1\u6100\24\u1f00\1\u6200"+
- "\1\u6300\1\u1f00\1\u6400\1\u6500\1\u6600\1\u6700\2\u1f00\1\u6800"+
- "\5\u1f00\1\u6900\1\u6a00\1\u6b00\5\u1f00\1\u6c00\1\u6d00\2\u1f00"+
- "\1\u6e00\1\u1f00\1\u6f00\14\u1f00\1\u7000\4\u1f00\246\u0100\1\u7100"+
- "\20\u0100\1\u7200\1\u7300\25\u0100\1\u7400\34\u0100\1\u7500\14\u1f00"+
- "\2\u0100\1\u7600\5\u1f00\23\u0100\1\u7700\u0aec\u1f00\1\u7800\1\u7900"+
- "\u02fe\u1f00";
-
- private static int [] zzUnpackcmap_top() {
- int [] result = new int[4352];
- int offset = 0;
- offset = zzUnpackcmap_top(ZZ_CMAP_TOP_PACKED_0, offset, result);
- return result;
- }
-
- private static int zzUnpackcmap_top(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;
- }
-
-
- /**
- * Second-level tables for translating characters to character classes
- */
- private static final int [] ZZ_CMAP_BLOCKS = zzUnpackcmap_blocks();
-
- private static final String ZZ_CMAP_BLOCKS_PACKED_0 =
- "\11\0\1\1\1\2\1\3\1\1\1\4\16\0\4\5"+
- "\1\6\2\5\1\7\1\10\10\5\1\11\1\0\1\5"+
- "\12\0\6\5\1\12\32\10\4\5\1\10\1\5\1\13"+
- "\1\14\1\15\1\16\1\17\1\20\1\21\1\10\1\22"+
- "\2\10\1\23\1\24\1\25\1\26\1\27\1\10\1\30"+
- "\1\31\1\32\1\33\1\34\2\10\1\35\1\10\4\5"+
- "\6\0\1\36\32\0\2\5\4\10\4\5\1\10\2\5"+
- "\1\0\7\5\1\10\4\5\1\10\5\5\27\10\1\5"+
- "\37\10\1\5\u01ca\10\4\5\14\10\16\5\5\10\7\5"+
- "\1\10\1\5\1\10\21\5\160\0\5\10\1\5\2\10"+
- "\2\5\4\10\1\5\1\10\6\5\1\10\1\5\3\10"+
- "\1\5\1\10\1\5\24\10\1\5\123\10\1\5\213\10"+
- "\1\5\5\0\2\5\246\10\1\5\46\10\2\5\1\10"+
- "\6\5\51\10\6\5\1\10\1\5\55\0\1\5\1\0"+
- "\1\5\2\0\1\5\2\0\1\5\1\0\10\5\33\10"+
- "\4\5\4\10\15\5\6\0\5\5\1\10\4\5\13\0"+
- "\1\5\1\0\3\5\53\10\37\0\4\5\2\10\1\0"+
- "\143\10\1\5\1\10\10\0\1\5\6\0\2\10\2\0"+
- "\1\5\4\0\2\10\12\0\3\10\2\5\1\10\17\5"+
- "\1\0\1\10\1\0\36\10\33\0\2\5\131\10\13\0"+
- "\1\10\16\5\12\0\41\10\11\0\2\10\4\5\1\10"+
- "\2\5\1\0\30\10\4\0\1\10\11\0\1\10\3\0"+
- "\1\10\5\0\22\5\31\10\3\0\4\5\13\10\65\5"+
- "\25\10\1\5\22\10\13\5\61\0\66\10\3\0\1\10"+
- "\22\0\1\10\7\0\12\10\2\0\2\5\12\0\1\5"+
- "\20\10\3\0\1\5\10\10\2\5\2\10\2\5\26\10"+
- "\1\5\7\10\1\5\1\10\3\5\4\10\2\5\1\0"+
- "\1\10\7\0\2\5\2\0\2\5\3\0\1\10\10\5"+
- "\1\0\4\5\2\10\1\5\3\10\2\0\2\5\12\0"+
- "\4\10\7\5\2\10\1\5\1\0\2\5\3\0\1\5"+
- "\6\10\4\5\2\10\2\5\26\10\1\5\7\10\1\5"+
- "\2\10\1\5\2\10\1\5\2\10\2\5\1\0\1\5"+
- "\5\0\4\5\2\0\2\5\3\0\3\5\1\0\7\5"+
- "\4\10\1\5\1\10\7\5\14\0\3\10\1\0\13\5"+
- "\3\0\1\5\11\10\1\5\3\10\1\5\26\10\1\5"+
- "\7\10\1\5\2\10\1\5\5\10\2\5\1\0\1\10"+
- "\10\0\1\5\3\0\1\5\3\0\2\5\1\10\17\5"+
- "\2\10\2\0\2\5\12\0\1\5\1\10\7\5\1\10"+
- "\6\0\1\5\3\0\1\5\10\10\2\5\2\10\2\5"+
- "\26\10\1\5\7\10\1\5\2\10\1\5\5\10\2\5"+
- "\1\0\1\10\7\0\2\5\2\0\2\5\3\0\7\5"+
- "\3\0\4\5\2\10\1\5\3\10\2\0\2\5\12\0"+
- "\1\5\1\10\20\5\1\0\1\10\1\5\6\10\3\5"+
- "\3\10\1\5\4\10\3\5\2\10\1\5\1\10\1\5"+
- "\2\10\3\5\2\10\3\5\3\10\3\5\14\10\4\5"+
- "\5\0\3\5\3\0\1\5\4\0\2\5\1\10\6\5"+
- "\1\0\16\5\12\0\11\5\1\10\6\5\5\0\10\10"+
- "\1\5\3\10\1\5\27\10\1\5\20\10\3\5\1\10"+
- "\7\0\1\5\3\0\1\5\4\0\7\5\2\0\1\5"+
- "\3\10\5\5\2\10\2\0\2\5\12\0\20\5\1\10"+
- "\3\0\1\5\10\10\1\5\3\10\1\5\27\10\1\5"+
- "\12\10\1\5\5\10\2\5\1\0\1\10\7\0\1\5"+
- "\3\0\1\5\4\0\7\5\2\0\7\5\1\10\1\5"+
- "\2\10\2\0\2\5\12\0\1\5\2\10\15\5\4\0"+
- "\11\10\1\5\3\10\1\5\51\10\2\0\1\10\7\0"+
- "\1\5\3\0\1\5\4\0\1\10\5\5\3\10\1\0"+
- "\7\5\3\10\2\0\2\5\12\0\12\5\6\10\1\5"+
- "\3\0\1\5\22\10\3\5\30\10\1\5\11\10\1\5"+
- "\1\10\2\5\7\10\3\5\1\0\4\5\6\0\1\5"+
- "\1\0\1\5\10\0\6\5\12\0\2\5\2\0\15\5"+
- "\60\10\1\0\2\10\7\0\4\5\10\10\10\0\1\5"+
- "\12\0\47\5\2\10\1\5\1\10\1\5\5\10\1\5"+
- "\30\10\1\5\1\10\1\5\12\10\1\0\2\10\11\0"+
- "\1\10\2\5\5\10\1\5\1\10\1\5\6\0\2\5"+
- "\12\0\2\5\4\10\40\5\1\10\27\5\2\0\6\5"+
- "\12\0\13\5\1\0\1\5\1\0\1\5\1\0\4\5"+
- "\2\0\10\10\1\5\44\10\4\5\24\0\1\5\2\0"+
- "\5\10\13\0\1\5\44\0\11\5\1\0\71\5\53\10"+
- "\24\0\1\10\12\0\6\5\6\10\4\0\4\10\3\0"+
- "\1\10\3\0\2\10\7\0\3\10\4\0\15\10\14\0"+
- "\1\10\17\0\2\5\46\10\1\5\1\10\5\5\1\10"+
- "\2\5\53\10\1\5\115\10\1\5\4\10\2\5\7\10"+
- "\1\5\1\10\1\5\4\10\2\5\51\10\1\5\4\10"+
- "\2\5\41\10\1\5\4\10\2\5\7\10\1\5\1\10"+
- "\1\5\4\10\2\5\17\10\1\5\71\10\1\5\4\10"+
- "\2\5\103\10\2\5\3\0\40\5\20\10\20\5\126\10"+
- "\2\5\6\10\3\5\u016c\10\2\5\21\10\1\5\32\10"+
- "\5\5\113\10\3\5\13\10\7\5\15\10\1\5\4\10"+
- "\3\0\13\5\22\10\3\0\13\5\22\10\2\0\14\5"+
- "\15\10\1\5\3\10\1\5\2\0\14\5\64\10\40\0"+
- "\3\5\1\10\3\5\2\10\1\0\2\5\12\0\41\5"+
- "\4\0\1\5\12\0\6\5\131\10\7\5\5\10\2\0"+
- "\42\10\1\0\1\10\5\5\106\10\12\5\37\10\1\5"+
- "\14\0\4\5\14\0\12\5\12\0\36\10\2\5\5\10"+
- "\13\5\54\10\4\5\32\10\6\5\12\0\46\5\27\10"+
- "\5\0\4\5\65\10\12\0\1\5\35\0\2\5\13\0"+
- "\6\5\12\0\15\5\1\10\10\5\16\0\1\5\2\0"+
- "\77\5\5\0\57\10\21\0\7\10\4\5\12\0\21\5"+
- "\11\0\14\5\3\0\36\10\15\0\2\10\12\0\54\10"+
- "\16\0\14\5\44\10\24\0\10\5\12\0\3\5\3\10"+
- "\12\0\44\10\2\5\11\10\7\5\53\10\2\5\3\10"+
- "\20\5\3\0\1\5\25\0\4\10\1\0\6\10\1\0"+
- "\2\10\3\0\1\10\5\5\300\10\72\0\1\5\5\0"+
- "\26\10\2\5\6\10\2\5\46\10\2\5\6\10\2\5"+
- "\10\10\1\5\1\10\1\5\1\10\1\5\1\10\1\5"+
- "\37\10\2\5\65\10\1\5\7\10\1\5\1\10\3\5"+
- "\3\10\1\5\7\10\3\5\4\10\2\5\6\10\4\5"+
- "\15\10\5\5\3\10\1\5\7\10\16\5\5\0\30\5"+
- "\2\3\5\0\20\5\2\10\23\5\1\10\13\5\5\0"+
- "\1\5\12\0\1\5\1\10\15\5\1\10\20\5\15\10"+
- "\3\5\40\10\20\5\15\0\4\5\1\0\3\5\14\0"+
- "\21\5\1\10\4\5\1\10\2\5\12\10\1\5\1\10"+
- "\3\5\5\10\6\5\1\10\1\5\1\10\1\5\1\10"+
- "\1\5\4\10\1\5\13\10\2\5\4\10\5\5\5\10"+
- "\4\5\1\10\21\5\51\10\u0177\5\57\10\1\5\57\10"+
- "\1\5\205\10\6\5\4\10\3\0\2\10\14\5\46\10"+
- "\1\5\1\10\5\5\1\10\2\5\70\10\7\5\1\10"+
- "\17\5\1\0\27\10\11\5\7\10\1\5\7\10\1\5"+
- "\7\10\1\5\7\10\1\5\7\10\1\5\7\10\1\5"+
- "\7\10\1\5\7\10\1\5\40\0\57\5\1\10\325\5"+
- "\3\10\31\5\11\10\6\0\1\5\5\10\2\5\5\10"+
- "\4\5\126\10\2\5\2\0\2\5\3\10\1\5\132\10"+
- "\1\5\4\10\5\5\53\10\1\5\136\10\21\5\40\10"+
- "\60\5\320\10\100\5\375\10\3\5\215\10\103\5\56\10"+
- "\2\5\15\10\3\5\20\10\12\0\2\10\24\5\57\10"+
- "\1\0\4\5\12\0\1\5\37\10\2\0\120\10\2\0"+
- "\45\5\11\10\2\5\147\10\2\5\65\10\2\5\11\10"+
- "\52\5\15\10\1\0\3\10\1\0\4\10\1\0\27\10"+
- "\5\0\4\5\1\0\13\5\1\10\7\5\64\10\14\5"+
- "\2\0\62\10\22\0\12\5\12\0\6\5\22\0\6\10"+
- "\3\5\1\10\1\5\2\10\13\0\34\10\10\0\2\5"+
- "\27\10\15\0\14\5\35\10\3\5\4\0\57\10\16\0"+
- "\16\5\1\10\12\0\6\5\5\10\1\0\12\10\12\0"+
- "\5\10\1\5\51\10\16\0\11\5\3\10\1\0\10\10"+
- "\2\0\2\5\12\0\6\5\27\10\3\5\1\10\3\0"+
- "\62\10\1\0\1\10\3\0\2\10\2\0\5\10\2\0"+
- "\1\10\1\0\1\10\30\5\3\10\2\5\13\10\5\0"+
- "\2\5\3\10\2\0\12\5\6\10\2\5\6\10\2\5"+
- "\6\10\11\5\7\10\1\5\7\10\1\5\53\10\1\5"+
- "\16\10\6\5\163\10\10\0\1\5\2\0\2\5\12\0"+
- "\6\5\244\10\14\5\27\10\4\5\61\10\4\5\u0100\3"+
- "\156\10\2\5\152\10\46\5\7\10\14\5\5\10\5\5"+
- "\1\10\1\0\12\10\1\5\15\10\1\5\5\10\1\5"+
- "\1\10\1\5\2\10\1\5\2\10\1\5\154\10\41\5"+
- "\153\10\22\5\100\10\2\5\66\10\50\5\15\10\3\5"+
- "\20\0\20\5\20\0\3\5\2\10\30\5\3\10\31\5"+
- "\1\10\6\5\5\10\1\5\207\10\2\5\1\0\4\5"+
- "\1\10\13\5\12\0\7\5\32\10\4\5\1\10\1\5"+
- "\32\10\13\5\131\10\3\5\6\10\2\5\6\10\2\5"+
- "\6\10\2\5\3\10\3\5\2\10\3\5\2\10\22\5"+
- "\3\0\4\5\14\10\1\5\32\10\1\5\23\10\1\5"+
- "\2\10\1\5\17\10\2\5\16\10\42\5\173\10\105\5"+
- "\65\10\210\5\1\0\202\5\35\10\3\5\61\10\17\5"+
- "\1\0\37\5\40\10\15\5\36\10\5\5\46\10\5\0"+
- "\5\5\36\10\2\5\44\10\4\5\10\10\1\5\5\10"+
- "\52\5\236\10\2\5\12\0\6\5\44\10\4\5\44\10"+
- "\4\5\50\10\10\5\64\10\234\5\67\10\11\5\26\10"+
- "\12\5\10\10\230\5\6\10\2\5\1\10\1\5\54\10"+
- "\1\5\2\10\3\5\1\10\2\5\27\10\12\5\27\10"+
- "\11\5\37\10\101\5\23\10\1\5\2\10\12\5\26\10"+
- "\12\5\32\10\106\5\70\10\6\5\2\10\100\5\1\10"+
- "\3\0\1\5\2\0\5\5\4\0\4\10\1\5\3\10"+
- "\1\5\35\10\2\5\3\0\4\5\1\0\40\5\35\10"+
- "\3\5\35\10\43\5\10\10\1\5\34\10\2\0\31\5"+
- "\66\10\12\5\26\10\12\5\23\10\15\5\22\10\156\5"+
- "\111\10\67\5\63\10\15\5\63\10\15\5\44\10\4\0"+
- "\10\5\12\0\u0146\5\52\10\1\5\2\0\3\5\2\10"+
- "\116\5\35\10\12\5\1\10\10\5\26\10\13\0\137\5"+
- "\25\10\33\5\27\10\11\5\3\0\65\10\17\0\37\5"+
- "\12\0\17\5\4\0\55\10\13\0\2\5\1\0\17\5"+
- "\1\0\2\5\31\10\7\5\12\0\6\5\3\0\44\10"+
- "\16\0\1\5\12\0\4\5\1\10\2\0\1\10\10\5"+
- "\43\10\1\0\2\5\1\10\11\5\3\0\60\10\16\0"+
- "\4\10\4\5\4\0\1\5\14\0\1\10\1\5\1\10"+
- "\43\5\22\10\1\5\31\10\14\0\6\5\1\0\101\5"+
- "\7\10\1\5\1\10\1\5\4\10\1\5\17\10\1\5"+
- "\12\10\7\5\57\10\14\0\5\5\12\0\6\5\4\0"+
- "\1\5\10\10\2\5\2\10\2\5\26\10\1\5\7\10"+
- "\1\5\2\10\1\5\5\10\1\5\2\0\1\10\7\0"+
- "\2\5\2\0\2\5\3\0\2\5\1\10\6\5\1\0"+
- "\5\5\5\10\2\0\2\5\7\0\3\5\5\0\213\5"+
- "\65\10\22\0\4\10\5\5\12\0\4\5\1\0\3\10"+
- "\36\5\60\10\24\0\2\10\1\5\1\10\10\5\12\0"+
- "\246\5\57\10\7\0\2\5\11\0\27\5\4\10\2\0"+
- "\42\5\60\10\21\0\3\5\1\10\13\5\12\0\46\5"+
- "\53\10\15\0\1\10\7\5\12\0\66\5\33\10\2\5"+
- "\17\0\4\5\12\0\306\5\54\10\17\0\145\5\100\10"+
- "\12\0\25\5\10\10\2\5\1\10\2\5\10\10\1\5"+
- "\2\10\1\5\30\10\6\0\1\5\2\0\2\5\4\0"+
- "\1\10\1\0\1\10\2\0\14\5\12\0\106\5\10\10"+
- "\2\5\47\10\7\0\2\5\7\0\1\10\1\5\1\10"+
- "\1\0\33\5\1\10\12\0\50\10\7\0\1\10\4\0"+
- "\10\5\1\0\10\5\1\10\13\0\56\10\20\0\3\5"+
- "\1\10\42\5\71\10\7\5\11\10\1\5\45\10\10\0"+
- "\1\5\10\0\1\10\17\5\12\0\30\5\36\10\2\5"+
- "\26\0\1\5\16\0\111\5\7\10\1\5\2\10\1\5"+
- "\46\10\6\0\3\5\1\0\1\5\2\0\1\5\7\0"+
- "\1\10\1\0\10\5\12\0\6\5\6\10\1\5\2\10"+
- "\1\5\40\10\5\0\1\5\2\0\1\5\5\0\1\10"+
- "\7\5\12\0\u0136\5\23\10\4\0\271\5\1\10\54\5"+
- "\4\10\37\5\232\10\146\5\157\10\21\5\304\10\274\5"+
- "\57\10\1\5\11\0\307\5\107\10\271\5\71\10\7\5"+
- "\37\10\1\5\12\0\146\5\36\10\2\5\5\0\13\5"+
- "\60\10\7\0\11\5\4\10\14\5\12\0\11\5\25\10"+
- "\5\5\23\10\260\5\100\10\200\5\113\10\4\5\1\0"+
- "\1\10\67\0\7\5\4\0\15\10\100\5\2\10\1\5"+
- "\1\10\1\0\13\5\2\0\16\5\370\10\10\5\326\10"+
- "\52\5\11\10\367\5\37\10\61\5\3\10\21\5\4\10"+
- "\10\5\u018c\10\4\5\153\10\5\5\15\10\3\5\11\10"+
- "\7\5\12\10\3\5\2\0\1\5\4\0\301\5\5\0"+
- "\3\5\26\0\2\5\7\0\36\5\4\0\224\5\3\0"+
- "\273\5\125\10\1\5\107\10\1\5\2\10\2\5\1\10"+
- "\2\5\2\10\2\5\4\10\1\5\14\10\1\5\1\10"+
- "\1\5\7\10\1\5\101\10\1\5\4\10\2\5\10\10"+
- "\1\5\7\10\1\5\34\10\1\5\4\10\1\5\5\10"+
- "\1\5\1\10\3\5\7\10\1\5\u0154\10\2\5\31\10"+
- "\1\5\31\10\1\5\37\10\1\5\31\10\1\5\37\10"+
- "\1\5\31\10\1\5\37\10\1\5\31\10\1\5\37\10"+
- "\1\5\31\10\1\5\10\10\2\5\151\0\4\5\62\0"+
- "\10\5\1\0\16\5\1\0\26\5\5\0\1\5\17\0"+
- "\120\5\7\0\1\5\21\0\2\5\7\0\1\5\2\0"+
- "\1\5\5\0\325\5\55\10\3\5\7\0\7\10\2\5"+
- "\12\0\4\5\1\10\u0171\5\54\10\16\0\5\5\306\10"+
- "\13\5\7\0\51\5\104\10\7\0\1\10\4\5\12\0"+
- "\u0156\5\1\10\117\5\4\10\1\5\33\10\1\5\2\10"+
- "\1\5\1\10\2\5\1\10\1\5\12\10\1\5\4\10"+
- "\1\5\1\10\1\5\1\10\6\5\1\10\4\5\1\10"+
- "\1\5\1\10\1\5\1\10\1\5\3\10\1\5\2\10"+
- "\1\5\1\10\2\5\1\10\1\5\1\10\1\5\1\10"+
- "\1\5\1\10\1\5\1\10\1\5\2\10\1\5\1\10"+
- "\2\5\4\10\1\5\7\10\1\5\4\10\1\5\4\10"+
- "\1\5\1\10\1\5\12\10\1\5\21\10\5\5\3\10"+
- "\1\5\5\10\1\5\21\10\u0134\5\12\0\6\5\336\10"+
- "\42\5\65\10\13\5\336\10\2\5\u0182\10\16\5\u0131\10"+
- "\37\5\36\10\342\5\113\10\266\5\1\0\36\5\140\0"+
- "\200\5\360\0\20\5";
-
- private static int [] zzUnpackcmap_blocks() {
- int [] result = new int[31232];
- int offset = 0;
- offset = zzUnpackcmap_blocks(ZZ_CMAP_BLOCKS_PACKED_0, offset, result);
- return result;
- }
-
- private static int zzUnpackcmap_blocks(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;
- }
-
- /**
- * Translates DFA states to action switch labels.
- */
- private static final int [] ZZ_ACTION = zzUnpackAction();
-
- private static final String ZZ_ACTION_PACKED_0 =
- "\4\0\1\1\1\0\1\2\1\3\1\4\1\5\1\4"+
- "\1\2\1\6\2\7\1\10\1\11\15\12\1\1\1\3"+
- "\1\13\1\14\33\12\1\15\20\12\1\16\1\12\1\17"+
- "\1\20\1\21\4\12\1\22\10\12\1\23\3\12\1\24"+
- "\1\25\1\12\1\26\1\27\2\12\1\30\2\12\1\31"+
- "\1\32\1\12\1\33\1\34";
-
- private static int [] zzUnpackAction() {
- int [] result = new int[115];
- int offset = 0;
- offset = zzUnpackAction(ZZ_ACTION_PACKED_0, offset, result);
- return result;
- }
-
- private static int zzUnpackAction(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;
- }
-
-
- /**
- * Translates a state to a row index in the transition table
- */
- private static final int [] ZZ_ROWMAP = zzUnpackRowMap();
-
- private static final String ZZ_ROWMAP_PACKED_0 =
- "\0\0\0\37\0\76\0\135\0\174\0\233\0\272\0\331"+
- "\0\272\0\272\0\370\0\u0117\0\272\0\272\0\u0136\0\272"+
- "\0\u0155\0\u0174\0\u0193\0\u01b2\0\u01d1\0\u01f0\0\u020f\0\u022e"+
- "\0\u024d\0\u026c\0\u028b\0\u02aa\0\u02c9\0\u02e8\0\u0307\0\u0326"+
- "\0\u0345\0\u0117\0\u0364\0\u0383\0\u03a2\0\u03c1\0\u03e0\0\u03ff"+
- "\0\u041e\0\u043d\0\u045c\0\u047b\0\u049a\0\u04b9\0\u04d8\0\u04f7"+
- "\0\u0516\0\u0535\0\u0554\0\u0573\0\u0592\0\u05b1\0\u05d0\0\u05ef"+
- "\0\u060e\0\u062d\0\u064c\0\u066b\0\u068a\0\u0174\0\u06a9\0\u06c8"+
- "\0\u06e7\0\u0706\0\u0725\0\u0744\0\u0763\0\u0782\0\u07a1\0\u07c0"+
- "\0\u07df\0\u07fe\0\u081d\0\u083c\0\u085b\0\u087a\0\u0174\0\u0899"+
- "\0\u0174\0\u0174\0\u0174\0\u08b8\0\u08d7\0\u08f6\0\u0915\0\u0174"+
- "\0\u0934\0\u0953\0\u0972\0\u0991\0\u09b0\0\u09cf\0\u09ee\0\u0a0d"+
- "\0\u0174\0\u0a2c\0\u0a4b\0\u0a6a\0\u0174\0\u0174\0\u0a89\0\u0174"+
- "\0\u0174\0\u0aa8\0\u0ac7\0\u0174\0\u0ae6\0\u0b05\0\u0174\0\u0174"+
- "\0\u0b24\0\u0174\0\u0174";
-
- private static int [] zzUnpackRowMap() {
- int [] result = new int[115];
- int offset = 0;
- offset = zzUnpackRowMap(ZZ_ROWMAP_PACKED_0, offset, result);
- return result;
- }
-
- private static int zzUnpackRowMap(String packed, int offset, int [] result) {
- int i = 0; /* index in packed string */
- int j = offset; /* index in unpacked array */
- int l = packed.length() - 1;
- while (i < l) {
- int high = packed.charAt(i++) << 16;
- result[j++] = high | packed.charAt(i++);
- }
- return j;
- }
-
- /**
- * The transition table of the DFA
- */
- private static final int [] ZZ_TRANS = zzUnpacktrans();
-
- private static final String ZZ_TRANS_PACKED_0 =
- "\1\7\1\10\1\11\1\12\1\13\1\7\1\10\2\7"+
- "\1\14\1\15\23\7\2\12\1\10\1\16\1\12\1\17"+
- "\1\12\1\10\1\20\1\21\1\12\1\20\23\21\2\12"+
- "\1\10\1\16\1\12\1\17\1\12\1\10\31\12\1\10"+
- "\1\16\1\12\1\17\1\12\1\10\1\12\1\22\2\12"+
- "\1\23\1\22\1\24\2\22\1\25\1\26\1\22\1\27"+
- "\1\30\1\22\1\31\1\32\1\33\1\34\1\35\1\22"+
- "\1\36\1\22\1\12\1\37\1\10\1\16\1\37\1\17"+
- "\1\37\1\40\30\37\1\12\1\10\1\16\1\12\1\17"+
- "\1\12\1\10\1\12\1\41\2\12\23\41\1\12\40\0"+
- "\1\10\4\0\1\10\32\0\1\11\45\0\1\42\27\0"+
- "\1\16\34\0\1\21\7\0\1\21\2\0\24\21\1\22"+
- "\7\0\1\22\2\0\25\22\7\0\1\22\2\0\10\22"+
- "\1\43\14\22\7\0\1\22\2\0\10\22\1\44\14\22"+
- "\7\0\1\22\2\0\7\22\1\45\15\22\7\0\1\22"+
- "\2\0\4\22\1\46\20\22\7\0\1\22\2\0\1\47"+
- "\24\22\7\0\1\22\2\0\13\22\1\50\11\22\7\0"+
- "\1\22\2\0\21\22\1\51\3\22\7\0\1\22\2\0"+
- "\1\52\14\22\1\53\2\22\1\54\4\22\7\0\1\22"+
- "\2\0\4\22\1\55\20\22\7\0\1\22\2\0\4\22"+
- "\1\56\13\22\1\57\4\22\7\0\1\22\2\0\22\22"+
- "\1\60\2\22\7\0\1\22\2\0\1\61\23\22\1\37"+
- "\2\0\1\37\1\0\33\37\1\10\1\0\1\37\1\0"+
- "\1\37\1\40\30\37\1\41\7\0\1\41\2\0\24\41"+
- "\1\22\7\0\1\22\2\0\7\22\1\62\15\22\7\0"+
- "\1\22\2\0\1\63\24\22\7\0\1\22\2\0\4\22"+
- "\1\64\20\22\7\0\1\22\2\0\12\22\1\65\12\22"+
- "\7\0\1\22\2\0\12\22\1\66\12\22\7\0\1\22"+
- "\2\0\3\22\1\67\21\22\7\0\1\22\2\0\4\22"+
- "\1\70\20\22\7\0\1\22\2\0\15\22\1\71\7\22"+
- "\7\0\1\22\2\0\7\22\1\72\3\22\1\73\11\22"+
- "\7\0\1\22\2\0\1\22\1\74\23\22\7\0\1\22"+
- "\2\0\17\22\1\75\5\22\7\0\1\22\2\0\4\22"+
- "\1\76\20\22\7\0\1\22\2\0\14\22\1\77\10\22"+
- "\7\0\1\22\2\0\14\22\1\100\10\22\7\0\1\22"+
- "\2\0\15\22\1\101\7\22\7\0\1\22\2\0\1\102"+
- "\24\22\7\0\1\22\2\0\16\22\1\103\6\22\7\0"+
- "\1\22\2\0\10\22\1\104\14\22\7\0\1\22\2\0"+
- "\4\22\1\105\20\22\7\0\1\22\2\0\6\22\1\106"+
- "\16\22\7\0\1\22\2\0\20\22\1\107\4\22\7\0"+
- "\1\22\2\0\15\22\1\110\7\22\7\0\1\22\2\0"+
- "\1\111\24\22\7\0\1\22\2\0\21\22\1\112\3\22"+
- "\7\0\1\22\2\0\17\22\1\113\5\22\7\0\1\22"+
- "\2\0\10\22\1\114\14\22\7\0\1\22\2\0\20\22"+
- "\1\115\4\22\7\0\1\22\2\0\14\22\1\116\10\22"+
- "\7\0\1\22\2\0\4\22\1\117\20\22\7\0\1\22"+
- "\2\0\1\120\24\22\7\0\1\22\2\0\16\22\1\121"+
- "\6\22\7\0\1\22\2\0\16\22\1\122\6\22\7\0"+
- "\1\22\2\0\3\22\1\123\21\22\7\0\1\22\2\0"+
- "\15\22\1\124\7\22\7\0\1\22\2\0\20\22\1\125"+
- "\4\22\7\0\1\22\2\0\10\22\1\126\14\22\7\0"+
- "\1\22\2\0\10\22\1\127\14\22\7\0\1\22\2\0"+
- "\11\22\1\130\13\22\7\0\1\22\2\0\1\131\24\22"+
- "\7\0\1\22\2\0\4\22\1\132\20\22\7\0\1\22"+
- "\2\0\7\22\1\133\15\22\7\0\1\22\2\0\15\22"+
- "\1\134\7\22\7\0\1\22\2\0\15\22\1\135\7\22"+
- "\7\0\1\22\2\0\15\22\1\136\7\22\7\0\1\22"+
- "\2\0\7\22\1\137\15\22\7\0\1\22\2\0\1\140"+
- "\24\22\7\0\1\22\2\0\4\22\1\141\20\22\7\0"+
- "\1\22\2\0\13\22\1\142\11\22\7\0\1\22\2\0"+
- "\17\22\1\143\5\22\7\0\1\22\2\0\2\22\1\144"+
- "\22\22\7\0\1\22\2\0\2\22\1\145\22\22\7\0"+
- "\1\22\2\0\12\22\1\146\12\22\7\0\1\22\2\0"+
- "\4\22\1\147\20\22\7\0\1\22\2\0\6\22\1\150"+
- "\16\22\7\0\1\22\2\0\2\22\1\151\22\22\7\0"+
- "\1\22\2\0\6\22\1\152\16\22\7\0\1\22\2\0"+
- "\1\153\24\22\7\0\1\22\2\0\4\22\1\154\20\22"+
- "\7\0\1\22\2\0\17\22\1\155\5\22\7\0\1\22"+
- "\2\0\16\22\1\156\6\22\7\0\1\22\2\0\4\22"+
- "\1\157\20\22\7\0\1\22\2\0\3\22\1\160\21\22"+
- "\7\0\1\22\2\0\4\22\1\161\20\22\7\0\1\22"+
- "\2\0\16\22\1\162\6\22\7\0\1\22\2\0\3\22"+
- "\1\163\20\22";
-
- private static int [] zzUnpacktrans() {
- int [] result = new int[2883];
- int offset = 0;
- offset = zzUnpacktrans(ZZ_TRANS_PACKED_0, offset, result);
- return result;
- }
-
- private static int zzUnpacktrans(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++);
- value--;
- do result[j++] = value; while (--count > 0);
- }
- return j;
- }
-
-
- /* error codes */
- private static final int ZZ_UNKNOWN_ERROR = 0;
- private static final int ZZ_NO_MATCH = 1;
- private static final int ZZ_PUSHBACK_2BIG = 2;
-
- /* error messages for the codes above */
- private static final String[] ZZ_ERROR_MSG = {
- "Unknown internal scanner error",
- "Error: could not match input",
- "Error: pushback value was too large"
- };
-
- /**
- * ZZ_ATTRIBUTE[aState] contains the attributes of state {@code aState}
- */
- private static final int [] ZZ_ATTRIBUTE = zzUnpackAttribute();
-
- private static final String ZZ_ATTRIBUTE_PACKED_0 =
- "\4\0\1\1\1\0\1\11\1\1\2\11\2\1\2\11"+
- "\1\1\1\11\143\1";
-
- private static int [] zzUnpackAttribute() {
- int [] result = new int[115];
- 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 input device */
- private java.io.Reader zzReader;
-
- /** 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 = "";
-
- /** the textposition at the last accepting state */
- private int zzMarkedPos;
-
- /** 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;
-
- /** zzAtEOF == true <=> the scanner is at the EOF */
- private boolean zzAtEOF;
-
- /** Number of newlines encountered up to the start of the matched text. */
- @SuppressWarnings("unused")
- private int yyline;
-
- /** Number of characters from the last newline up to the start of the matched text. */
- @SuppressWarnings("unused")
- protected int yycolumn;
-
- /** Number of characters up to the start of the matched text. */
- @SuppressWarnings("unused")
- private long yychar;
-
- /** Whether the scanner is currently at the beginning of a line. */
- @SuppressWarnings("unused")
- private boolean zzAtBOL = true;
-
- /** Whether the user-EOF-code has already been executed. */
- private boolean zzEOFDone;
-
- /* user code: */
- private int _typeLevel = 0;
- private boolean _typeReq = false;
- public _LuaDocLexer() {
- this((java.io.Reader) null);
- }
-
- private void beginType() {
- _typeLevel = 0;
- _typeReq = true;
- }
-
-
- /**
- * Creates a new scanner
- *
- * @param in the java.io.Reader to read input from.
- */
- public _LuaDocLexer(java.io.Reader in) {
- this.zzReader = in;
- }
-
-
- /** Returns the maximum size of the scanner buffer, which limits the size of tokens. */
- private int zzMaxBufferLen() {
- return Integer.MAX_VALUE;
- }
-
- /** Whether the scanner buffer can grow to accommodate a larger token. */
- private boolean zzCanGrow() {
- return true;
- }
-
- /**
- * Translates raw input code points to DFA table row
- */
- private static int zzCMap(int input) {
- int offset = input & 255;
- return offset == input ? ZZ_CMAP_BLOCKS[offset] : ZZ_CMAP_BLOCKS[ZZ_CMAP_TOP[input >> 8] | offset];
- }
-
- public final int getTokenStart() {
- return zzStartRead;
- }
-
- public final int getTokenEnd() {
- return getTokenStart() + yylength();
- }
-
- public void reset(CharSequence buffer, int start, int end, int initialState) {
- zzBuffer = buffer;
- zzCurrentPos = zzMarkedPos = zzStartRead = start;
- zzAtEOF = false;
- zzAtBOL = true;
- zzEndRead = end;
- yybegin(initialState);
- }
-
- /**
- * Refills the input buffer.
- *
- * @return {@code false}, 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 {@code 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 zzBuffer.charAt(zzStartRead+pos);
- }
-
-
- /**
- * Returns the length of the matched text region.
- */
- public final int yylength() {
- return zzMarkedPos-zzStartRead;
- }
-
-
- /**
- * Reports an error that occurred 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;
-
- 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];
-
- // set up zzAction for empty match case:
- int zzAttributes = zzAttrL[zzState];
- if ( (zzAttributes & 1) == 1 ) {
- zzAction = zzState;
- }
-
-
- zzForAction: {
- while (true) {
-
- if (zzCurrentPosL < zzEndReadL) {
- zzInput = Character.codePointAt(zzBufferL, zzCurrentPosL);
- zzCurrentPosL += Character.charCount(zzInput);
- }
- 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 = Character.codePointAt(zzBufferL, zzCurrentPosL);
- zzCurrentPosL += Character.charCount(zzInput);
- }
- }
- int zzNext = zzTransL[ zzRowMapL[zzState] + zzCMap(zzInput) ];
- if (zzNext == -1) break zzForAction;
- zzState = zzNext;
-
- zzAttributes = zzAttrL[zzState];
- if ( (zzAttributes & 1) == 1 ) {
- zzAction = zzState;
- zzMarkedPosL = zzCurrentPosL;
- if ( (zzAttributes & 8) == 8 ) break zzForAction;
- }
-
- }
- }
-
- // store back cached position
- zzMarkedPos = zzMarkedPosL;
-
- if (zzInput == YYEOF && zzStartRead == zzCurrentPos) {
- zzAtEOF = true;
- zzDoEOF();
- return null;
- }
- else {
- switch (zzAction < 0 ? zzAction : ZZ_ACTION[zzAction]) {
- case 1:
- { yybegin(YYINITIAL); return STRING;
- }
- // fall through
- case 29: break;
- case 2:
- { yybegin(xCOMMENT_STRING); yypushback(yylength());
- }
- // fall through
- case 30: break;
- case 3:
- { return com.intellij.psi.TokenType.WHITE_SPACE;
- }
- // fall through
- case 31: break;
- case 4:
- { yybegin(YYINITIAL); return com.intellij.psi.TokenType.WHITE_SPACE;
- }
- // fall through
- case 32: break;
- case 5:
- { return com.intellij.psi.TokenType.BAD_CHARACTER;
- }
- // fall through
- case 33: break;
- case 6:
- { yybegin(xTAG_NAME); return AT;
- }
- // fall through
- case 34: break;
- case 7:
- { yybegin(YYINITIAL);return com.intellij.psi.TokenType.WHITE_SPACE;
- }
- // fall through
- case 35: break;
- case 8:
- { yybegin(xCOMMENT_STRING); return STRING_BEGIN;
- }
- // fall through
- case 36: break;
- case 9:
- { return ID;
- }
- // fall through
- case 37: break;
- case 10:
- { yybegin(xCOMMENT_STRING); return TAG_NAME;
- }
- // fall through
- case 38: break;
- case 11:
- { yybegin(xCOMMENT_STRING); return ID;
- }
- // fall through
- case 39: break;
- case 12:
- { return DASHES;
- }
- // fall through
- case 40: break;
- case 13:
- { yybegin(xCOMMENT_STRING); return TAG_NAME_SEE;
- }
- // fall through
- case 41: break;
- case 14:
- { yybegin(xCOMMENT_STRING); return TAG_NAME_TYPE;
- }
- // fall through
- case 42: break;
- case 15:
- { yybegin(xCOMMENT_STRING); return TAG_NAME_ALIAS;
- }
- // fall through
- case 43: break;
- case 16:
- { yybegin(xCOMMENT_STRING); return TAG_NAME_CLASS;
- }
- // fall through
- case 44: break;
- case 17:
- { yybegin(xCOMMENT_STRING); return TAG_NAME_FIELD;
- }
- // fall through
- case 45: break;
- case 18:
- { yybegin(xCOMMENT_STRING); return TAG_NAME_PARAM;
- }
- // fall through
- case 46: break;
- case 19:
- { yybegin(xCOMMENT_STRING); return TAG_NAME_MODULE;
- }
- // fall through
- case 47: break;
- case 20:
- { yybegin(xCOMMENT_STRING); return TAG_NAME_PUBLIC;
- }
- // fall through
- case 48: break;
- case 21:
- { yybegin(xCOMMENT_STRING); return TAG_NAME_RETURN;
- }
- // fall through
- case 49: break;
- case 22:
- { yybegin(xCOMMENT_STRING); return TAG_NAME_VARARG;
- }
- // fall through
- case 50: break;
- case 23:
- { yybegin(xCOMMENT_STRING); return TAG_NAME_GENERIC;
- }
- // fall through
- case 51: break;
- case 24:
- { yybegin(xCOMMENT_STRING); return TAG_NAME_PRIVATE;
- }
- // fall through
- case 52: break;
- case 25:
- { yybegin(xLANGUAGE); return TAG_NAME_LANGUAGE;
- }
- // fall through
- case 53: break;
- case 26:
- { yybegin(xCOMMENT_STRING); return TAG_NAME_OVERLOAD;
- }
- // fall through
- case 54: break;
- case 27:
- { yybegin(xCOMMENT_STRING); return TAG_NAME_SUPPRESS;
- }
- // fall through
- case 55: break;
- case 28:
- { yybegin(xCOMMENT_STRING); return TAG_NAME_PROTECTED;
- }
- // fall through
- case 56: break;
- default:
- zzScanError(ZZ_NO_MATCH);
- }
- }
- }
- }
-
-
-}
diff --git a/gen/com/tang/intellij/lua/comment/parser/LuaDocParser.java b/gen/com/tang/intellij/lua/comment/parser/LuaDocParser.java
deleted file mode 100644
index e7c76d2..0000000
--- a/gen/com/tang/intellij/lua/comment/parser/LuaDocParser.java
+++ /dev/null
@@ -1,483 +0,0 @@
-// This is a generated file. Not intended for manual editing.
-package com.tang.intellij.lua.comment.parser;
-
-import com.intellij.lang.PsiBuilder;
-import com.intellij.lang.PsiBuilder.Marker;
-import static com.tang.intellij.lua.comment.psi.LuaDocTypes.*;
-import static com.tang.intellij.lua.psi.LuaParserUtil.*;
-import com.intellij.psi.tree.IElementType;
-import com.intellij.lang.ASTNode;
-import com.intellij.psi.tree.TokenSet;
-import com.intellij.lang.PsiParser;
-import com.intellij.lang.LightPsiParser;
-
-@SuppressWarnings({"SimplifiableIfStatement", "UnusedAssignment"})
-public class LuaDocParser implements PsiParser, LightPsiParser {
-
- public ASTNode parse(IElementType t, PsiBuilder b) {
- parseLight(t, b);
- return b.getTreeBuilt();
- }
-
- public void parseLight(IElementType t, PsiBuilder b) {
- boolean r;
- b = adapt_builder_(t, b, this, null);
- Marker m = enter_section_(b, 0, _COLLAPSE_, null);
- r = parse_root_(t, b);
- exit_section_(b, 0, m, t, r, true, TRUE_CONDITION);
- }
-
- protected boolean parse_root_(IElementType t, PsiBuilder b) {
- return parse_root_(t, b, 0);
- }
-
- static boolean parse_root_(IElementType t, PsiBuilder b, int l) {
- return doc(b, l + 1);
- }
-
- /* ********************************************************** */
- // PRIVATE | PUBLIC | PROTECTED | TAG_NAME_PRIVATE | TAG_NAME_PUBLIC | TAG_NAME_PROTECTED
- public static boolean access_modifier(PsiBuilder b, int l) {
- if (!recursion_guard_(b, l, "access_modifier")) return false;
- boolean r;
- Marker m = enter_section_(b, l, _NONE_, ACCESS_MODIFIER, "");
- r = consumeToken(b, PRIVATE);
- if (!r) r = consumeToken(b, PUBLIC);
- if (!r) r = consumeToken(b, PROTECTED);
- if (!r) r = consumeToken(b, TAG_NAME_PRIVATE);
- if (!r) r = consumeToken(b, TAG_NAME_PUBLIC);
- if (!r) r = consumeToken(b, TAG_NAME_PROTECTED);
- exit_section_(b, l, m, r, false, null);
- return r;
- }
-
- /* ********************************************************** */
- // doc_item | STRING
- static boolean after_dash(PsiBuilder b, int l) {
- if (!recursion_guard_(b, l, "after_dash")) return false;
- boolean r;
- Marker m = enter_section_(b, l, _NONE_);
- r = doc_item(b, l + 1);
- if (!r) r = consumeToken(b, STRING);
- exit_section_(b, l, m, r, false, LuaDocParser::after_dash_recover);
- return r;
- }
-
- /* ********************************************************** */
- // !(DASHES)
- static boolean after_dash_recover(PsiBuilder b, int l) {
- if (!recursion_guard_(b, l, "after_dash_recover")) return false;
- boolean r;
- Marker m = enter_section_(b, l, _NOT_);
- r = !consumeToken(b, DASHES);
- exit_section_(b, l, m, r, false, null);
- return r;
- }
-
- /* ********************************************************** */
- // STRING?
- public static boolean comment_string(PsiBuilder b, int l) {
- if (!recursion_guard_(b, l, "comment_string")) return false;
- Marker m = enter_section_(b, l, _NONE_, COMMENT_STRING, "");
- consumeToken(b, STRING);
- exit_section_(b, l, m, true, false, null);
- return true;
- }
-
- /* ********************************************************** */
- // (DASHES after_dash?)*
- static boolean doc(PsiBuilder b, int l) {
- if (!recursion_guard_(b, l, "doc")) return false;
- while (true) {
- int c = current_position_(b);
- if (!doc_0(b, l + 1)) break;
- if (!empty_element_parsed_guard_(b, "doc", c)) break;
- }
- return true;
- }
-
- // DASHES after_dash?
- private static boolean doc_0(PsiBuilder b, int l) {
- if (!recursion_guard_(b, l, "doc_0")) return false;
- boolean r;
- Marker m = enter_section_(b);
- r = consumeToken(b, DASHES);
- r = r && doc_0_1(b, l + 1);
- exit_section_(b, m, null, r);
- return r;
- }
-
- // after_dash?
- private static boolean doc_0_1(PsiBuilder b, int l) {
- if (!recursion_guard_(b, l, "doc_0_1")) return false;
- after_dash(b, l + 1);
- return true;
- }
-
- /* ********************************************************** */
- // '@' (tag_param
- // | tag_alias
- // | tag_suppress
- // | tag_vararg
- // | tag_return
- // | tag_class
- // | tag_field
- // | tag_type
- // | tag_lan
- // | tag_overload
- // | tag_see
- // | tag_def
- // | access_modifier
- // | tag_generic_list
- // | tag_other)
- static boolean doc_item(PsiBuilder b, int l) {
- if (!recursion_guard_(b, l, "doc_item")) return false;
- if (!nextTokenIs(b, AT)) return false;
- boolean r;
- Marker m = enter_section_(b);
- r = consumeToken(b, AT);
- r = r && doc_item_1(b, l + 1);
- exit_section_(b, m, null, r);
- return r;
- }
-
- // tag_param
- // | tag_alias
- // | tag_suppress
- // | tag_vararg
- // | tag_return
- // | tag_class
- // | tag_field
- // | tag_type
- // | tag_lan
- // | tag_overload
- // | tag_see
- // | tag_def
- // | access_modifier
- // | tag_generic_list
- // | tag_other
- private static boolean doc_item_1(PsiBuilder b, int l) {
- if (!recursion_guard_(b, l, "doc_item_1")) return false;
- boolean r;
- r = tag_param(b, l + 1);
- if (!r) r = tag_alias(b, l + 1);
- if (!r) r = tag_suppress(b, l + 1);
- if (!r) r = tag_vararg(b, l + 1);
- if (!r) r = tag_return(b, l + 1);
- if (!r) r = tag_class(b, l + 1);
- if (!r) r = tag_field(b, l + 1);
- if (!r) r = tag_type(b, l + 1);
- if (!r) r = tag_lan(b, l + 1);
- if (!r) r = tag_overload(b, l + 1);
- if (!r) r = tag_see(b, l + 1);
- if (!r) r = tag_def(b, l + 1);
- if (!r) r = access_modifier(b, l + 1);
- if (!r) r = tag_generic_list(b, l + 1);
- if (!r) r = tag_other(b, l + 1);
- return r;
- }
-
- /* ********************************************************** */
- // TAG_NAME_ALIAS comment_string?
- public static boolean tag_alias(PsiBuilder b, int l) {
- if (!recursion_guard_(b, l, "tag_alias")) return false;
- if (!nextTokenIs(b, TAG_NAME_ALIAS)) return false;
- boolean r, p;
- Marker m = enter_section_(b, l, _NONE_, TAG_ALIAS, null);
- r = consumeToken(b, TAG_NAME_ALIAS);
- p = r; // pin = 1
- r = r && tag_alias_1(b, l + 1);
- exit_section_(b, l, m, r, p, null);
- return r || p;
- }
-
- // comment_string?
- private static boolean tag_alias_1(PsiBuilder b, int l) {
- if (!recursion_guard_(b, l, "tag_alias_1")) return false;
- comment_string(b, l + 1);
- return true;
- }
-
- /* ********************************************************** */
- // (TAG_NAME_CLASS|TAG_NAME_MODULE) comment_string?
- public static boolean tag_class(PsiBuilder b, int l) {
- if (!recursion_guard_(b, l, "tag_class")) return false;
- if (!nextTokenIs(b, "", TAG_NAME_CLASS, TAG_NAME_MODULE)) return false;
- boolean r, p;
- Marker m = enter_section_(b, l, _NONE_, TAG_CLASS, "");
- r = tag_class_0(b, l + 1);
- p = r; // pin = 1
- r = r && tag_class_1(b, l + 1);
- exit_section_(b, l, m, r, p, null);
- return r || p;
- }
-
- // TAG_NAME_CLASS|TAG_NAME_MODULE
- private static boolean tag_class_0(PsiBuilder b, int l) {
- if (!recursion_guard_(b, l, "tag_class_0")) return false;
- boolean r;
- r = consumeToken(b, TAG_NAME_CLASS);
- if (!r) r = consumeToken(b, TAG_NAME_MODULE);
- return r;
- }
-
- // comment_string?
- private static boolean tag_class_1(PsiBuilder b, int l) {
- if (!recursion_guard_(b, l, "tag_class_1")) return false;
- comment_string(b, l + 1);
- return true;
- }
-
- /* ********************************************************** */
- // TAG_NAME_NAME comment_string?
- public static boolean tag_def(PsiBuilder b, int l) {
- if (!recursion_guard_(b, l, "tag_def")) return false;
- if (!nextTokenIs(b, TAG_NAME_NAME)) return false;
- boolean r, p;
- Marker m = enter_section_(b, l, _NONE_, TAG_DEF, null);
- r = consumeToken(b, TAG_NAME_NAME);
- p = r; // pin = 1
- r = r && tag_def_1(b, l + 1);
- exit_section_(b, l, m, r, p, null);
- return r || p;
- }
-
- // comment_string?
- private static boolean tag_def_1(PsiBuilder b, int l) {
- if (!recursion_guard_(b, l, "tag_def_1")) return false;
- comment_string(b, l + 1);
- return true;
- }
-
- /* ********************************************************** */
- // TAG_NAME_FIELD comment_string?
- public static boolean tag_field(PsiBuilder b, int l) {
- if (!recursion_guard_(b, l, "tag_field")) return false;
- if (!nextTokenIs(b, TAG_NAME_FIELD)) return false;
- boolean r, p;
- Marker m = enter_section_(b, l, _NONE_, TAG_FIELD, null);
- r = consumeToken(b, TAG_NAME_FIELD);
- p = r; // pin = 1
- r = r && tag_field_1(b, l + 1);
- exit_section_(b, l, m, r, p, null);
- return r || p;
- }
-
- // comment_string?
- private static boolean tag_field_1(PsiBuilder b, int l) {
- if (!recursion_guard_(b, l, "tag_field_1")) return false;
- comment_string(b, l + 1);
- return true;
- }
-
- /* ********************************************************** */
- // TAG_NAME_GENERIC comment_string?
- public static boolean tag_generic_list(PsiBuilder b, int l) {
- if (!recursion_guard_(b, l, "tag_generic_list")) return false;
- if (!nextTokenIs(b, TAG_NAME_GENERIC)) return false;
- boolean r, p;
- Marker m = enter_section_(b, l, _NONE_, TAG_GENERIC_LIST, null);
- r = consumeToken(b, TAG_NAME_GENERIC);
- p = r; // pin = 1
- r = r && tag_generic_list_1(b, l + 1);
- exit_section_(b, l, m, r, p, null);
- return r || p;
- }
-
- // comment_string?
- private static boolean tag_generic_list_1(PsiBuilder b, int l) {
- if (!recursion_guard_(b, l, "tag_generic_list_1")) return false;
- comment_string(b, l + 1);
- return true;
- }
-
- /* ********************************************************** */
- // TAG_NAME_LANGUAGE ID comment_string?
- public static boolean tag_lan(PsiBuilder b, int l) {
- if (!recursion_guard_(b, l, "tag_lan")) return false;
- if (!nextTokenIs(b, TAG_NAME_LANGUAGE)) return false;
- boolean r, p;
- Marker m = enter_section_(b, l, _NONE_, TAG_LAN, null);
- r = consumeTokens(b, 1, TAG_NAME_LANGUAGE, ID);
- p = r; // pin = 1
- r = r && tag_lan_2(b, l + 1);
- exit_section_(b, l, m, r, p, null);
- return r || p;
- }
-
- // comment_string?
- private static boolean tag_lan_2(PsiBuilder b, int l) {
- if (!recursion_guard_(b, l, "tag_lan_2")) return false;
- comment_string(b, l + 1);
- return true;
- }
-
- /* ********************************************************** */
- // TAG_NAME comment_string?
- public static boolean tag_other(PsiBuilder b, int l) {
- if (!recursion_guard_(b, l, "tag_other")) return false;
- if (!nextTokenIs(b, TAG_NAME)) return false;
- boolean r, p;
- Marker m = enter_section_(b, l, _NONE_, TAG_OTHER, null);
- r = consumeToken(b, TAG_NAME);
- p = r; // pin = 1
- r = r && tag_other_1(b, l + 1);
- exit_section_(b, l, m, r, p, null);
- return r || p;
- }
-
- // comment_string?
- private static boolean tag_other_1(PsiBuilder b, int l) {
- if (!recursion_guard_(b, l, "tag_other_1")) return false;
- comment_string(b, l + 1);
- return true;
- }
-
- /* ********************************************************** */
- // TAG_NAME_OVERLOAD comment_string?
- public static boolean tag_overload(PsiBuilder b, int l) {
- if (!recursion_guard_(b, l, "tag_overload")) return false;
- if (!nextTokenIs(b, TAG_NAME_OVERLOAD)) return false;
- boolean r, p;
- Marker m = enter_section_(b, l, _NONE_, TAG_OVERLOAD, null);
- r = consumeToken(b, TAG_NAME_OVERLOAD);
- p = r; // pin = 1
- r = r && tag_overload_1(b, l + 1);
- exit_section_(b, l, m, r, p, null);
- return r || p;
- }
-
- // comment_string?
- private static boolean tag_overload_1(PsiBuilder b, int l) {
- if (!recursion_guard_(b, l, "tag_overload_1")) return false;
- comment_string(b, l + 1);
- return true;
- }
-
- /* ********************************************************** */
- // TAG_NAME_PARAM comment_string?
- public static boolean tag_param(PsiBuilder b, int l) {
- if (!recursion_guard_(b, l, "tag_param")) return false;
- if (!nextTokenIs(b, TAG_NAME_PARAM)) return false;
- boolean r, p;
- Marker m = enter_section_(b, l, _NONE_, TAG_PARAM, null);
- r = consumeToken(b, TAG_NAME_PARAM);
- p = r; // pin = 1
- r = r && tag_param_1(b, l + 1);
- exit_section_(b, l, m, r, p, null);
- return r || p;
- }
-
- // comment_string?
- private static boolean tag_param_1(PsiBuilder b, int l) {
- if (!recursion_guard_(b, l, "tag_param_1")) return false;
- comment_string(b, l + 1);
- return true;
- }
-
- /* ********************************************************** */
- // TAG_NAME_RETURN comment_string?
- public static boolean tag_return(PsiBuilder b, int l) {
- if (!recursion_guard_(b, l, "tag_return")) return false;
- if (!nextTokenIs(b, TAG_NAME_RETURN)) return false;
- boolean r, p;
- Marker m = enter_section_(b, l, _NONE_, TAG_RETURN, null);
- r = consumeToken(b, TAG_NAME_RETURN);
- p = r; // pin = 1
- r = r && tag_return_1(b, l + 1);
- exit_section_(b, l, m, r, p, null);
- return r || p;
- }
-
- // comment_string?
- private static boolean tag_return_1(PsiBuilder b, int l) {
- if (!recursion_guard_(b, l, "tag_return_1")) return false;
- comment_string(b, l + 1);
- return true;
- }
-
- /* ********************************************************** */
- // TAG_NAME_SEE comment_string?
- public static boolean tag_see(PsiBuilder b, int l) {
- if (!recursion_guard_(b, l, "tag_see")) return false;
- if (!nextTokenIs(b, TAG_NAME_SEE)) return false;
- boolean r, p;
- Marker m = enter_section_(b, l, _NONE_, TAG_SEE, null);
- r = consumeToken(b, TAG_NAME_SEE);
- p = r; // pin = 1
- r = r && tag_see_1(b, l + 1);
- exit_section_(b, l, m, r, p, null);
- return r || p;
- }
-
- // comment_string?
- private static boolean tag_see_1(PsiBuilder b, int l) {
- if (!recursion_guard_(b, l, "tag_see_1")) return false;
- comment_string(b, l + 1);
- return true;
- }
-
- /* ********************************************************** */
- // TAG_NAME_SUPPRESS comment_string?
- public static boolean tag_suppress(PsiBuilder b, int l) {
- if (!recursion_guard_(b, l, "tag_suppress")) return false;
- if (!nextTokenIs(b, TAG_NAME_SUPPRESS)) return false;
- boolean r, p;
- Marker m = enter_section_(b, l, _NONE_, TAG_SUPPRESS, null);
- r = consumeToken(b, TAG_NAME_SUPPRESS);
- p = r; // pin = 1
- r = r && tag_suppress_1(b, l + 1);
- exit_section_(b, l, m, r, p, null);
- return r || p;
- }
-
- // comment_string?
- private static boolean tag_suppress_1(PsiBuilder b, int l) {
- if (!recursion_guard_(b, l, "tag_suppress_1")) return false;
- comment_string(b, l + 1);
- return true;
- }
-
- /* ********************************************************** */
- // TAG_NAME_TYPE STRING?
- public static boolean tag_type(PsiBuilder b, int l) {
- if (!recursion_guard_(b, l, "tag_type")) return false;
- if (!nextTokenIs(b, TAG_NAME_TYPE)) return false;
- boolean r, p;
- Marker m = enter_section_(b, l, _NONE_, TAG_TYPE, null);
- r = consumeToken(b, TAG_NAME_TYPE);
- p = r; // pin = 1
- r = r && tag_type_1(b, l + 1);
- exit_section_(b, l, m, r, p, null);
- return r || p;
- }
-
- // STRING?
- private static boolean tag_type_1(PsiBuilder b, int l) {
- if (!recursion_guard_(b, l, "tag_type_1")) return false;
- consumeToken(b, STRING);
- return true;
- }
-
- /* ********************************************************** */
- // TAG_NAME_VARARG comment_string?
- public static boolean tag_vararg(PsiBuilder b, int l) {
- if (!recursion_guard_(b, l, "tag_vararg")) return false;
- if (!nextTokenIs(b, TAG_NAME_VARARG)) return false;
- boolean r, p;
- Marker m = enter_section_(b, l, _NONE_, TAG_VARARG, null);
- r = consumeToken(b, TAG_NAME_VARARG);
- p = r; // pin = 1
- r = r && tag_vararg_1(b, l + 1);
- exit_section_(b, l, m, r, p, null);
- return r || p;
- }
-
- // comment_string?
- private static boolean tag_vararg_1(PsiBuilder b, int l) {
- if (!recursion_guard_(b, l, "tag_vararg_1")) return false;
- comment_string(b, l + 1);
- return true;
- }
-
-}
diff --git a/gen/com/tang/intellij/lua/comment/psi/LuaDocTagAlias.java b/gen/com/tang/intellij/lua/comment/psi/LuaDocTagAlias.java
deleted file mode 100644
index 0dddead..0000000
--- a/gen/com/tang/intellij/lua/comment/psi/LuaDocTagAlias.java
+++ /dev/null
@@ -1,13 +0,0 @@
-// This is a generated file. Not intended for manual editing.
-package com.tang.intellij.lua.comment.psi;
-
-import java.util.List;
-import org.jetbrains.annotations.*;
-import com.intellij.psi.PsiElement;
-
-public interface LuaDocTagAlias extends LuaDocTag {
-
- @Nullable
- LuaDocCommentString getCommentString();
-
-}
diff --git a/gen/com/tang/intellij/lua/comment/psi/LuaDocTagClass.java b/gen/com/tang/intellij/lua/comment/psi/LuaDocTagClass.java
deleted file mode 100644
index e993956..0000000
--- a/gen/com/tang/intellij/lua/comment/psi/LuaDocTagClass.java
+++ /dev/null
@@ -1,13 +0,0 @@
-// This is a generated file. Not intended for manual editing.
-package com.tang.intellij.lua.comment.psi;
-
-import java.util.List;
-import org.jetbrains.annotations.*;
-import com.intellij.psi.PsiElement;
-
-public interface LuaDocTagClass extends LuaDocTag {
-
- @Nullable
- LuaDocCommentString getCommentString();
-
-}
diff --git a/gen/com/tang/intellij/lua/comment/psi/LuaDocTagDef.java b/gen/com/tang/intellij/lua/comment/psi/LuaDocTagDef.java
deleted file mode 100644
index 3cd7c52..0000000
--- a/gen/com/tang/intellij/lua/comment/psi/LuaDocTagDef.java
+++ /dev/null
@@ -1,16 +0,0 @@
-// This is a generated file. Not intended for manual editing.
-package com.tang.intellij.lua.comment.psi;
-
-import java.util.List;
-import org.jetbrains.annotations.*;
-import com.intellij.psi.PsiElement;
-
-public interface LuaDocTagDef extends LuaDocTag {
-
- @Nullable
- LuaDocCommentString getCommentString();
-
- @NotNull
- PsiElement getTagName();
-
-}
diff --git a/gen/com/tang/intellij/lua/comment/psi/LuaDocTagField.java b/gen/com/tang/intellij/lua/comment/psi/LuaDocTagField.java
deleted file mode 100644
index 3c7af99..0000000
--- a/gen/com/tang/intellij/lua/comment/psi/LuaDocTagField.java
+++ /dev/null
@@ -1,13 +0,0 @@
-// This is a generated file. Not intended for manual editing.
-package com.tang.intellij.lua.comment.psi;
-
-import java.util.List;
-import org.jetbrains.annotations.*;
-import com.intellij.psi.PsiElement;
-
-public interface LuaDocTagField extends LuaDocTag {
-
- @Nullable
- LuaDocCommentString getCommentString();
-
-}
diff --git a/gen/com/tang/intellij/lua/comment/psi/LuaDocTagGenericList.java b/gen/com/tang/intellij/lua/comment/psi/LuaDocTagGenericList.java
deleted file mode 100644
index e473f7b..0000000
--- a/gen/com/tang/intellij/lua/comment/psi/LuaDocTagGenericList.java
+++ /dev/null
@@ -1,13 +0,0 @@
-// This is a generated file. Not intended for manual editing.
-package com.tang.intellij.lua.comment.psi;
-
-import java.util.List;
-import org.jetbrains.annotations.*;
-import com.intellij.psi.PsiElement;
-
-public interface LuaDocTagGenericList extends LuaDocTag {
-
- @Nullable
- LuaDocCommentString getCommentString();
-
-}
diff --git a/gen/com/tang/intellij/lua/comment/psi/LuaDocTagOther.java b/gen/com/tang/intellij/lua/comment/psi/LuaDocTagOther.java
deleted file mode 100644
index 54eb550..0000000
--- a/gen/com/tang/intellij/lua/comment/psi/LuaDocTagOther.java
+++ /dev/null
@@ -1,13 +0,0 @@
-// This is a generated file. Not intended for manual editing.
-package com.tang.intellij.lua.comment.psi;
-
-import java.util.List;
-import org.jetbrains.annotations.*;
-import com.intellij.psi.PsiElement;
-
-public interface LuaDocTagOther extends LuaDocTag {
-
- @Nullable
- LuaDocCommentString getCommentString();
-
-}
diff --git a/gen/com/tang/intellij/lua/comment/psi/LuaDocTagOverload.java b/gen/com/tang/intellij/lua/comment/psi/LuaDocTagOverload.java
deleted file mode 100644
index a025546..0000000
--- a/gen/com/tang/intellij/lua/comment/psi/LuaDocTagOverload.java
+++ /dev/null
@@ -1,13 +0,0 @@
-// This is a generated file. Not intended for manual editing.
-package com.tang.intellij.lua.comment.psi;
-
-import java.util.List;
-import org.jetbrains.annotations.*;
-import com.intellij.psi.PsiElement;
-
-public interface LuaDocTagOverload extends LuaDocTag {
-
- @Nullable
- LuaDocCommentString getCommentString();
-
-}
diff --git a/gen/com/tang/intellij/lua/comment/psi/LuaDocTagParam.java b/gen/com/tang/intellij/lua/comment/psi/LuaDocTagParam.java
deleted file mode 100644
index edb28eb..0000000
--- a/gen/com/tang/intellij/lua/comment/psi/LuaDocTagParam.java
+++ /dev/null
@@ -1,13 +0,0 @@
-// This is a generated file. Not intended for manual editing.
-package com.tang.intellij.lua.comment.psi;
-
-import java.util.List;
-import org.jetbrains.annotations.*;
-import com.intellij.psi.PsiElement;
-
-public interface LuaDocTagParam extends LuaDocTag {
-
- @Nullable
- LuaDocCommentString getCommentString();
-
-}
diff --git a/gen/com/tang/intellij/lua/comment/psi/LuaDocTagReturn.java b/gen/com/tang/intellij/lua/comment/psi/LuaDocTagReturn.java
deleted file mode 100644
index 78c371b..0000000
--- a/gen/com/tang/intellij/lua/comment/psi/LuaDocTagReturn.java
+++ /dev/null
@@ -1,13 +0,0 @@
-// This is a generated file. Not intended for manual editing.
-package com.tang.intellij.lua.comment.psi;
-
-import java.util.List;
-import org.jetbrains.annotations.*;
-import com.intellij.psi.PsiElement;
-
-public interface LuaDocTagReturn extends LuaDocTag {
-
- @Nullable
- LuaDocCommentString getCommentString();
-
-}
diff --git a/gen/com/tang/intellij/lua/comment/psi/LuaDocTagSee.java b/gen/com/tang/intellij/lua/comment/psi/LuaDocTagSee.java
deleted file mode 100644
index 09d3ddc..0000000
--- a/gen/com/tang/intellij/lua/comment/psi/LuaDocTagSee.java
+++ /dev/null
@@ -1,13 +0,0 @@
-// This is a generated file. Not intended for manual editing.
-package com.tang.intellij.lua.comment.psi;
-
-import java.util.List;
-import org.jetbrains.annotations.*;
-import com.intellij.psi.PsiElement;
-
-public interface LuaDocTagSee extends LuaDocTag {
-
- @Nullable
- LuaDocCommentString getCommentString();
-
-}
diff --git a/gen/com/tang/intellij/lua/comment/psi/LuaDocTagSuppress.java b/gen/com/tang/intellij/lua/comment/psi/LuaDocTagSuppress.java
deleted file mode 100644
index d2d13e0..0000000
--- a/gen/com/tang/intellij/lua/comment/psi/LuaDocTagSuppress.java
+++ /dev/null
@@ -1,13 +0,0 @@
-// This is a generated file. Not intended for manual editing.
-package com.tang.intellij.lua.comment.psi;
-
-import java.util.List;
-import org.jetbrains.annotations.*;
-import com.intellij.psi.PsiElement;
-
-public interface LuaDocTagSuppress extends LuaDocTag {
-
- @Nullable
- LuaDocCommentString getCommentString();
-
-}
diff --git a/gen/com/tang/intellij/lua/comment/psi/LuaDocTagType.java b/gen/com/tang/intellij/lua/comment/psi/LuaDocTagType.java
deleted file mode 100644
index 65c8fa6..0000000
--- a/gen/com/tang/intellij/lua/comment/psi/LuaDocTagType.java
+++ /dev/null
@@ -1,10 +0,0 @@
-// This is a generated file. Not intended for manual editing.
-package com.tang.intellij.lua.comment.psi;
-
-import java.util.List;
-import org.jetbrains.annotations.*;
-import com.intellij.psi.PsiElement;
-
-public interface LuaDocTagType extends LuaDocTag {
-
-}
diff --git a/gen/com/tang/intellij/lua/comment/psi/LuaDocTagVararg.java b/gen/com/tang/intellij/lua/comment/psi/LuaDocTagVararg.java
deleted file mode 100644
index 7468671..0000000
--- a/gen/com/tang/intellij/lua/comment/psi/LuaDocTagVararg.java
+++ /dev/null
@@ -1,13 +0,0 @@
-// This is a generated file. Not intended for manual editing.
-package com.tang.intellij.lua.comment.psi;
-
-import java.util.List;
-import org.jetbrains.annotations.*;
-import com.intellij.psi.PsiElement;
-
-public interface LuaDocTagVararg extends LuaDocTag {
-
- @Nullable
- LuaDocCommentString getCommentString();
-
-}
diff --git a/gen/com/tang/intellij/lua/comment/psi/LuaDocTypes.java b/gen/com/tang/intellij/lua/comment/psi/LuaDocTypes.java
deleted file mode 100644
index 8f4d2e1..0000000
--- a/gen/com/tang/intellij/lua/comment/psi/LuaDocTypes.java
+++ /dev/null
@@ -1,121 +0,0 @@
-// This is a generated file. Not intended for manual editing.
-package com.tang.intellij.lua.comment.psi;
-
-import com.intellij.psi.tree.IElementType;
-import com.intellij.psi.PsiElement;
-import com.intellij.lang.ASTNode;
-import com.tang.intellij.lua.lang.LuaParserDefinitionKt;
-import com.tang.intellij.lua.comment.psi.impl.*;
-
-public interface LuaDocTypes {
-
- IElementType ACCESS_MODIFIER = LuaParserDefinitionKt.createDocType("ACCESS_MODIFIER");
- IElementType COMMENT_STRING = LuaParserDefinitionKt.createDocType("COMMENT_STRING");
- IElementType TAG_ALIAS = LuaParserDefinitionKt.createDocType("TAG_ALIAS");
- IElementType TAG_CLASS = LuaParserDefinitionKt.createDocType("TAG_CLASS");
- IElementType TAG_DEF = LuaParserDefinitionKt.createDocType("TAG_DEF");
- IElementType TAG_FIELD = LuaParserDefinitionKt.createDocType("TAG_FIELD");
- IElementType TAG_GENERIC_LIST = LuaParserDefinitionKt.createDocType("TAG_GENERIC_LIST");
- IElementType TAG_LAN = LuaParserDefinitionKt.createDocType("TAG_LAN");
- IElementType TAG_OTHER = LuaParserDefinitionKt.createDocType("TAG_OTHER");
- IElementType TAG_OVERLOAD = LuaParserDefinitionKt.createDocType("TAG_OVERLOAD");
- IElementType TAG_PARAM = LuaParserDefinitionKt.createDocType("TAG_PARAM");
- IElementType TAG_RETURN = LuaParserDefinitionKt.createDocType("TAG_RETURN");
- IElementType TAG_SEE = LuaParserDefinitionKt.createDocType("TAG_SEE");
- IElementType TAG_SUPPRESS = LuaParserDefinitionKt.createDocType("TAG_SUPPRESS");
- IElementType TAG_TYPE = LuaParserDefinitionKt.createDocType("TAG_TYPE");
- IElementType TAG_VARARG = LuaParserDefinitionKt.createDocType("TAG_VARARG");
-
- IElementType AT = new LuaDocTokenType("@");
- IElementType COMMA = new LuaDocTokenType(",");
- IElementType DASHES = new LuaDocTokenType("DASHES");
- IElementType EQ = new LuaDocTokenType("=");
- IElementType EXTENDS = new LuaDocTokenType(":");
- IElementType GT = new LuaDocTokenType(">");
- IElementType ID = new LuaDocTokenType("ID");
- IElementType LCURLY = new LuaDocTokenType("{");
- IElementType LPAREN = new LuaDocTokenType("(");
- IElementType LT = new LuaDocTokenType("<");
- IElementType OR = new LuaDocTokenType("|");
- IElementType PRIVATE = new LuaDocTokenType("PRIVATE");
- IElementType PROTECTED = new LuaDocTokenType("PROTECTED");
- IElementType PUBLIC = new LuaDocTokenType("PUBLIC");
- IElementType RCURLY = new LuaDocTokenType("}");
- IElementType RPAREN = new LuaDocTokenType(")");
- IElementType STRING = new LuaDocTokenType("STRING");
- IElementType STRING_BEGIN = new LuaDocTokenType("STRING_BEGIN");
- IElementType STRING_LITERAL = new LuaDocTokenType("STRING_LITERAL");
- IElementType TAG_NAME = new LuaDocTokenType("TAG_NAME");
- IElementType TAG_NAME_ALIAS = new LuaDocTokenType("alias");
- IElementType TAG_NAME_CLASS = new LuaDocTokenType("class");
- IElementType TAG_NAME_FIELD = new LuaDocTokenType("field");
- IElementType TAG_NAME_GENERIC = new LuaDocTokenType("generic");
- IElementType TAG_NAME_LANGUAGE = new LuaDocTokenType("language");
- IElementType TAG_NAME_MODULE = new LuaDocTokenType("module");
- IElementType TAG_NAME_NAME = new LuaDocTokenType("TAG_NAME_NAME");
- IElementType TAG_NAME_OVERLOAD = new LuaDocTokenType("overload");
- IElementType TAG_NAME_PARAM = new LuaDocTokenType("param");
- IElementType TAG_NAME_PRIVATE = new LuaDocTokenType("private");
- IElementType TAG_NAME_PROTECTED = new LuaDocTokenType("protected");
- IElementType TAG_NAME_PUBLIC = new LuaDocTokenType("public");
- IElementType TAG_NAME_RETURN = new LuaDocTokenType("return");
- IElementType TAG_NAME_SEE = new LuaDocTokenType("see");
- IElementType TAG_NAME_SUPPRESS = new LuaDocTokenType("suppress");
- IElementType TAG_NAME_TYPE = new LuaDocTokenType("type");
- IElementType TAG_NAME_VARARG = new LuaDocTokenType("vararg");
-
- class Factory {
- public static PsiElement createElement(ASTNode node) {
- IElementType type = node.getElementType();
- if (type == ACCESS_MODIFIER) {
- return new LuaDocAccessModifierImpl(node);
- }
- else if (type == COMMENT_STRING) {
- return new LuaDocCommentStringImpl(node);
- }
- else if (type == TAG_ALIAS) {
- return new LuaDocTagAliasImpl(node);
- }
- else if (type == TAG_CLASS) {
- return new LuaDocTagClassImpl(node);
- }
- else if (type == TAG_DEF) {
- return new LuaDocTagDefImpl(node);
- }
- else if (type == TAG_FIELD) {
- return new LuaDocTagFieldImpl(node);
- }
- else if (type == TAG_GENERIC_LIST) {
- return new LuaDocTagGenericListImpl(node);
- }
- else if (type == TAG_LAN) {
- return new LuaDocTagLanImpl(node);
- }
- else if (type == TAG_OTHER) {
- return new LuaDocTagOtherImpl(node);
- }
- else if (type == TAG_OVERLOAD) {
- return new LuaDocTagOverloadImpl(node);
- }
- else if (type == TAG_PARAM) {
- return new LuaDocTagParamImpl(node);
- }
- else if (type == TAG_RETURN) {
- return new LuaDocTagReturnImpl(node);
- }
- else if (type == TAG_SEE) {
- return new LuaDocTagSeeImpl(node);
- }
- else if (type == TAG_SUPPRESS) {
- return new LuaDocTagSuppressImpl(node);
- }
- else if (type == TAG_TYPE) {
- return new LuaDocTagTypeImpl(node);
- }
- else if (type == TAG_VARARG) {
- return new LuaDocTagVarargImpl(node);
- }
- throw new AssertionError("Unknown element type: " + type);
- }
- }
-}
diff --git a/gen/com/tang/intellij/lua/comment/psi/LuaDocVisitor.java b/gen/com/tang/intellij/lua/comment/psi/LuaDocVisitor.java
deleted file mode 100644
index 84965c2..0000000
--- a/gen/com/tang/intellij/lua/comment/psi/LuaDocVisitor.java
+++ /dev/null
@@ -1,81 +0,0 @@
-// This is a generated file. Not intended for manual editing.
-package com.tang.intellij.lua.comment.psi;
-
-import org.jetbrains.annotations.*;
-import com.intellij.psi.PsiElementVisitor;
-
-public class LuaDocVisitor extends PsiElementVisitor {
-
- public void visitAccessModifier(@NotNull LuaDocAccessModifier o) {
- visitPsiElement(o);
- }
-
- public void visitCommentString(@NotNull LuaDocCommentString o) {
- visitPsiElement(o);
- }
-
- public void visitTagAlias(@NotNull LuaDocTagAlias o) {
- visitTag(o);
- }
-
- public void visitTagClass(@NotNull LuaDocTagClass o) {
- visitTag(o);
- }
-
- public void visitTagDef(@NotNull LuaDocTagDef o) {
- visitTag(o);
- }
-
- public void visitTagField(@NotNull LuaDocTagField o) {
- visitTag(o);
- }
-
- public void visitTagGenericList(@NotNull LuaDocTagGenericList o) {
- visitTag(o);
- }
-
- public void visitTagLan(@NotNull LuaDocTagLan o) {
- visitTag(o);
- }
-
- public void visitTagOther(@NotNull LuaDocTagOther o) {
- visitTag(o);
- }
-
- public void visitTagOverload(@NotNull LuaDocTagOverload o) {
- visitTag(o);
- }
-
- public void visitTagParam(@NotNull LuaDocTagParam o) {
- visitTag(o);
- }
-
- public void visitTagReturn(@NotNull LuaDocTagReturn o) {
- visitTag(o);
- }
-
- public void visitTagSee(@NotNull LuaDocTagSee o) {
- visitTag(o);
- }
-
- public void visitTagSuppress(@NotNull LuaDocTagSuppress o) {
- visitTag(o);
- }
-
- public void visitTagType(@NotNull LuaDocTagType o) {
- visitTag(o);
- }
-
- public void visitTagVararg(@NotNull LuaDocTagVararg o) {
- visitTag(o);
- }
-
- public void visitTag(@NotNull LuaDocTag o) {
- visitPsiElement(o);
- }
-
- public void visitPsiElement(@NotNull LuaDocPsiElement o) {
- visitElement(o);
- }
-
-}
diff --git a/gen/com/tang/intellij/lua/comment/psi/impl/LuaDocAccessModifierImpl.java b/gen/com/tang/intellij/lua/comment/psi/impl/LuaDocAccessModifierImpl.java
deleted file mode 100644
index 29655e0..0000000
--- a/gen/com/tang/intellij/lua/comment/psi/impl/LuaDocAccessModifierImpl.java
+++ /dev/null
@@ -1,30 +0,0 @@
-// This is a generated file. Not intended for manual editing.
-package com.tang.intellij.lua.comment.psi.impl;
-
-import java.util.List;
-import org.jetbrains.annotations.*;
-import com.intellij.lang.ASTNode;
-import com.intellij.psi.PsiElement;
-import com.intellij.psi.PsiElementVisitor;
-import com.intellij.psi.util.PsiTreeUtil;
-import static com.tang.intellij.lua.comment.psi.LuaDocTypes.*;
-import com.intellij.extapi.psi.ASTWrapperPsiElement;
-import com.tang.intellij.lua.comment.psi.*;
-
-public class LuaDocAccessModifierImpl extends ASTWrapperPsiElement implements LuaDocAccessModifier {
-
- public LuaDocAccessModifierImpl(@NotNull ASTNode node) {
- super(node);
- }
-
- public void accept(@NotNull LuaDocVisitor visitor) {
- visitor.visitAccessModifier(this);
- }
-
- @Override
- public void accept(@NotNull PsiElementVisitor visitor) {
- if (visitor instanceof LuaDocVisitor) accept((LuaDocVisitor)visitor);
- else super.accept(visitor);
- }
-
-}
diff --git a/gen/com/tang/intellij/lua/comment/psi/impl/LuaDocCommentStringImpl.java b/gen/com/tang/intellij/lua/comment/psi/impl/LuaDocCommentStringImpl.java
deleted file mode 100644
index cc51ebf..0000000
--- a/gen/com/tang/intellij/lua/comment/psi/impl/LuaDocCommentStringImpl.java
+++ /dev/null
@@ -1,36 +0,0 @@
-// This is a generated file. Not intended for manual editing.
-package com.tang.intellij.lua.comment.psi.impl;
-
-import java.util.List;
-import org.jetbrains.annotations.*;
-import com.intellij.lang.ASTNode;
-import com.intellij.psi.PsiElement;
-import com.intellij.psi.PsiElementVisitor;
-import com.intellij.psi.util.PsiTreeUtil;
-import static com.tang.intellij.lua.comment.psi.LuaDocTypes.*;
-import com.intellij.extapi.psi.ASTWrapperPsiElement;
-import com.tang.intellij.lua.comment.psi.*;
-
-public class LuaDocCommentStringImpl extends ASTWrapperPsiElement implements LuaDocCommentString {
-
- public LuaDocCommentStringImpl(@NotNull ASTNode node) {
- super(node);
- }
-
- public void accept(@NotNull LuaDocVisitor visitor) {
- visitor.visitCommentString(this);
- }
-
- @Override
- public void accept(@NotNull PsiElementVisitor visitor) {
- if (visitor instanceof LuaDocVisitor) accept((LuaDocVisitor)visitor);
- else super.accept(visitor);
- }
-
- @Override
- @Nullable
- public PsiElement getString() {
- return findChildByType(STRING);
- }
-
-}
diff --git a/gen/com/tang/intellij/lua/comment/psi/impl/LuaDocTagDefImpl.java b/gen/com/tang/intellij/lua/comment/psi/impl/LuaDocTagDefImpl.java
deleted file mode 100644
index 9936e9c..0000000
--- a/gen/com/tang/intellij/lua/comment/psi/impl/LuaDocTagDefImpl.java
+++ /dev/null
@@ -1,42 +0,0 @@
-// This is a generated file. Not intended for manual editing.
-package com.tang.intellij.lua.comment.psi.impl;
-
-import java.util.List;
-import org.jetbrains.annotations.*;
-import com.intellij.lang.ASTNode;
-import com.intellij.psi.PsiElement;
-import com.intellij.psi.PsiElementVisitor;
-import com.intellij.psi.util.PsiTreeUtil;
-import static com.tang.intellij.lua.comment.psi.LuaDocTypes.*;
-import com.intellij.extapi.psi.ASTWrapperPsiElement;
-import com.tang.intellij.lua.comment.psi.*;
-
-public class LuaDocTagDefImpl extends ASTWrapperPsiElement implements LuaDocTagDef {
-
- public LuaDocTagDefImpl(@NotNull ASTNode node) {
- super(node);
- }
-
- public void accept(@NotNull LuaDocVisitor visitor) {
- visitor.visitTagDef(this);
- }
-
- @Override
- public void accept(@NotNull PsiElementVisitor visitor) {
- if (visitor instanceof LuaDocVisitor) accept((LuaDocVisitor)visitor);
- else super.accept(visitor);
- }
-
- @Override
- @Nullable
- public LuaDocCommentString getCommentString() {
- return findChildByClass(LuaDocCommentString.class);
- }
-
- @Override
- @NotNull
- public PsiElement getTagName() {
- return findNotNullChildByType(TAG_NAME_NAME);
- }
-
-}
diff --git a/gen/com/tang/intellij/lua/comment/psi/impl/LuaDocTagFieldImpl.java b/gen/com/tang/intellij/lua/comment/psi/impl/LuaDocTagFieldImpl.java
deleted file mode 100644
index b301e67..0000000
--- a/gen/com/tang/intellij/lua/comment/psi/impl/LuaDocTagFieldImpl.java
+++ /dev/null
@@ -1,36 +0,0 @@
-// This is a generated file. Not intended for manual editing.
-package com.tang.intellij.lua.comment.psi.impl;
-
-import java.util.List;
-import org.jetbrains.annotations.*;
-import com.intellij.lang.ASTNode;
-import com.intellij.psi.PsiElement;
-import com.intellij.psi.PsiElementVisitor;
-import com.intellij.psi.util.PsiTreeUtil;
-import static com.tang.intellij.lua.comment.psi.LuaDocTypes.*;
-import com.intellij.extapi.psi.ASTWrapperPsiElement;
-import com.tang.intellij.lua.comment.psi.*;
-
-public class LuaDocTagFieldImpl extends ASTWrapperPsiElement implements LuaDocTagField {
-
- public LuaDocTagFieldImpl(@NotNull ASTNode node) {
- super(node);
- }
-
- public void accept(@NotNull LuaDocVisitor visitor) {
- visitor.visitTagField(this);
- }
-
- @Override
- public void accept(@NotNull PsiElementVisitor visitor) {
- if (visitor instanceof LuaDocVisitor) accept((LuaDocVisitor)visitor);
- else super.accept(visitor);
- }
-
- @Override
- @Nullable
- public LuaDocCommentString getCommentString() {
- return findChildByClass(LuaDocCommentString.class);
- }
-
-}
diff --git a/gen/com/tang/intellij/lua/comment/psi/impl/LuaDocTagGenericListImpl.java b/gen/com/tang/intellij/lua/comment/psi/impl/LuaDocTagGenericListImpl.java
deleted file mode 100644
index 8e563a6..0000000
--- a/gen/com/tang/intellij/lua/comment/psi/impl/LuaDocTagGenericListImpl.java
+++ /dev/null
@@ -1,36 +0,0 @@
-// This is a generated file. Not intended for manual editing.
-package com.tang.intellij.lua.comment.psi.impl;
-
-import java.util.List;
-import org.jetbrains.annotations.*;
-import com.intellij.lang.ASTNode;
-import com.intellij.psi.PsiElement;
-import com.intellij.psi.PsiElementVisitor;
-import com.intellij.psi.util.PsiTreeUtil;
-import static com.tang.intellij.lua.comment.psi.LuaDocTypes.*;
-import com.intellij.extapi.psi.ASTWrapperPsiElement;
-import com.tang.intellij.lua.comment.psi.*;
-
-public class LuaDocTagGenericListImpl extends ASTWrapperPsiElement implements LuaDocTagGenericList {
-
- public LuaDocTagGenericListImpl(@NotNull ASTNode node) {
- super(node);
- }
-
- public void accept(@NotNull LuaDocVisitor visitor) {
- visitor.visitTagGenericList(this);
- }
-
- @Override
- public void accept(@NotNull PsiElementVisitor visitor) {
- if (visitor instanceof LuaDocVisitor) accept((LuaDocVisitor)visitor);
- else super.accept(visitor);
- }
-
- @Override
- @Nullable
- public LuaDocCommentString getCommentString() {
- return findChildByClass(LuaDocCommentString.class);
- }
-
-}
diff --git a/gen/com/tang/intellij/lua/comment/psi/impl/LuaDocTagOtherImpl.java b/gen/com/tang/intellij/lua/comment/psi/impl/LuaDocTagOtherImpl.java
deleted file mode 100644
index 73fd40c..0000000
--- a/gen/com/tang/intellij/lua/comment/psi/impl/LuaDocTagOtherImpl.java
+++ /dev/null
@@ -1,36 +0,0 @@
-// This is a generated file. Not intended for manual editing.
-package com.tang.intellij.lua.comment.psi.impl;
-
-import java.util.List;
-import org.jetbrains.annotations.*;
-import com.intellij.lang.ASTNode;
-import com.intellij.psi.PsiElement;
-import com.intellij.psi.PsiElementVisitor;
-import com.intellij.psi.util.PsiTreeUtil;
-import static com.tang.intellij.lua.comment.psi.LuaDocTypes.*;
-import com.intellij.extapi.psi.ASTWrapperPsiElement;
-import com.tang.intellij.lua.comment.psi.*;
-
-public class LuaDocTagOtherImpl extends ASTWrapperPsiElement implements LuaDocTagOther {
-
- public LuaDocTagOtherImpl(@NotNull ASTNode node) {
- super(node);
- }
-
- public void accept(@NotNull LuaDocVisitor visitor) {
- visitor.visitTagOther(this);
- }
-
- @Override
- public void accept(@NotNull PsiElementVisitor visitor) {
- if (visitor instanceof LuaDocVisitor) accept((LuaDocVisitor)visitor);
- else super.accept(visitor);
- }
-
- @Override
- @Nullable
- public LuaDocCommentString getCommentString() {
- return findChildByClass(LuaDocCommentString.class);
- }
-
-}
diff --git a/gen/com/tang/intellij/lua/comment/psi/impl/LuaDocTagOverloadImpl.java b/gen/com/tang/intellij/lua/comment/psi/impl/LuaDocTagOverloadImpl.java
deleted file mode 100644
index be09358..0000000
--- a/gen/com/tang/intellij/lua/comment/psi/impl/LuaDocTagOverloadImpl.java
+++ /dev/null
@@ -1,36 +0,0 @@
-// This is a generated file. Not intended for manual editing.
-package com.tang.intellij.lua.comment.psi.impl;
-
-import java.util.List;
-import org.jetbrains.annotations.*;
-import com.intellij.lang.ASTNode;
-import com.intellij.psi.PsiElement;
-import com.intellij.psi.PsiElementVisitor;
-import com.intellij.psi.util.PsiTreeUtil;
-import static com.tang.intellij.lua.comment.psi.LuaDocTypes.*;
-import com.intellij.extapi.psi.ASTWrapperPsiElement;
-import com.tang.intellij.lua.comment.psi.*;
-
-public class LuaDocTagOverloadImpl extends ASTWrapperPsiElement implements LuaDocTagOverload {
-
- public LuaDocTagOverloadImpl(@NotNull ASTNode node) {
- super(node);
- }
-
- public void accept(@NotNull LuaDocVisitor visitor) {
- visitor.visitTagOverload(this);
- }
-
- @Override
- public void accept(@NotNull PsiElementVisitor visitor) {
- if (visitor instanceof LuaDocVisitor) accept((LuaDocVisitor)visitor);
- else super.accept(visitor);
- }
-
- @Override
- @Nullable
- public LuaDocCommentString getCommentString() {
- return findChildByClass(LuaDocCommentString.class);
- }
-
-}
diff --git a/gen/com/tang/intellij/lua/comment/psi/impl/LuaDocTagParamImpl.java b/gen/com/tang/intellij/lua/comment/psi/impl/LuaDocTagParamImpl.java
deleted file mode 100644
index 5b177e6..0000000
--- a/gen/com/tang/intellij/lua/comment/psi/impl/LuaDocTagParamImpl.java
+++ /dev/null
@@ -1,36 +0,0 @@
-// This is a generated file. Not intended for manual editing.
-package com.tang.intellij.lua.comment.psi.impl;
-
-import java.util.List;
-import org.jetbrains.annotations.*;
-import com.intellij.lang.ASTNode;
-import com.intellij.psi.PsiElement;
-import com.intellij.psi.PsiElementVisitor;
-import com.intellij.psi.util.PsiTreeUtil;
-import static com.tang.intellij.lua.comment.psi.LuaDocTypes.*;
-import com.intellij.extapi.psi.ASTWrapperPsiElement;
-import com.tang.intellij.lua.comment.psi.*;
-
-public class LuaDocTagParamImpl extends ASTWrapperPsiElement implements LuaDocTagParam {
-
- public LuaDocTagParamImpl(@NotNull ASTNode node) {
- super(node);
- }
-
- public void accept(@NotNull LuaDocVisitor visitor) {
- visitor.visitTagParam(this);
- }
-
- @Override
- public void accept(@NotNull PsiElementVisitor visitor) {
- if (visitor instanceof LuaDocVisitor) accept((LuaDocVisitor)visitor);
- else super.accept(visitor);
- }
-
- @Override
- @Nullable
- public LuaDocCommentString getCommentString() {
- return findChildByClass(LuaDocCommentString.class);
- }
-
-}
diff --git a/gen/com/tang/intellij/lua/comment/psi/impl/LuaDocTagReturnImpl.java b/gen/com/tang/intellij/lua/comment/psi/impl/LuaDocTagReturnImpl.java
deleted file mode 100644
index 4ff1c18..0000000
--- a/gen/com/tang/intellij/lua/comment/psi/impl/LuaDocTagReturnImpl.java
+++ /dev/null
@@ -1,36 +0,0 @@
-// This is a generated file. Not intended for manual editing.
-package com.tang.intellij.lua.comment.psi.impl;
-
-import java.util.List;
-import org.jetbrains.annotations.*;
-import com.intellij.lang.ASTNode;
-import com.intellij.psi.PsiElement;
-import com.intellij.psi.PsiElementVisitor;
-import com.intellij.psi.util.PsiTreeUtil;
-import static com.tang.intellij.lua.comment.psi.LuaDocTypes.*;
-import com.intellij.extapi.psi.ASTWrapperPsiElement;
-import com.tang.intellij.lua.comment.psi.*;
-
-public class LuaDocTagReturnImpl extends ASTWrapperPsiElement implements LuaDocTagReturn {
-
- public LuaDocTagReturnImpl(@NotNull ASTNode node) {
- super(node);
- }
-
- public void accept(@NotNull LuaDocVisitor visitor) {
- visitor.visitTagReturn(this);
- }
-
- @Override
- public void accept(@NotNull PsiElementVisitor visitor) {
- if (visitor instanceof LuaDocVisitor) accept((LuaDocVisitor)visitor);
- else super.accept(visitor);
- }
-
- @Override
- @Nullable
- public LuaDocCommentString getCommentString() {
- return findChildByClass(LuaDocCommentString.class);
- }
-
-}
diff --git a/gen/com/tang/intellij/lua/comment/psi/impl/LuaDocTagSeeImpl.java b/gen/com/tang/intellij/lua/comment/psi/impl/LuaDocTagSeeImpl.java
deleted file mode 100644
index f160263..0000000
--- a/gen/com/tang/intellij/lua/comment/psi/impl/LuaDocTagSeeImpl.java
+++ /dev/null
@@ -1,36 +0,0 @@
-// This is a generated file. Not intended for manual editing.
-package com.tang.intellij.lua.comment.psi.impl;
-
-import java.util.List;
-import org.jetbrains.annotations.*;
-import com.intellij.lang.ASTNode;
-import com.intellij.psi.PsiElement;
-import com.intellij.psi.PsiElementVisitor;
-import com.intellij.psi.util.PsiTreeUtil;
-import static com.tang.intellij.lua.comment.psi.LuaDocTypes.*;
-import com.intellij.extapi.psi.ASTWrapperPsiElement;
-import com.tang.intellij.lua.comment.psi.*;
-
-public class LuaDocTagSeeImpl extends ASTWrapperPsiElement implements LuaDocTagSee {
-
- public LuaDocTagSeeImpl(@NotNull ASTNode node) {
- super(node);
- }
-
- public void accept(@NotNull LuaDocVisitor visitor) {
- visitor.visitTagSee(this);
- }
-
- @Override
- public void accept(@NotNull PsiElementVisitor visitor) {
- if (visitor instanceof LuaDocVisitor) accept((LuaDocVisitor)visitor);
- else super.accept(visitor);
- }
-
- @Override
- @Nullable
- public LuaDocCommentString getCommentString() {
- return findChildByClass(LuaDocCommentString.class);
- }
-
-}
diff --git a/gen/com/tang/intellij/lua/comment/psi/impl/LuaDocTagSuppressImpl.java b/gen/com/tang/intellij/lua/comment/psi/impl/LuaDocTagSuppressImpl.java
deleted file mode 100644
index 9a91b03..0000000
--- a/gen/com/tang/intellij/lua/comment/psi/impl/LuaDocTagSuppressImpl.java
+++ /dev/null
@@ -1,36 +0,0 @@
-// This is a generated file. Not intended for manual editing.
-package com.tang.intellij.lua.comment.psi.impl;
-
-import java.util.List;
-import org.jetbrains.annotations.*;
-import com.intellij.lang.ASTNode;
-import com.intellij.psi.PsiElement;
-import com.intellij.psi.PsiElementVisitor;
-import com.intellij.psi.util.PsiTreeUtil;
-import static com.tang.intellij.lua.comment.psi.LuaDocTypes.*;
-import com.intellij.extapi.psi.ASTWrapperPsiElement;
-import com.tang.intellij.lua.comment.psi.*;
-
-public class LuaDocTagSuppressImpl extends ASTWrapperPsiElement implements LuaDocTagSuppress {
-
- public LuaDocTagSuppressImpl(@NotNull ASTNode node) {
- super(node);
- }
-
- public void accept(@NotNull LuaDocVisitor visitor) {
- visitor.visitTagSuppress(this);
- }
-
- @Override
- public void accept(@NotNull PsiElementVisitor visitor) {
- if (visitor instanceof LuaDocVisitor) accept((LuaDocVisitor)visitor);
- else super.accept(visitor);
- }
-
- @Override
- @Nullable
- public LuaDocCommentString getCommentString() {
- return findChildByClass(LuaDocCommentString.class);
- }
-
-}
diff --git a/gen/com/tang/intellij/lua/comment/psi/impl/LuaDocTagTypeImpl.java b/gen/com/tang/intellij/lua/comment/psi/impl/LuaDocTagTypeImpl.java
deleted file mode 100644
index cc4c348..0000000
--- a/gen/com/tang/intellij/lua/comment/psi/impl/LuaDocTagTypeImpl.java
+++ /dev/null
@@ -1,30 +0,0 @@
-// This is a generated file. Not intended for manual editing.
-package com.tang.intellij.lua.comment.psi.impl;
-
-import java.util.List;
-import org.jetbrains.annotations.*;
-import com.intellij.lang.ASTNode;
-import com.intellij.psi.PsiElement;
-import com.intellij.psi.PsiElementVisitor;
-import com.intellij.psi.util.PsiTreeUtil;
-import static com.tang.intellij.lua.comment.psi.LuaDocTypes.*;
-import com.intellij.extapi.psi.ASTWrapperPsiElement;
-import com.tang.intellij.lua.comment.psi.*;
-
-public class LuaDocTagTypeImpl extends ASTWrapperPsiElement implements LuaDocTagType {
-
- public LuaDocTagTypeImpl(@NotNull ASTNode node) {
- super(node);
- }
-
- public void accept(@NotNull LuaDocVisitor visitor) {
- visitor.visitTagType(this);
- }
-
- @Override
- public void accept(@NotNull PsiElementVisitor visitor) {
- if (visitor instanceof LuaDocVisitor) accept((LuaDocVisitor)visitor);
- else super.accept(visitor);
- }
-
-}
diff --git a/gen/com/tang/intellij/lua/comment/psi/impl/LuaDocTagVarargImpl.java b/gen/com/tang/intellij/lua/comment/psi/impl/LuaDocTagVarargImpl.java
deleted file mode 100644
index 8b557a2..0000000
--- a/gen/com/tang/intellij/lua/comment/psi/impl/LuaDocTagVarargImpl.java
+++ /dev/null
@@ -1,36 +0,0 @@
-// This is a generated file. Not intended for manual editing.
-package com.tang.intellij.lua.comment.psi.impl;
-
-import java.util.List;
-import org.jetbrains.annotations.*;
-import com.intellij.lang.ASTNode;
-import com.intellij.psi.PsiElement;
-import com.intellij.psi.PsiElementVisitor;
-import com.intellij.psi.util.PsiTreeUtil;
-import static com.tang.intellij.lua.comment.psi.LuaDocTypes.*;
-import com.intellij.extapi.psi.ASTWrapperPsiElement;
-import com.tang.intellij.lua.comment.psi.*;
-
-public class LuaDocTagVarargImpl extends ASTWrapperPsiElement implements LuaDocTagVararg {
-
- public LuaDocTagVarargImpl(@NotNull ASTNode node) {
- super(node);
- }
-
- public void accept(@NotNull LuaDocVisitor visitor) {
- visitor.visitTagVararg(this);
- }
-
- @Override
- public void accept(@NotNull PsiElementVisitor visitor) {
- if (visitor instanceof LuaDocVisitor) accept((LuaDocVisitor)visitor);
- else super.accept(visitor);
- }
-
- @Override
- @Nullable
- public LuaDocCommentString getCommentString() {
- return findChildByClass(LuaDocCommentString.class);
- }
-
-}
diff --git a/gen/com/tang/intellij/lua/lexer/LuaLexer.java b/gen/com/tang/intellij/lua/lexer/LuaLexer.java
deleted file mode 100644
index c4b1e4d..0000000
--- a/gen/com/tang/intellij/lua/lexer/LuaLexer.java
+++ /dev/null
@@ -1,26 +0,0 @@
-/*
- * Copyright (c) 2017. tangzx(love.tangzx@qq.com)
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package com.tang.intellij.lua.lexer;
-
-import com.intellij.lexer.FlexAdapter;
-import com.tang.intellij.lua.lang.LuaLanguageLevel;
-
-public class LuaLexer extends FlexAdapter {
- public LuaLexer(LuaLanguageLevel level) {
- super(new _LuaLexer(level));
- }
-}
diff --git a/gen/com/tang/intellij/lua/lexer/LuaRegionLexer.java b/gen/com/tang/intellij/lua/lexer/LuaRegionLexer.java
deleted file mode 100644
index 1117c2d..0000000
--- a/gen/com/tang/intellij/lua/lexer/LuaRegionLexer.java
+++ /dev/null
@@ -1,25 +0,0 @@
-/*
- * Copyright (c) 2017. tangzx(love.tangzx@qq.com)
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package com.tang.intellij.lua.lexer;
-
-import com.intellij.lexer.FlexAdapter;
-
-public class LuaRegionLexer extends FlexAdapter {
- public LuaRegionLexer() {
- super(new _LuaRegionLexer());
- }
-}
diff --git a/gen/com/tang/intellij/lua/lexer/_LuaRegionLexer.java b/gen/com/tang/intellij/lua/lexer/_LuaRegionLexer.java
deleted file mode 100644
index 54073dd..0000000
--- a/gen/com/tang/intellij/lua/lexer/_LuaRegionLexer.java
+++ /dev/null
@@ -1,526 +0,0 @@
-/* The following code was generated by JFlex 1.7.0 tweaked for IntelliJ platform */
-
-package com.tang.intellij.lua.lexer;
-
-import com.intellij.lexer.FlexLexer;
-import com.intellij.psi.TokenType;
-import com.intellij.psi.tree.IElementType;
-
-import static com.tang.intellij.lua.psi.LuaRegionTypes.*;
-
-/**
- * This class is a scanner generated by
- * JFlex 1.7.0
- * from the specification file region.flex
- */
-public class _LuaRegionLexer implements FlexLexer {
-
- /** This character denotes the end of file */
- public static final int YYEOF = -1;
-
- /** initial size of the lookahead buffer */
- private static final int ZZ_BUFFERSIZE = 16384;
-
- /** lexical states */
- public static final int YYINITIAL = 0;
- public static final int xREGION_DESC = 2;
-
- /**
- * ZZ_LEXSTATE[l] is the state in the DFA for the lexical state l
- * ZZ_LEXSTATE[l+1] is the state in the DFA for the lexical state l
- * at the beginning of a line
- * l is of the form l = 2*k, k a non negative integer
- */
- private static final int ZZ_LEXSTATE[] = {
- 0, 0, 1, 1
- };
-
- /**
- * Translates characters to character classes
- * Chosen bits are [8, 6, 7]
- * Total runtime size is 1040 bytes
- */
- public static int ZZ_CMAP(int ch) {
- return ZZ_CMAP_A[ZZ_CMAP_Y[ZZ_CMAP_Z[ch>>13]|((ch>>7)&0x3f)]|(ch&0x7f)];
- }
-
- /* The ZZ_CMAP_Z table has 136 entries */
- static final char ZZ_CMAP_Z[] = zzUnpackCMap(
- "\1\0\207\100");
-
- /* The ZZ_CMAP_Y table has 128 entries */
- static final char ZZ_CMAP_Y[] = zzUnpackCMap(
- "\1\0\177\200");
-
- /* The ZZ_CMAP_A table has 256 entries */
- static final char ZZ_CMAP_A[] = zzUnpackCMap(
- "\11\0\1\1\1\14\1\0\1\1\1\14\22\0\1\1\14\0\1\2\66\0\1\12\1\4\1\0\1\5\1\0\1"+
- "\6\4\0\1\10\1\7\2\0\1\3\10\0\1\11\1\0\1\13\202\0");
-
- /**
- * Translates DFA states to action switch labels.
- */
- private static final int [] ZZ_ACTION = zzUnpackAction();
-
- private static final String ZZ_ACTION_PACKED_0 =
- "\1\0\1\1\2\2\1\1\1\3\13\0\1\4\1\5"+
- "\7\0";
-
- private static int [] zzUnpackAction() {
- int [] result = new int[26];
- int offset = 0;
- offset = zzUnpackAction(ZZ_ACTION_PACKED_0, offset, result);
- return result;
- }
-
- private static int zzUnpackAction(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;
- }
-
-
- /**
- * Translates a state to a row index in the transition table
- */
- private static final int [] ZZ_ROWMAP = zzUnpackRowMap();
-
- private static final String ZZ_ROWMAP_PACKED_0 =
- "\0\0\0\15\0\32\0\47\0\64\0\15\0\101\0\116"+
- "\0\133\0\150\0\165\0\202\0\217\0\234\0\251\0\266"+
- "\0\303\0\32\0\32\0\320\0\335\0\352\0\367\0\u0104"+
- "\0\u0111\0\u011e";
-
- private static int [] zzUnpackRowMap() {
- int [] result = new int[26];
- int offset = 0;
- offset = zzUnpackRowMap(ZZ_ROWMAP_PACKED_0, offset, result);
- return result;
- }
-
- private static int zzUnpackRowMap(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 high = packed.charAt(i++) << 16;
- result[j++] = high | packed.charAt(i++);
- }
- return j;
- }
-
- /**
- * The transition table of the DFA
- */
- private static final int [] ZZ_TRANS = zzUnpackTrans();
-
- private static final String ZZ_TRANS_PACKED_0 =
- "\2\3\1\4\12\3\1\5\1\6\12\5\20\0\1\7"+
- "\12\0\14\5\4\0\1\10\1\11\4\0\1\12\1\0"+
- "\1\13\5\0\1\14\20\0\1\15\15\0\1\16\16\0"+
- "\1\17\6\0\1\20\21\0\1\21\13\0\1\22\16\0"+
- "\1\23\7\0\1\24\11\0\1\25\20\0\1\26\11\0"+
- "\1\27\20\0\1\22\11\0\1\30\15\0\1\31\15\0"+
- "\1\32\15\0\1\23\4\0";
-
- private static int [] zzUnpackTrans() {
- int [] result = new int[299];
- int offset = 0;
- offset = zzUnpackTrans(ZZ_TRANS_PACKED_0, offset, result);
- return result;
- }
-
- private static int zzUnpackTrans(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++);
- value--;
- do result[j++] = value; while (--count > 0);
- }
- return j;
- }
-
-
- /* error codes */
- private static final int ZZ_UNKNOWN_ERROR = 0;
- private static final int ZZ_NO_MATCH = 1;
- private static final int ZZ_PUSHBACK_2BIG = 2;
-
- /* error messages for the codes above */
- private static final String[] ZZ_ERROR_MSG = {
- "Unknown internal scanner error",
- "Error: could not match input",
- "Error: pushback value was too large"
- };
-
- /**
- * ZZ_ATTRIBUTE[aState] contains the attributes of state aState
- */
- private static final int [] ZZ_ATTRIBUTE = zzUnpackAttribute();
-
- private static final String ZZ_ATTRIBUTE_PACKED_0 =
- "\1\0\1\1\1\11\3\1\13\0\2\11\7\0";
-
- private static int [] zzUnpackAttribute() {
- int [] result = new int[26];
- 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 input device */
- private java.io.Reader zzReader;
-
- /** 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 = "";
-
- /** the textposition at the last accepting state */
- private int zzMarkedPos;
-
- /** 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: */
-
- public _LuaRegionLexer() {
- this(null);
- }
-
-
- /**
- * Creates a new scanner
- *
- * @param in the java.io.Reader to read input from.
- */
- public _LuaRegionLexer(java.io.Reader in) {
- this.zzReader = in;
- }
-
-
- /**
- * Unpacks the compressed character translation table.
- *
- * @param packed the packed character translation table
- * @return the unpacked character translation table
- */
- private static char [] zzUnpackCMap(String packed) {
- int size = 0;
- for (int i = 0, length = packed.length(); i < length; i += 2) {
- size += packed.charAt(i);
- }
- char[] map = new char[size];
- int i = 0; /* index in packed string */
- int j = 0; /* index in unpacked array */
- while (i < packed.length()) {
- int count = packed.charAt(i++);
- char value = packed.charAt(i++);
- do map[j++] = value; while (--count > 0);
- }
- return map;
- }
-
- public final int getTokenStart() {
- return zzStartRead;
- }
-
- public final int getTokenEnd() {
- return getTokenStart() + yylength();
- }
-
- public void reset(CharSequence buffer, int start, int end, int initialState) {
- zzBuffer = buffer;
- zzCurrentPos = zzMarkedPos = zzStartRead = start;
- zzAtEOF = false;
- zzAtBOL = true;
- zzEndRead = end;
- yybegin(initialState);
- }
-
- /**
- * Refills the input buffer.
- *
- * @return false
, 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 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;
-
- 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];
-
- // set up zzAction for empty match case:
- int zzAttributes = zzAttrL[zzState];
- if ( (zzAttributes & 1) == 1 ) {
- zzAction = zzState;
- }
-
-
- zzForAction: {
- while (true) {
-
- if (zzCurrentPosL < zzEndReadL) {
- zzInput = Character.codePointAt(zzBufferL, zzCurrentPosL/*, zzEndReadL*/);
- zzCurrentPosL += Character.charCount(zzInput);
- }
- 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 = Character.codePointAt(zzBufferL, zzCurrentPosL/*, zzEndReadL*/);
- zzCurrentPosL += Character.charCount(zzInput);
- }
- }
- int zzNext = zzTransL[ zzRowMapL[zzState] + ZZ_CMAP(zzInput) ];
- if (zzNext == -1) break zzForAction;
- zzState = zzNext;
-
- zzAttributes = zzAttrL[zzState];
- if ( (zzAttributes & 1) == 1 ) {
- zzAction = zzState;
- zzMarkedPosL = zzCurrentPosL;
- if ( (zzAttributes & 8) == 8 ) break zzForAction;
- }
-
- }
- }
-
- // store back cached position
- zzMarkedPos = zzMarkedPosL;
-
- if (zzInput == YYEOF && zzStartRead == zzCurrentPos) {
- zzAtEOF = true;
- zzDoEOF();
- return null;
- }
- else {
- switch (zzAction < 0 ? zzAction : ZZ_ACTION[zzAction]) {
- case 1:
- { yybegin(YYINITIAL); return REGION_DESC;
- }
- // fall through
- case 6: break;
- case 2:
- { return TokenType.BAD_CHARACTER;
- }
- // fall through
- case 7: break;
- case 3:
- { return TokenType.WHITE_SPACE;
- }
- // fall through
- case 8: break;
- case 4:
- { yybegin(xREGION_DESC); return REGION_START;
- }
- // fall through
- case 9: break;
- case 5:
- { yybegin(xREGION_DESC); return REGION_END;
- }
- // fall through
- case 10: break;
- default:
- zzScanError(ZZ_NO_MATCH);
- }
- }
- }
- }
-
-
-}
diff --git a/gen/com/tang/intellij/lua/lexer/_LuaStringLexer.java b/gen/com/tang/intellij/lua/lexer/_LuaStringLexer.java
deleted file mode 100644
index ffe36a4..0000000
--- a/gen/com/tang/intellij/lua/lexer/_LuaStringLexer.java
+++ /dev/null
@@ -1,537 +0,0 @@
-/* The following code was generated by JFlex 1.7.0 tweaked for IntelliJ platform */
-
-package com.tang.intellij.lua.lexer;
-
-import com.intellij.lexer.FlexLexer;
-import com.intellij.psi.tree.IElementType;
-
-import static com.intellij.psi.StringEscapesTokenTypes.*;
-import static com.tang.intellij.lua.psi.LuaStringTypes.*;
-import static com.tang.intellij.lua.psi.LuaTypes.*;
-
-/**
- * This class is a scanner generated by
- * JFlex 1.7.0
- * from the specification file string.flex
- */
-public class _LuaStringLexer implements FlexLexer {
-
- /** This character denotes the end of file */
- public static final int YYEOF = -1;
-
- /** initial size of the lookahead buffer */
- private static final int ZZ_BUFFERSIZE = 16384;
-
- /** lexical states */
- public static final int YYINITIAL = 0;
- public static final int STRING_CONTENT = 2;
- public static final int BLOCK_STRING_CONTENT = 4;
-
- /**
- * ZZ_LEXSTATE[l] is the state in the DFA for the lexical state l
- * ZZ_LEXSTATE[l+1] is the state in the DFA for the lexical state l
- * at the beginning of a line
- * l is of the form l = 2*k, k a non negative integer
- */
- private static final int ZZ_LEXSTATE[] = {
- 0, 0, 1, 1, 2, 2
- };
-
- /**
- * Translates characters to character classes
- * Chosen bits are [10, 6, 5]
- * Total runtime size is 4160 bytes
- */
- public static int ZZ_CMAP(int ch) {
- return ZZ_CMAP_A[(ZZ_CMAP_Y[(ZZ_CMAP_Z[ch>>11]<<6)|((ch>>5)&0x3f)]<<5)|(ch&0x1f)];
- }
-
- /* The ZZ_CMAP_Z table has 544 entries */
- static final char ZZ_CMAP_Z[] = zzUnpackCMap(
- "\1\0\1\1\1\2\1\3\1\4\1\5\1\6\15\5\1\7\1\10\11\5\1\11\1\12\1\5\1\13\1\14\11"+
- "\5\1\15\14\5\1\16\2\5\1\17\u01e2\5");
-
- /* The ZZ_CMAP_Y table has 1024 entries */
- static final char ZZ_CMAP_Y[] = zzUnpackCMap(
- "\1\0\1\1\1\2\1\3\1\4\1\5\55\3\1\6\3\3\1\7\6\3\1\6\14\3\1\10\3\3\1\10\3\3\1"+
- "\10\3\3\1\10\3\3\1\10\3\3\1\10\3\3\1\10\3\3\1\10\3\3\1\10\3\3\1\10\2\3\1\7"+
- "\3\3\1\7\2\3\1\6\10\3\1\6\1\3\1\7\57\3\1\5\12\3\1\6\1\7\11\3\1\10\3\3\1\7"+
- "\5\3\1\11\5\3\1\7\2\3\1\7\4\3\1\11\35\3\1\12\1\13\1\14\175\3\1\5\160\3\1\6"+
- "\24\3\1\7\1\3\1\6\5\3\2\7\2\3\1\7\14\3\1\7\130\3\1\7\54\3\1\6\35\3\1\10\3"+
- "\3\1\7\1\3\1\15\4\3\1\7\10\3\1\7\12\3\1\7\3\3\1\7\13\3\1\7\3\3\1\6\2\3\1\7"+
- "\15\3\1\6\32\3\1\7\60\3\1\6\6\3\1\7\143\3\1\16\1\17\12\3\1\7\65\3");
-
- /* The ZZ_CMAP_A table has 512 entries */
- static final char ZZ_CMAP_A[] = zzUnpackCMap(
- "\11\7\1\0\1\4\3\0\22\7\1\0\1\7\1\1\4\7\1\1\10\7\12\6\3\7\1\3\35\7\1\2\1\5"+
- "\50\7\1\0\32\7\1\0\37\7\12\6\46\7\12\6\14\7\12\6\20\7\12\6\6\7\12\6\6\7\13"+
- "\0\35\7\2\0\5\7\1\0\57\7\1\0\26\7\12\6\16\7\62\6");
-
- /**
- * Translates DFA states to action switch labels.
- */
- private static final int [] ZZ_ACTION = zzUnpackAction();
-
- private static final String ZZ_ACTION_PACKED_0 =
- "\3\0\1\1\1\2\2\1\1\3\1\1\1\4\1\0"+
- "\1\5\1\6\1\5";
-
- private static int [] zzUnpackAction() {
- int [] result = new int[14];
- int offset = 0;
- offset = zzUnpackAction(ZZ_ACTION_PACKED_0, offset, result);
- return result;
- }
-
- private static int zzUnpackAction(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;
- }
-
-
- /**
- * Translates a state to a row index in the transition table
- */
- private static final int [] ZZ_ROWMAP = zzUnpackRowMap();
-
- private static final String ZZ_ROWMAP_PACKED_0 =
- "\0\0\0\10\0\20\0\30\0\30\0\40\0\50\0\30"+
- "\0\60\0\30\0\40\0\30\0\30\0\70";
-
- private static int [] zzUnpackRowMap() {
- int [] result = new int[14];
- int offset = 0;
- offset = zzUnpackRowMap(ZZ_ROWMAP_PACKED_0, offset, result);
- return result;
- }
-
- private static int zzUnpackRowMap(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 high = packed.charAt(i++) << 16;
- result[j++] = high | packed.charAt(i++);
- }
- return j;
- }
-
- /**
- * The transition table of the DFA
- */
- private static final int [] ZZ_TRANS = zzUnpackTrans();
-
- private static final String ZZ_TRANS_PACKED_0 =
- "\1\4\1\5\1\6\5\4\4\7\1\10\1\11\2\7"+
- "\10\4\12\0\1\12\1\13\4\0\4\7\2\0\2\7"+
- "\1\0\3\14\1\15\1\14\1\16\1\14\6\0\1\16"+
- "\1\0";
-
- private static int [] zzUnpackTrans() {
- int [] result = new int[64];
- int offset = 0;
- offset = zzUnpackTrans(ZZ_TRANS_PACKED_0, offset, result);
- return result;
- }
-
- private static int zzUnpackTrans(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++);
- value--;
- do result[j++] = value; while (--count > 0);
- }
- return j;
- }
-
-
- /* error codes */
- private static final int ZZ_UNKNOWN_ERROR = 0;
- private static final int ZZ_NO_MATCH = 1;
- private static final int ZZ_PUSHBACK_2BIG = 2;
-
- /* error messages for the codes above */
- private static final String[] ZZ_ERROR_MSG = {
- "Unknown internal scanner error",
- "Error: could not match input",
- "Error: pushback value was too large"
- };
-
- /**
- * ZZ_ATTRIBUTE[aState] contains the attributes of state aState
- */
- private static final int [] ZZ_ATTRIBUTE = zzUnpackAttribute();
-
- private static final String ZZ_ATTRIBUTE_PACKED_0 =
- "\3\0\2\11\2\1\1\11\1\1\1\11\1\0\2\11"+
- "\1\1";
-
- private static int [] zzUnpackAttribute() {
- int [] result = new int[14];
- 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 input device */
- private java.io.Reader zzReader;
-
- /** 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 = "";
-
- /** the textposition at the last accepting state */
- private int zzMarkedPos;
-
- /** 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: */
-
- public _LuaStringLexer() {
- this(null);
- }
-
-
- /**
- * Creates a new scanner
- *
- * @param in the java.io.Reader to read input from.
- */
- public _LuaStringLexer(java.io.Reader in) {
- this.zzReader = in;
- }
-
-
- /**
- * Unpacks the compressed character translation table.
- *
- * @param packed the packed character translation table
- * @return the unpacked character translation table
- */
- private static char [] zzUnpackCMap(String packed) {
- int size = 0;
- for (int i = 0, length = packed.length(); i < length; i += 2) {
- size += packed.charAt(i);
- }
- char[] map = new char[size];
- int i = 0; /* index in packed string */
- int j = 0; /* index in unpacked array */
- while (i < packed.length()) {
- int count = packed.charAt(i++);
- char value = packed.charAt(i++);
- do map[j++] = value; while (--count > 0);
- }
- return map;
- }
-
- public final int getTokenStart() {
- return zzStartRead;
- }
-
- public final int getTokenEnd() {
- return getTokenStart() + yylength();
- }
-
- public void reset(CharSequence buffer, int start, int end, int initialState) {
- zzBuffer = buffer;
- zzCurrentPos = zzMarkedPos = zzStartRead = start;
- zzAtEOF = false;
- zzAtBOL = true;
- zzEndRead = end;
- yybegin(initialState);
- }
-
- /**
- * Refills the input buffer.
- *
- * @return false
, 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 zzBuffer.charAt(zzStartRead+pos);
- }
-
-
- /**
- * Returns the length of the matched text region.
- */
- public final int yylength() {
- return zzMarkedPos-zzStartRead;
- }
-
-
- /**
- * Reports an error that occurred 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;
-
- 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];
-
- // set up zzAction for empty match case:
- int zzAttributes = zzAttrL[zzState];
- if ( (zzAttributes & 1) == 1 ) {
- zzAction = zzState;
- }
-
-
- zzForAction: {
- while (true) {
-
- if (zzCurrentPosL < zzEndReadL) {
- zzInput = Character.codePointAt(zzBufferL, zzCurrentPosL/*, zzEndReadL*/);
- zzCurrentPosL += Character.charCount(zzInput);
- }
- 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 = Character.codePointAt(zzBufferL, zzCurrentPosL/*, zzEndReadL*/);
- zzCurrentPosL += Character.charCount(zzInput);
- }
- }
- int zzNext = zzTransL[ zzRowMapL[zzState] + ZZ_CMAP(zzInput) ];
- if (zzNext == -1) break zzForAction;
- zzState = zzNext;
-
- zzAttributes = zzAttrL[zzState];
- if ( (zzAttributes & 1) == 1 ) {
- zzAction = zzState;
- zzMarkedPosL = zzCurrentPosL;
- if ( (zzAttributes & 8) == 8 ) break zzForAction;
- }
-
- }
- }
-
- // store back cached position
- zzMarkedPos = zzMarkedPosL;
-
- if (zzInput == YYEOF && zzStartRead == zzCurrentPos) {
- zzAtEOF = true;
- zzDoEOF();
- return null;
- }
- else {
- switch (zzAction < 0 ? zzAction : ZZ_ACTION[zzAction]) {
- case 1:
- { return STRING;
- }
- // fall through
- case 7: break;
- case 2:
- { yybegin(STRING_CONTENT); return STRING;
- }
- // fall through
- case 8: break;
- case 3:
- { return INVALID_NEXT_LINE;
- }
- // fall through
- case 9: break;
- case 4:
- { yybegin(BLOCK_STRING_CONTENT); return STRING;
- }
- // fall through
- case 10: break;
- case 5:
- { return VALID_STRING_ESCAPE_TOKEN;
- }
- // fall through
- case 11: break;
- case 6:
- { return NEXT_LINE;
- }
- // fall through
- case 12: break;
- default:
- zzScanError(ZZ_NO_MATCH);
- }
- }
- }
- }
-
-
-}
diff --git a/src/main/gen/com/tang/intellij/lua/comment/lexer/_LuaDocLexer.java b/src/main/gen/com/tang/intellij/lua/comment/lexer/_LuaDocLexer.java
new file mode 100644
index 0000000..355d876
--- /dev/null
+++ b/src/main/gen/com/tang/intellij/lua/comment/lexer/_LuaDocLexer.java
@@ -0,0 +1,1163 @@
+/* The following code was generated by JFlex 1.7.0 tweaked for IntelliJ platform */
+
+package com.tang.intellij.lua.comment.lexer;
+
+import com.intellij.lexer.FlexLexer;
+import com.intellij.psi.TokenType;import com.intellij.psi.tree.IElementType;
+import com.tang.intellij.lua.comment.psi.LuaDocTypes;
+
+
+/**
+ * This class is a scanner generated by
+ * JFlex 1.7.0
+ * from the specification file doc.flex
+ */
+public class _LuaDocLexer implements FlexLexer, LuaDocTypes {
+
+ /** This character denotes the end of file */
+ public static final int YYEOF = -1;
+
+ /** initial size of the lookahead buffer */
+ private static final int ZZ_BUFFERSIZE = 16384;
+
+ /** lexical states */
+ public static final int YYINITIAL = 0;
+ public static final int xTAG = 2;
+ public static final int xTAG_WITH_ID = 4;
+ public static final int xTAG_NAME = 6;
+ public static final int xCOMMENT_STRING = 8;
+ public static final int xPARAM = 10;
+ public static final int xTYPE_REF = 12;
+ public static final int xCLASS = 14;
+ public static final int xCLASS_GENERIC = 16;
+ public static final int xCLASS_EXTEND = 18;
+ public static final int xFIELD = 20;
+ public static final int xFIELD_INDEX = 22;
+ public static final int xFIELD_ID = 24;
+ public static final int xGENERIC = 26;
+ public static final int xALIAS = 28;
+ public static final int xDOUBLE_QUOTED_STRING = 30;
+ public static final int xSINGLE_QUOTED_STRING = 32;
+ public static final int xMODULE = 34;
+ public static final int xTAG_ENUMFIELD = 36;
+ public static final int xTAG_DIAGNOSTIC = 38;
+ public static final int xENUM = 40;
+
+ /**
+ * ZZ_LEXSTATE[l] is the state in the DFA for the lexical state l
+ * ZZ_LEXSTATE[l+1] is the state in the DFA for the lexical state l
+ * at the beginning of a line
+ * l is of the form l = 2*k, k a non negative integer
+ */
+ private static final int ZZ_LEXSTATE[] = {
+ 0, 0, 1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 6, 6, 7, 7,
+ 8, 8, 9, 9, 10, 10, 11, 11, 12, 12, 13, 13, 14, 14, 15, 15,
+ 16, 16, 17, 17, 18, 18, 19, 19, 18, 18
+ };
+
+ /**
+ * Translates characters to character classes
+ * Chosen bits are [13, 6, 2]
+ * Total runtime size is 25680 bytes
+ */
+ public static int ZZ_CMAP(int ch) {
+ return ZZ_CMAP_A[(ZZ_CMAP_Y[(ZZ_CMAP_Z[ch>>8]<<6)|((ch>>2)&0x3f)]<<2)|(ch&0x3)];
+ }
+
+ /* The ZZ_CMAP_Z table has 4352 entries */
+ static final char ZZ_CMAP_Z[] = zzUnpackCMap(
+ "\1\0\1\1\1\2\1\3\1\4\1\5\1\6\1\7\1\10\1\11\1\12\1\13\1\14\1\15\1\16\1\17\1"+
+ "\20\1\1\1\21\1\22\1\23\1\1\1\24\1\25\1\26\1\27\1\30\1\31\1\32\1\33\1\1\1\34"+
+ "\1\35\1\36\12\37\1\40\1\41\1\42\1\37\1\43\1\44\2\37\31\1\1\45\126\1\1\46\1"+
+ "\1\1\47\1\50\1\51\1\52\1\53\1\54\53\1\1\55\41\37\1\1\1\56\1\57\1\1\1\60\1"+
+ "\61\1\62\1\63\1\64\1\65\1\66\1\67\1\70\1\1\1\71\1\72\1\73\1\74\1\75\1\76\1"+
+ "\77\1\100\1\101\1\102\1\103\1\104\1\105\1\106\1\107\1\110\1\111\1\112\1\113"+
+ "\1\114\1\37\1\115\1\116\1\117\1\120\3\1\1\121\1\122\1\123\11\37\1\124\4\1"+
+ "\1\125\17\37\2\1\1\126\41\37\2\1\1\127\1\130\2\37\1\131\1\132\27\1\1\133\4"+
+ "\1\1\134\1\135\41\37\1\136\1\1\1\137\1\140\11\37\1\141\22\37\1\142\1\37\1"+
+ "\143\1\144\1\37\1\145\1\146\1\147\1\150\2\37\1\151\4\37\1\152\1\153\1\154"+
+ "\1\155\1\37\1\156\2\37\1\157\1\160\1\161\2\37\1\162\1\37\1\163\14\37\1\164"+
+ "\4\37\246\1\1\165\20\1\1\166\1\167\25\1\1\170\34\1\1\171\14\37\2\1\1\172\5"+
+ "\37\23\1\1\173\17\1\1\174\u0adc\37\1\175\1\176\u02fe\37");
+
+ /* The ZZ_CMAP_Y table has 8128 entries */
+ static final char ZZ_CMAP_Y[] = zzUnpackCMap(
+ "\2\0\1\1\1\2\3\0\1\3\1\4\1\5\1\6\1\7\2\10\1\11\1\12\1\13\5\14\1\15\1\16\1"+
+ "\17\1\20\1\21\1\22\1\23\1\24\1\25\1\26\1\0\1\27\6\0\1\30\1\31\1\32\1\33\1"+
+ "\3\1\34\1\32\1\3\5\14\1\35\7\14\1\35\162\14\1\31\1\36\2\14\1\31\3\3\1\14\1"+
+ "\37\1\3\1\40\4\3\34\0\1\14\1\41\1\36\1\42\1\3\1\32\1\35\1\41\4\14\1\42\24"+
+ "\14\1\42\42\14\1\43\1\0\1\36\51\14\1\44\10\14\1\35\1\34\1\3\12\14\1\37\1\45"+
+ "\1\46\12\0\1\47\1\50\1\47\2\3\6\14\1\35\1\45\1\35\3\3\1\0\1\51\1\45\1\3\2"+
+ "\0\1\52\1\53\12\14\1\54\7\0\1\51\1\36\1\55\30\14\1\56\1\0\1\47\1\0\1\57\1"+
+ "\60\1\61\2\0\1\61\1\62\3\3\1\63\1\64\7\14\6\0\1\52\1\44\25\14\1\65\2\0\1\66"+
+ "\3\3\2\0\1\61\7\14\1\54\2\0\1\31\1\32\1\67\5\14\1\65\1\70\2\0\2\71\1\51\4"+
+ "\3\6\14\1\71\1\3\2\14\1\35\1\3\6\14\1\44\1\35\1\51\1\3\2\0\12\14\1\65\16\0"+
+ "\15\14\1\65\1\72\4\0\1\71\1\0\2\14\1\65\1\73\2\0\1\44\3\14\1\71\1\44\1\14"+
+ "\2\62\5\14\1\41\1\14\1\40\1\36\1\31\1\72\1\0\2\74\1\75\1\3\1\63\1\3\1\42\1"+
+ "\65\1\73\2\0\1\14\1\3\1\45\1\76\1\46\1\44\1\35\1\45\1\62\5\14\1\41\1\14\1"+
+ "\41\1\77\1\31\1\60\1\52\1\63\1\74\1\51\1\33\1\3\1\44\1\40\1\3\1\73\2\0\1\61"+
+ "\1\100\2\3\1\46\1\44\1\14\2\42\5\14\1\41\1\14\1\41\1\44\1\31\1\72\1\0\2\47"+
+ "\1\51\1\37\3\3\1\65\1\73\2\0\1\34\1\3\1\56\1\0\1\46\1\44\1\14\2\62\5\14\1"+
+ "\41\1\14\1\41\1\44\1\31\1\72\1\0\2\74\1\51\1\3\1\46\1\3\1\42\1\65\1\73\2\0"+
+ "\1\34\3\3\1\101\1\44\1\35\1\36\1\41\1\31\1\77\1\41\1\45\1\37\1\35\1\36\2\14"+
+ "\1\31\1\73\1\52\1\73\1\60\1\51\1\37\1\63\3\3\1\73\2\0\2\3\1\34\1\3\1\0\1\55"+
+ "\1\14\2\41\5\14\1\41\3\14\1\31\1\72\1\0\2\60\1\51\1\3\1\50\1\35\1\34\1\65"+
+ "\1\73\2\0\4\3\1\71\1\44\1\14\2\41\5\14\1\41\2\14\1\44\1\31\1\72\1\0\2\60\1"+
+ "\51\1\3\1\50\1\3\1\77\1\65\1\73\2\0\1\102\3\3\1\0\2\14\2\41\11\14\1\54\1\72"+
+ "\1\0\2\60\1\75\1\3\1\54\1\3\1\45\1\65\1\73\2\0\2\3\1\36\1\14\1\46\1\44\3\14"+
+ "\1\35\1\36\5\14\1\42\2\14\1\34\1\14\1\35\1\103\1\63\1\0\1\104\2\0\1\3\1\73"+
+ "\2\0\1\73\3\3\1\44\13\14\1\64\1\0\1\52\1\45\1\14\1\54\1\0\1\52\2\0\1\51\11"+
+ "\3\1\77\1\41\1\35\6\14\1\105\2\14\1\64\2\0\1\66\1\14\1\40\1\0\1\52\2\0\1\51"+
+ "\1\14\10\3\1\37\5\3\1\51\1\3\2\0\1\51\2\3\1\106\1\33\1\73\2\14\1\44\10\14"+
+ "\1\37\1\46\4\0\1\60\1\14\1\71\2\0\1\46\10\0\1\53\1\3\1\103\16\3\12\14\1\54"+
+ "\4\0\1\107\2\0\1\51\1\3\1\14\1\65\1\61\1\65\1\72\1\57\1\0\1\61\1\71\1\55\2"+
+ "\14\1\65\2\0\1\70\3\0\1\51\11\14\1\42\1\3\1\34\12\14\1\35\23\14\1\41\1\31"+
+ "\1\14\1\35\1\41\1\31\12\14\1\41\1\31\10\14\1\41\1\31\1\14\1\35\1\41\1\31\3"+
+ "\14\1\35\16\14\1\41\1\31\20\14\1\35\1\46\10\3\4\14\4\3\25\14\1\31\1\14\1\31"+
+ "\1\44\132\14\1\62\4\14\1\110\5\14\1\35\1\3\22\14\1\35\1\36\2\14\1\37\1\3\4"+
+ "\14\1\65\1\51\1\3\1\45\4\14\1\65\1\53\2\3\4\14\1\65\3\3\3\14\1\41\1\111\3"+
+ "\3\15\14\10\0\2\45\1\100\2\0\1\51\7\3\1\63\3\0\1\51\1\3\26\14\1\37\1\3\1\14"+
+ "\1\112\10\14\1\113\1\3\21\14\1\31\2\3\7\14\1\35\3\0\1\3\3\0\2\3\1\73\2\0\7"+
+ "\14\1\31\1\14\1\37\2\3\13\14\1\3\6\14\1\31\1\3\2\0\1\51\11\3\5\14\1\54\1\0"+
+ "\1\3\15\14\1\71\1\0\1\52\7\0\1\74\2\0\1\51\1\3\2\0\1\51\2\3\1\45\2\3\3\0\1"+
+ "\47\3\0\1\52\14\3\1\0\1\55\13\14\4\0\1\55\1\14\1\37\2\0\1\51\3\3\1\63\2\0"+
+ "\3\3\1\107\7\14\1\71\2\0\1\61\2\0\1\61\12\14\1\65\3\0\3\3\11\14\5\0\2\3\2"+
+ "\0\1\51\1\44\2\0\1\61\10\14\1\31\2\14\1\37\1\3\12\14\1\35\1\44\4\3\1\52\5"+
+ "\0\1\55\1\64\1\14\1\57\1\75\1\3\60\14\20\0\5\14\1\31\1\14\1\31\11\14\1\31"+
+ "\1\14\1\31\2\14\2\105\7\14\1\31\15\14\1\41\1\14\1\40\1\36\1\41\1\14\1\37\1"+
+ "\14\1\36\1\14\1\3\3\14\1\37\1\36\1\41\1\14\1\37\2\114\1\115\1\0\6\3\1\116"+
+ "\1\117\3\3\1\45\1\37\4\3\1\37\1\3\1\120\1\0\1\60\2\0\1\34\2\3\1\45\4\3\3\14"+
+ "\1\37\10\14\1\37\3\3\3\0\1\53\1\33\1\46\2\0\1\53\3\3\1\32\1\45\1\36\2\14\1"+
+ "\34\1\44\1\31\1\3\1\40\1\41\1\42\2\14\1\31\1\14\1\3\1\44\1\31\1\32\4\3\12"+
+ "\14\1\37\135\3\71\14\1\37\1\45\1\54\1\61\3\3\11\14\1\42\1\3\1\34\16\14\1\3"+
+ "\1\45\3\3\1\63\5\14\1\35\2\3\1\14\1\35\1\14\1\35\1\14\1\35\1\14\1\35\1\14"+
+ "\1\35\1\14\1\35\1\14\1\35\1\14\1\35\10\0\13\3\1\45\64\3\1\121\1\44\6\3\1\44"+
+ "\1\14\1\65\1\0\1\44\1\31\1\14\1\37\1\44\24\14\1\35\1\50\2\44\25\14\1\35\1"+
+ "\14\1\3\1\44\12\14\1\44\26\14\1\35\4\3\10\14\14\3\64\14\20\3\43\14\1\37\20"+
+ "\3\13\14\1\31\3\14\1\37\4\14\2\0\1\61\5\3\13\14\1\54\1\3\2\0\1\122\7\14\1"+
+ "\65\24\14\1\51\10\3\1\45\2\14\1\36\31\14\1\62\17\14\1\35\1\3\1\42\1\44\1\31"+
+ "\5\3\1\36\3\14\2\123\1\54\5\14\1\54\1\0\1\3\1\53\2\3\1\37\1\3\15\14\3\3\1"+
+ "\61\14\14\4\0\1\51\2\3\2\0\1\51\1\3\4\0\1\61\1\14\1\45\1\102\2\0\1\61\6\14"+
+ "\1\65\1\0\1\51\5\14\1\54\3\0\3\3\7\14\1\37\1\0\13\14\1\54\3\0\1\53\2\3\1\45"+
+ "\2\0\1\51\1\3\1\14\1\64\2\14\2\0\1\61\1\35\12\14\1\71\2\0\1\52\2\3\1\54\2"+
+ "\14\1\51\2\0\1\51\1\3\5\14\1\35\1\124\1\61\14\14\1\72\1\57\1\55\1\65\1\113"+
+ "\5\3\1\45\1\31\2\14\1\54\1\0\1\36\1\125\2\3\1\44\1\35\1\44\1\35\1\44\1\35"+
+ "\2\3\1\14\1\35\1\14\1\35\12\14\1\35\3\14\1\31\1\3\34\14\1\54\1\0\1\52\1\51"+
+ "\2\0\1\51\1\3\51\14\3\3\5\14\1\35\1\45\14\14\1\3\33\14\1\31\32\14\1\31\11"+
+ "\3\1\14\1\35\2\3\1\45\1\14\1\3\1\126\2\14\1\41\2\14\1\35\1\14\1\40\1\42\1"+
+ "\41\32\14\1\31\7\3\1\45\32\14\1\31\4\3\20\14\1\36\15\14\12\3\3\14\1\37\4\0"+
+ "\4\3\4\0\1\45\1\37\5\3\1\44\6\3\1\34\1\3\1\14\1\41\41\14\1\127\1\3\1\37\2"+
+ "\3\2\0\1\51\1\3\1\44\5\14\1\35\1\45\1\44\5\14\1\35\2\3\1\36\25\14\1\35\1\36"+
+ "\1\14\1\36\1\14\1\36\1\14\1\36\1\37\1\31\1\77\4\3\1\46\1\3\3\14\1\44\5\14"+
+ "\1\35\4\14\1\35\1\42\3\14\1\31\3\14\1\31\10\3\36\14\1\35\21\3\15\14\1\37\41"+
+ "\3\1\33\40\3\7\14\1\37\14\14\1\37\3\3\1\53\7\3\10\14\3\3\1\44\6\14\1\35\1"+
+ "\3\11\14\1\65\1\52\1\3\7\14\1\31\11\14\1\3\2\14\1\44\1\31\12\3\47\14\1\31"+
+ "\2\0\1\51\1\3\11\14\1\3\11\14\1\3\12\14\2\3\15\14\3\3\2\14\1\35\3\14\1\35"+
+ "\1\14\1\35\1\42\2\14\1\42\3\14\1\42\1\14\1\42\1\37\20\3\15\14\1\35\2\3\5\14"+
+ "\1\31\2\3\2\14\6\3\1\14\1\42\12\14\1\41\1\14\1\35\21\3\1\14\1\31\1\41\12\14"+
+ "\1\42\1\37\1\62\5\14\1\31\2\3\5\14\1\35\2\3\7\14\1\35\20\3\4\14\1\35\1\31"+
+ "\2\3\5\14\1\31\2\3\6\14\1\31\21\3\16\14\1\3\1\36\20\3\1\71\1\50\1\3\1\0\1"+
+ "\14\2\44\6\14\1\31\1\52\1\63\10\3\7\14\1\37\7\14\1\37\10\3\2\14\1\44\6\14"+
+ "\1\125\6\3\15\14\1\31\2\3\5\14\1\31\2\3\4\14\1\35\3\3\4\14\1\31\33\3\22\14"+
+ "\1\37\15\3\14\14\1\35\3\3\14\14\1\35\3\3\11\14\1\0\2\3\2\0\1\51\121\3\12\14"+
+ "\1\43\1\53\1\31\22\3\1\46\7\14\1\37\1\3\1\45\2\3\5\14\1\65\2\0\1\53\7\3\4"+
+ "\14\1\65\1\51\12\3\5\14\1\37\6\3\5\14\1\35\2\3\1\107\15\14\3\0\1\52\7\3\1"+
+ "\73\2\0\1\57\1\66\1\3\1\63\1\107\13\14\2\0\1\52\1\33\1\103\2\3\1\33\6\14\1"+
+ "\37\1\3\2\0\1\51\1\3\1\107\10\14\1\54\3\0\1\60\2\0\1\3\1\112\2\3\10\14\1\54"+
+ "\1\32\2\3\1\107\13\14\1\54\3\0\1\55\1\37\1\46\1\60\2\0\1\75\1\37\10\3\4\14"+
+ "\1\42\6\14\3\0\1\3\1\101\1\100\17\3\1\14\1\35\1\41\1\42\3\14\1\42\2\14\1\37"+
+ "\1\3\13\14\1\54\2\0\1\52\1\3\2\0\1\51\1\3\1\0\1\44\1\14\2\62\5\14\1\41\1\14"+
+ "\1\41\1\44\1\43\1\72\1\0\2\74\1\51\1\37\1\63\1\3\1\44\1\65\1\73\1\0\1\53\1"+
+ "\0\1\53\42\3\15\14\1\71\3\0\1\107\1\35\1\3\2\0\1\51\1\101\1\31\7\3\14\14\5"+
+ "\0\1\42\2\3\2\0\1\51\51\3\13\14\1\54\1\0\1\51\2\0\1\53\5\3\1\14\1\51\10\3"+
+ "\14\14\4\0\1\53\1\37\2\3\2\0\1\51\11\3\12\14\1\54\3\0\1\37\1\3\2\0\1\51\15"+
+ "\3\6\14\1\35\1\46\3\0\1\3\2\0\1\51\1\3\1\14\1\35\56\3\13\14\3\0\1\52\31\3"+
+ "\20\14\2\0\1\51\4\3\1\45\1\14\1\35\1\34\2\14\1\77\6\14\1\0\1\47\1\74\1\107"+
+ "\1\72\3\3\2\0\1\51\21\3\2\14\1\36\11\14\1\71\1\0\1\73\1\0\1\130\1\53\6\3\1"+
+ "\71\1\0\1\107\11\14\1\54\1\0\1\70\1\52\1\3\1\63\2\3\1\71\2\0\13\14\1\65\3"+
+ "\0\1\51\1\34\4\3\22\14\1\37\1\3\2\14\1\41\10\14\1\54\1\0\1\52\2\0\1\37\3\3"+
+ "\2\0\1\51\5\3\1\36\7\14\1\73\5\0\1\46\2\0\1\52\22\3\1\14\1\35\1\42\11\14\1"+
+ "\71\1\52\1\103\1\47\1\0\1\70\2\3\2\0\1\51\1\3\1\14\1\42\1\41\7\14\1\65\1\52"+
+ "\1\47\1\0\1\37\1\3\2\0\1\51\115\3\4\14\1\54\1\52\2\3\1\70\3\14\1\41\10\14"+
+ "\1\0\1\52\1\73\1\52\3\3\2\0\1\51\25\3\1\37\12\3\1\44\1\37\7\3\46\14\1\31\31"+
+ "\3\33\14\1\35\4\3\61\14\123\3\30\14\1\37\3\3\14\14\4\0\1\55\1\54\3\0\1\51"+
+ "\52\3\21\14\1\35\56\3\16\14\1\37\1\3\7\14\1\35\2\0\1\51\1\3\23\14\1\35\2\0"+
+ "\1\51\1\3\7\14\1\31\1\0\1\53\2\3\14\14\1\0\1\52\2\3\1\14\3\3\2\0\1\51\1\3"+
+ "\1\45\5\14\1\3\1\44\4\14\54\3\20\14\40\3\22\14\1\35\1\63\1\71\15\0\1\3\1\63"+
+ "\1\107\3\14\20\3\1\42\1\53\2\3\1\51\3\3\76\14\2\3\65\14\1\31\12\3\2\14\1\37"+
+ "\171\3\1\14\1\44\1\14\1\77\10\14\1\35\3\3\1\32\7\3\1\35\1\34\3\3\1\14\2\3"+
+ "\143\14\1\3\32\14\1\35\1\3\3\14\1\37\2\14\1\37\1\3\2\14\1\31\1\50\1\0\27\3"+
+ "\13\0\1\51\5\0\1\52\107\3\1\46\1\51\1\46\4\0\1\52\1\46\1\0\7\3\1\73\1\51\44"+
+ "\3\1\73\1\53\56\3\25\14\1\41\21\14\1\41\1\32\1\77\1\44\1\41\2\14\1\42\1\44"+
+ "\1\14\1\44\17\14\1\42\1\35\1\44\1\14\1\41\1\14\1\41\6\14\1\42\1\35\1\14\1"+
+ "\40\1\36\1\14\1\41\124\14\1\31\6\14\1\41\5\14\1\35\7\14\1\35\6\14\1\41\7\14"+
+ "\1\41\5\14\1\35\7\14\1\35\6\14\1\41\7\14\1\41\5\14\1\35\2\14\1\73\31\0\1\52"+
+ "\1\63\14\0\1\53\1\3\1\33\3\3\1\53\4\3\1\63\1\0\1\46\3\0\24\3\7\14\1\35\1\3"+
+ "\1\44\1\35\65\3\1\0\1\52\4\0\1\74\1\0\1\47\1\60\1\52\1\3\17\14\1\31\7\3\1"+
+ "\63\34\3\13\14\1\37\1\0\1\107\1\14\1\31\2\0\1\51\1\32\120\3\7\14\1\131\4\3"+
+ "\13\14\3\0\1\51\1\45\64\3\7\14\3\0\1\51\71\3\1\14\1\35\1\14\1\77\3\14\1\35"+
+ "\61\14\1\37\2\3\1\0\1\52\12\3\21\14\1\0\1\107\1\3\2\0\1\51\125\3\1\37\23\3"+
+ "\1\14\1\44\6\14\1\77\1\62\1\44\1\14\1\35\1\14\1\105\1\3\1\32\1\45\1\105\1"+
+ "\44\1\77\1\62\2\105\1\77\1\62\1\35\1\14\1\35\1\14\1\44\1\40\2\14\1\42\4\14"+
+ "\1\3\2\44\1\42\4\14\115\3\2\0\1\51\1\3\70\14\10\3\16\14\1\31\1\3\67\14\1\31"+
+ "\140\14\1\31\3\3\114\14\1\37\7\3\7\14\1\31\70\3\22\14\1\35\1\3\130\14\24\3"+
+ "\1\33\7\3\30\0\40\3\74\0\4\3");
+
+ /* The ZZ_CMAP_A table has 360 entries */
+ static final char ZZ_CMAP_A[] = zzUnpackCMap(
+ "\5\10\1\4\1\2\1\21\1\4\1\1\2\10\4\16\1\3\1\16\1\14\1\55\1\5\2\16\1\17\1\56"+
+ "\1\57\1\10\1\16\1\47\1\11\1\7\1\16\6\12\1\46\1\16\1\50\1\16\1\51\1\54\1\13"+
+ "\12\5\1\52\1\15\1\53\1\16\1\5\1\16\1\30\1\43\1\33\1\26\1\24\1\22\1\45\1\5"+
+ "\1\23\1\5\1\44\1\25\1\32\1\35\1\40\1\27\1\5\1\31\1\34\1\36\1\37\1\42\2\5\1"+
+ "\41\1\5\1\60\1\20\1\61\1\16\2\10\1\6\2\10\1\0\1\16\4\5\4\16\1\5\2\16\1\10"+
+ "\3\16\1\5\2\16\3\5\3\16\3\5\3\16\1\5\1\16\1\5\1\16\1\5\1\16\4\5\1\16\3\5\1"+
+ "\16\1\10\1\16\3\5\3\16\1\5\1\16\5\10\1\16\1\10\1\16\2\10\1\16\2\10\2\16\3"+
+ "\10\1\16\1\10\3\16\3\5\2\10\3\5\1\16\1\5\3\10\2\5\2\10\1\16\4\10\3\5\2\16"+
+ "\1\5\3\16\1\10\1\5\1\10\4\5\3\10\1\5\3\16\1\10\2\5\2\10\1\5\1\10\1\5\4\10"+
+ "\1\5\2\10\2\16\3\10\2\16\3\10\1\5\1\16\1\5\1\16\1\10\2\16\2\5\1\16\1\5\1\10"+
+ "\4\16\1\10\1\5\1\16\2\5\1\10\2\16\1\10\1\16\1\10\1\16\1\10\2\16\1\5\1\16\1"+
+ "\5\1\16\1\10\1\16\4\10\1\5\1\0\4\5\1\16\2\10\1\5\2\10\2\5\1\10\1\5\1\16\7"+
+ "\0\1\10\2\21\5\10\1\0\3\16\2\0\3\16\2\10\1\16\3\5\1\10\1\5\2\16\1\5\1\10\1"+
+ "\5\2\10\2\16\1\5\1\10\2\5\2\16\2\10\1\5\1\16\3\5\1\10\1\16");
+
+ /**
+ * Translates DFA states to action switch labels.
+ */
+ private static final int [] ZZ_ACTION = zzUnpackAction();
+
+ private static final String ZZ_ACTION_PACKED_0 =
+ "\4\0\1\1\14\0\1\2\2\0\1\3\2\4\1\5"+
+ "\1\6\1\3\1\7\1\10\1\11\2\12\1\13\1\14"+
+ "\1\15\1\16\21\17\1\1\1\5\1\20\1\6\1\21"+
+ "\1\6\1\22\1\23\1\24\1\25\3\21\1\26\1\27"+
+ "\1\30\1\31\1\6\1\32\1\33\1\34\1\35\1\36"+
+ "\1\37\1\40\1\41\1\42\1\43\1\44\1\20\1\45"+
+ "\1\46\1\47\1\50\2\51\1\2\1\5\1\13\1\52"+
+ "\23\17\2\0\3\21\1\53\3\20\1\51\2\0\16\17"+
+ "\1\54\6\17\1\20\1\21\1\55\2\21\4\20\2\17"+
+ "\1\56\15\17\1\57\3\17\2\21\4\20\1\60\3\17"+
+ "\1\61\4\17\1\62\2\17\1\63\1\17\1\64\2\17"+
+ "\1\65\1\21\4\20\6\17\1\66\1\67\3\17\1\70"+
+ "\3\20\1\71\6\17\1\72\1\73\1\74\1\20\1\17"+
+ "\1\75\2\17\1\20\1\17\1\76\1\77";
+
+ private static int [] zzUnpackAction() {
+ int [] result = new int[236];
+ int offset = 0;
+ offset = zzUnpackAction(ZZ_ACTION_PACKED_0, offset, result);
+ return result;
+ }
+
+ private static int zzUnpackAction(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;
+ }
+
+
+ /**
+ * Translates a state to a row index in the transition table
+ */
+ private static final int [] ZZ_ROWMAP = zzUnpackRowMap();
+
+ private static final String ZZ_ROWMAP_PACKED_0 =
+ "\0\0\0\62\0\144\0\226\0\310\0\372\0\u012c\0\u015e"+
+ "\0\u0190\0\u01c2\0\u01f4\0\u0226\0\u0258\0\u028a\0\u02bc\0\u02ee"+
+ "\0\u0320\0\u0352\0\u0384\0\u03b6\0\u03e8\0\u041a\0\u03e8\0\u044c"+
+ "\0\u03e8\0\u047e\0\u03e8\0\u03e8\0\u03e8\0\u04b0\0\u03e8\0\u04e2"+
+ "\0\u03e8\0\u03e8\0\u0514\0\u0546\0\u0578\0\u05aa\0\u05dc\0\u060e"+
+ "\0\u0640\0\u0672\0\u06a4\0\u06d6\0\u0708\0\u073a\0\u076c\0\u079e"+
+ "\0\u07d0\0\u0802\0\u0834\0\u0866\0\u0898\0\u08ca\0\u08fc\0\u092e"+
+ "\0\u0960\0\u0992\0\u09c4\0\u03e8\0\u03e8\0\u03e8\0\u09f6\0\u0a28"+
+ "\0\u0a5a\0\u03e8\0\u03e8\0\u03e8\0\u03e8\0\u0a8c\0\u03e8\0\u03e8"+
+ "\0\u03e8\0\u03e8\0\u03e8\0\u0abe\0\u03e8\0\u03e8\0\u03e8\0\u03e8"+
+ "\0\u03e8\0\u0af0\0\u03e8\0\u03e8\0\u03e8\0\u03e8\0\u0b22\0\u0b54"+
+ "\0\u0b86\0\u0bb8\0\u0bea\0\u047e\0\u0c1c\0\u0c4e\0\u0c80\0\u0cb2"+
+ "\0\u0ce4\0\u0d16\0\u0d48\0\u0d7a\0\u0dac\0\u0dde\0\u0e10\0\u0e42"+
+ "\0\u0e74\0\u0ea6\0\u0ed8\0\u0f0a\0\u0f3c\0\u0f6e\0\u0fa0\0\u0fd2"+
+ "\0\u1004\0\u1036\0\u1068\0\u109a\0\u03e8\0\u10cc\0\u10fe\0\u1130"+
+ "\0\u03e8\0\u1162\0\u1194\0\u11c6\0\u11f8\0\u122a\0\u125c\0\u128e"+
+ "\0\u12c0\0\u12f2\0\u1324\0\u1356\0\u1388\0\u13ba\0\u13ec\0\u141e"+
+ "\0\u1450\0\u0546\0\u1482\0\u14b4\0\u14e6\0\u1518\0\u154a\0\u157c"+
+ "\0\u03e8\0\u03e8\0\u0960\0\u15ae\0\u15e0\0\u1612\0\u1644\0\u1676"+
+ "\0\u16a8\0\u16da\0\u170c\0\u0546\0\u173e\0\u1770\0\u17a2\0\u17d4"+
+ "\0\u1806\0\u1838\0\u186a\0\u189c\0\u18ce\0\u1900\0\u1932\0\u1964"+
+ "\0\u1996\0\u0546\0\u19c8\0\u19fa\0\u1a2c\0\u1a5e\0\u1a90\0\u1ac2"+
+ "\0\u1af4\0\u1b26\0\u1b58\0\u0546\0\u1b8a\0\u1bbc\0\u1bee\0\u0546"+
+ "\0\u1c20\0\u1c52\0\u1c84\0\u1cb6\0\u0546\0\u1ce8\0\u1d1a\0\u0546"+
+ "\0\u1d4c\0\u0546\0\u1d7e\0\u1db0\0\u0960\0\u1de2\0\u1e14\0\u1e46"+
+ "\0\u1e78\0\u1eaa\0\u1edc\0\u1f0e\0\u1f40\0\u1f72\0\u1fa4\0\u1fd6"+
+ "\0\u0546\0\u0546\0\u2008\0\u203a\0\u206c\0\u0960\0\u209e\0\u20d0"+
+ "\0\u2102\0\u08fc\0\u2134\0\u2166\0\u2198\0\u21ca\0\u21fc\0\u222e"+
+ "\0\u0546\0\u08fc\0\u08fc\0\u2260\0\u2292\0\u0546\0\u22c4\0\u22f6"+
+ "\0\u2328\0\u235a\0\u08fc\0\u0546";
+
+ private static int [] zzUnpackRowMap() {
+ int [] result = new int[236];
+ int offset = 0;
+ offset = zzUnpackRowMap(ZZ_ROWMAP_PACKED_0, offset, result);
+ return result;
+ }
+
+ private static int zzUnpackRowMap(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 high = packed.charAt(i++) << 16;
+ result[j++] = high | packed.charAt(i++);
+ }
+ return j;
+ }
+
+ /**
+ * The transition table of the DFA
+ */
+ private static final int [] ZZ_TRANS = zzUnpackTrans();
+
+ private static final String ZZ_TRANS_PACKED_0 =
+ "\1\25\1\26\1\27\2\30\1\25\1\31\2\25\1\32"+
+ "\1\25\1\33\4\25\1\34\1\31\40\25\1\35\1\36"+
+ "\1\37\2\30\1\40\5\35\1\41\6\35\24\40\7\35"+
+ "\1\42\4\35\1\31\1\36\1\37\2\30\1\43\14\31"+
+ "\24\43\14\31\1\35\1\36\1\37\2\30\1\44\14\35"+
+ "\1\45\1\46\1\47\1\50\1\51\1\52\1\53\1\54"+
+ "\1\55\1\56\1\57\1\60\1\61\1\62\1\63\4\44"+
+ "\1\64\14\35\1\65\1\36\1\37\1\66\1\30\55\65"+
+ "\1\31\1\36\1\37\2\30\1\67\1\31\1\70\12\31"+
+ "\24\67\15\31\1\36\1\37\2\30\1\71\1\31\1\72"+
+ "\2\31\1\73\1\41\1\74\2\31\1\75\1\76\1\31"+
+ "\1\77\5\71\1\100\11\71\1\101\3\71\1\102\1\103"+
+ "\1\104\1\105\1\106\1\31\1\107\1\41\1\110\1\111"+
+ "\1\112\1\113\1\31\1\36\1\37\2\30\1\114\14\31"+
+ "\24\114\2\31\1\115\12\31\1\36\1\37\2\30\1\40"+
+ "\14\31\24\40\1\116\1\117\1\31\1\120\10\31\1\25"+
+ "\1\36\1\37\2\30\41\25\1\121\13\25\1\31\1\36"+
+ "\1\37\2\30\1\67\14\31\5\67\1\122\16\67\4\31"+
+ "\1\123\10\31\1\36\1\37\2\30\1\40\4\31\1\73"+
+ "\7\31\24\40\5\31\1\124\7\31\1\36\1\37\2\30"+
+ "\1\67\14\31\24\67\4\31\1\125\7\31\1\126\1\36"+
+ "\1\37\2\30\1\40\14\126\24\40\1\116\1\117\13\126"+
+ "\1\36\1\37\2\30\1\67\14\126\24\67\14\126\14\31"+
+ "\1\127\64\31\1\130\42\31\1\131\1\36\1\37\1\132"+
+ "\1\30\1\133\14\131\24\133\14\131\1\31\1\36\1\37"+
+ "\2\30\56\31\1\36\1\37\2\30\1\40\14\31\24\40"+
+ "\1\116\1\117\12\31\64\0\1\27\62\0\2\30\66\0"+
+ "\1\134\52\0\1\37\64\0\6\40\7\0\24\40\21\0"+
+ "\6\43\7\0\24\43\21\0\6\44\7\0\24\44\21\0"+
+ "\6\44\7\0\1\44\1\135\22\44\21\0\6\44\7\0"+
+ "\13\44\1\136\10\44\21\0\6\44\7\0\13\44\1\137"+
+ "\10\44\21\0\6\44\7\0\6\44\1\140\15\44\21\0"+
+ "\6\44\7\0\1\44\1\141\22\44\21\0\6\44\7\0"+
+ "\6\44\1\142\1\143\5\44\1\144\6\44\21\0\6\44"+
+ "\7\0\3\44\1\145\20\44\21\0\6\44\7\0\2\44"+
+ "\1\146\21\44\21\0\6\44\7\0\16\44\1\147\5\44"+
+ "\21\0\6\44\7\0\3\44\1\150\20\44\21\0\6\44"+
+ "\7\0\2\44\1\151\13\44\1\152\5\44\21\0\6\44"+
+ "\7\0\6\44\1\153\15\44\21\0\6\44\7\0\17\44"+
+ "\1\154\4\44\21\0\6\44\7\0\12\44\1\155\11\44"+
+ "\21\0\6\44\7\0\20\44\1\156\3\44\21\0\6\44"+
+ "\7\0\2\44\1\157\21\44\14\0\1\65\2\0\1\65"+
+ "\1\0\56\65\2\0\1\66\1\30\55\65\5\0\6\67"+
+ "\7\0\24\67\23\0\1\160\57\0\6\71\7\0\24\71"+
+ "\23\0\1\161\64\0\1\73\54\0\6\71\7\0\15\71"+
+ "\1\162\6\71\21\0\6\71\7\0\12\71\1\163\11\71"+
+ "\21\0\6\71\7\0\6\71\1\164\15\71\67\0\1\165"+
+ "\13\0\6\114\7\0\24\114\21\0\6\67\7\0\6\67"+
+ "\1\166\1\167\5\67\1\170\6\67\14\0\14\127\1\171"+
+ "\1\172\44\127\15\130\1\173\1\130\1\171\42\130\1\131"+
+ "\2\0\1\131\1\0\56\131\2\0\1\132\1\30\56\131"+
+ "\2\0\1\131\1\0\6\133\7\131\24\133\14\131\5\0"+
+ "\6\44\7\0\2\44\1\174\21\44\21\0\6\44\7\0"+
+ "\14\44\1\175\7\44\21\0\6\44\7\0\15\44\1\176"+
+ "\6\44\21\0\6\44\7\0\13\44\1\177\10\44\21\0"+
+ "\6\44\7\0\6\44\1\200\15\44\21\0\6\44\7\0"+
+ "\7\44\1\201\1\44\1\202\12\44\21\0\6\44\7\0"+
+ "\1\44\1\203\14\44\1\204\5\44\21\0\6\44\7\0"+
+ "\21\44\1\205\2\44\21\0\6\44\7\0\1\44\1\206"+
+ "\22\44\21\0\6\44\7\0\14\44\1\207\7\44\21\0"+
+ "\6\44\7\0\4\44\1\210\17\44\21\0\6\44\7\0"+
+ "\6\44\1\211\15\44\21\0\6\44\7\0\2\44\1\212"+
+ "\21\44\21\0\6\44\7\0\15\44\1\213\6\44\21\0"+
+ "\6\44\7\0\10\44\1\214\13\44\21\0\6\44\7\0"+
+ "\5\44\1\215\16\44\21\0\6\44\7\0\1\44\1\216"+
+ "\22\44\21\0\6\44\7\0\2\44\1\217\21\44\21\0"+
+ "\6\44\7\0\13\44\1\220\10\44\23\0\1\221\61\0"+
+ "\1\222\57\0\6\71\7\0\13\71\1\223\10\71\21\0"+
+ "\6\71\7\0\17\71\1\224\4\71\21\0\6\71\7\0"+
+ "\7\71\1\225\14\71\21\0\6\67\7\0\11\67\1\226"+
+ "\12\67\21\0\6\67\7\0\1\67\1\227\14\67\1\230"+
+ "\5\67\21\0\6\67\7\0\21\67\1\231\2\67\15\0"+
+ "\2\127\2\0\1\127\1\0\12\127\1\0\40\127\1\0"+
+ "\2\130\2\0\1\130\1\0\12\130\1\0\40\130\5\0"+
+ "\6\44\7\0\3\44\1\232\20\44\21\0\6\44\7\0"+
+ "\2\44\1\233\21\44\21\0\6\44\7\0\10\44\1\234"+
+ "\13\44\21\0\6\44\7\0\23\44\1\235\21\0\6\44"+
+ "\7\0\23\44\1\236\21\0\6\44\7\0\6\44\1\237"+
+ "\15\44\21\0\6\44\7\0\22\44\1\240\1\44\21\0"+
+ "\6\44\7\0\20\44\1\241\3\44\21\0\6\44\7\0"+
+ "\14\44\1\242\7\44\21\0\6\44\7\0\3\44\1\243"+
+ "\20\44\21\0\6\44\7\0\6\44\1\244\15\44\21\0"+
+ "\6\44\7\0\15\44\1\245\6\44\21\0\6\44\7\0"+
+ "\15\44\1\246\6\44\21\0\6\44\7\0\12\44\1\247"+
+ "\11\44\21\0\6\44\7\0\7\44\1\250\14\44\21\0"+
+ "\6\44\7\0\2\44\1\251\21\44\21\0\6\44\7\0"+
+ "\2\44\1\252\21\44\21\0\6\44\7\0\13\44\1\253"+
+ "\10\44\21\0\6\44\7\0\7\44\1\254\14\44\21\0"+
+ "\6\44\7\0\2\44\1\255\21\44\21\0\6\71\7\0"+
+ "\13\71\1\256\10\71\21\0\6\71\7\0\6\71\1\257"+
+ "\15\71\21\0\6\67\7\0\22\67\1\260\1\67\21\0"+
+ "\6\67\7\0\20\67\1\261\3\67\21\0\6\67\7\0"+
+ "\14\67\1\262\7\67\21\0\6\67\7\0\3\67\1\263"+
+ "\20\67\21\0\6\44\7\0\4\44\1\264\17\44\21\0"+
+ "\6\44\7\0\7\44\1\265\14\44\21\0\6\44\7\0"+
+ "\15\44\1\266\6\44\21\0\6\44\7\0\13\44\1\267"+
+ "\10\44\21\0\6\44\7\0\10\44\1\270\13\44\21\0"+
+ "\6\44\7\0\6\44\1\271\15\44\21\0\6\44\7\0"+
+ "\6\44\1\272\15\44\21\0\6\44\7\0\2\44\1\273"+
+ "\21\44\21\0\6\44\7\0\1\44\1\274\22\44\21\0"+
+ "\6\44\7\0\12\44\1\275\11\44\21\0\6\44\7\0"+
+ "\7\44\1\276\14\44\21\0\6\44\7\0\3\44\1\277"+
+ "\20\44\21\0\6\44\7\0\12\44\1\300\11\44\21\0"+
+ "\6\44\7\0\11\44\1\277\12\44\21\0\6\44\7\0"+
+ "\12\44\1\301\11\44\21\0\6\44\7\0\23\44\1\302"+
+ "\21\0\6\44\7\0\3\44\1\303\20\44\21\0\6\44"+
+ "\7\0\7\44\1\304\14\44\21\0\6\71\7\0\11\71"+
+ "\1\305\12\71\21\0\6\71\7\0\7\71\1\306\14\71"+
+ "\21\0\6\67\7\0\6\67\1\307\15\67\21\0\6\67"+
+ "\7\0\6\67\1\310\15\67\21\0\6\67\7\0\2\67"+
+ "\1\311\21\67\21\0\6\67\7\0\1\67\1\312\22\67"+
+ "\21\0\6\44\7\0\1\313\23\44\21\0\6\44\7\0"+
+ "\6\44\1\314\15\44\21\0\6\44\7\0\16\44\1\315"+
+ "\5\44\21\0\6\44\7\0\23\44\1\316\21\0\6\44"+
+ "\7\0\14\44\1\317\7\44\21\0\6\44\7\0\11\44"+
+ "\1\320\12\44\21\0\6\44\7\0\11\44\1\321\12\44"+
+ "\21\0\6\44\7\0\13\44\1\252\10\44\21\0\6\44"+
+ "\7\0\2\44\1\322\21\44\21\0\6\44\7\0\5\44"+
+ "\1\323\16\44\21\0\6\44\7\0\16\44\1\324\5\44"+
+ "\21\0\6\44\7\0\1\44\1\325\22\44\21\0\6\71"+
+ "\7\0\23\71\1\326\21\0\6\67\7\0\23\67\1\327"+
+ "\21\0\6\67\7\0\14\67\1\330\7\67\21\0\6\67"+
+ "\7\0\11\67\1\331\12\67\21\0\6\67\7\0\11\67"+
+ "\1\332\12\67\21\0\6\44\7\0\6\44\1\333\15\44"+
+ "\21\0\6\44\7\0\23\44\1\334\21\0\6\44\7\0"+
+ "\12\44\1\335\11\44\21\0\6\44\7\0\2\44\1\302"+
+ "\21\44\21\0\6\44\7\0\2\44\1\321\21\44\21\0"+
+ "\6\44\7\0\14\44\1\336\7\44\21\0\6\44\7\0"+
+ "\6\44\1\337\15\44\21\0\6\44\7\0\6\44\1\340"+
+ "\15\44\21\0\6\44\7\0\11\44\1\341\12\44\21\0"+
+ "\6\67\7\0\2\67\1\342\21\67\21\0\6\67\7\0"+
+ "\2\67\1\343\21\67\21\0\6\67\7\0\14\67\1\344"+
+ "\7\67\21\0\6\44\7\0\11\44\1\345\12\44\21\0"+
+ "\6\44\7\0\2\44\1\346\21\44\21\0\6\44\7\0"+
+ "\14\44\1\347\7\44\21\0\6\44\7\0\2\44\1\350"+
+ "\21\44\21\0\6\44\7\0\11\44\1\316\12\44\21\0"+
+ "\6\44\7\0\4\44\1\252\17\44\21\0\6\67\7\0"+
+ "\2\67\1\351\21\67\21\0\6\44\7\0\2\44\1\300"+
+ "\21\44\21\0\6\44\7\0\1\44\1\352\22\44\21\0"+
+ "\6\44\7\0\4\44\1\321\17\44\21\0\6\67\7\0"+
+ "\4\67\1\353\17\67\21\0\6\44\7\0\11\44\1\354"+
+ "\12\44\14\0";
+
+ private static int [] zzUnpackTrans() {
+ int [] result = new int[9100];
+ int offset = 0;
+ offset = zzUnpackTrans(ZZ_TRANS_PACKED_0, offset, result);
+ return result;
+ }
+
+ private static int zzUnpackTrans(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++);
+ value--;
+ do result[j++] = value; while (--count > 0);
+ }
+ return j;
+ }
+
+
+ /* error codes */
+ private static final int ZZ_UNKNOWN_ERROR = 0;
+ private static final int ZZ_NO_MATCH = 1;
+ private static final int ZZ_PUSHBACK_2BIG = 2;
+
+ /* error messages for the codes above */
+ private static final String[] ZZ_ERROR_MSG = {
+ "Unknown internal scanner error",
+ "Error: could not match input",
+ "Error: pushback value was too large"
+ };
+
+ /**
+ * ZZ_ATTRIBUTE[aState] contains the attributes of state aState
+ */
+ private static final int [] ZZ_ATTRIBUTE = zzUnpackAttribute();
+
+ private static final String ZZ_ATTRIBUTE_PACKED_0 =
+ "\4\0\1\1\14\0\1\1\2\0\1\11\1\1\1\11"+
+ "\1\1\1\11\1\1\3\11\1\1\1\11\1\1\2\11"+
+ "\31\1\3\11\3\1\4\11\1\1\5\11\1\1\5\11"+
+ "\1\1\4\11\31\1\2\0\3\1\1\11\3\1\1\11"+
+ "\2\0\25\1\2\11\132\1";
+
+ private static int [] zzUnpackAttribute() {
+ int [] result = new int[236];
+ 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 input device */
+ private java.io.Reader zzReader;
+
+ /** 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 = "";
+
+ /** the textposition at the last accepting state */
+ private int zzMarkedPos;
+
+ /** 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 int _typeLevel = 0;
+ private boolean _typeReq = false;
+ public _LuaDocLexer() {
+ this((java.io.Reader) null);
+ }
+
+ private void beginType() {
+ yybegin(xTYPE_REF);
+ _typeLevel = 0;
+ _typeReq = true;
+ }
+
+
+ /**
+ * Creates a new scanner
+ *
+ * @param in the java.io.Reader to read input from.
+ */
+ public _LuaDocLexer(java.io.Reader in) {
+ this.zzReader = in;
+ }
+
+
+ /**
+ * Unpacks the compressed character translation table.
+ *
+ * @param packed the packed character translation table
+ * @return the unpacked character translation table
+ */
+ private static char [] zzUnpackCMap(String packed) {
+ int size = 0;
+ for (int i = 0, length = packed.length(); i < length; i += 2) {
+ size += packed.charAt(i);
+ }
+ char[] map = new char[size];
+ int i = 0; /* index in packed string */
+ int j = 0; /* index in unpacked array */
+ while (i < packed.length()) {
+ int count = packed.charAt(i++);
+ char value = packed.charAt(i++);
+ do map[j++] = value; while (--count > 0);
+ }
+ return map;
+ }
+
+ public final int getTokenStart() {
+ return zzStartRead;
+ }
+
+ public final int getTokenEnd() {
+ return getTokenStart() + yylength();
+ }
+
+ public void reset(CharSequence buffer, int start, int end, int initialState) {
+ zzBuffer = buffer;
+ zzCurrentPos = zzMarkedPos = zzStartRead = start;
+ zzAtEOF = false;
+ zzAtBOL = true;
+ zzEndRead = end;
+ yybegin(initialState);
+ }
+
+ /**
+ * Refills the input buffer.
+ *
+ * @return {@code false}, 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 {@code 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 zzBuffer.charAt(zzStartRead+pos);
+ }
+
+
+ /**
+ * Returns the length of the matched text region.
+ */
+ public final int yylength() {
+ return zzMarkedPos-zzStartRead;
+ }
+
+
+ /**
+ * Reports an error that occurred 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;
+
+ 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];
+
+ // set up zzAction for empty match case:
+ int zzAttributes = zzAttrL[zzState];
+ if ( (zzAttributes & 1) == 1 ) {
+ zzAction = zzState;
+ }
+
+
+ zzForAction: {
+ while (true) {
+
+ if (zzCurrentPosL < zzEndReadL) {
+ zzInput = Character.codePointAt(zzBufferL, zzCurrentPosL/*, zzEndReadL*/);
+ zzCurrentPosL += Character.charCount(zzInput);
+ }
+ 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 = Character.codePointAt(zzBufferL, zzCurrentPosL/*, zzEndReadL*/);
+ zzCurrentPosL += Character.charCount(zzInput);
+ }
+ }
+ int zzNext = zzTransL[ zzRowMapL[zzState] + ZZ_CMAP(zzInput) ];
+ if (zzNext == -1) break zzForAction;
+ zzState = zzNext;
+
+ zzAttributes = zzAttrL[zzState];
+ if ( (zzAttributes & 1) == 1 ) {
+ zzAction = zzState;
+ zzMarkedPosL = zzCurrentPosL;
+ if ( (zzAttributes & 8) == 8 ) break zzForAction;
+ }
+
+ }
+ }
+
+ // store back cached position
+ zzMarkedPos = zzMarkedPosL;
+
+ if (zzInput == YYEOF && zzStartRead == zzCurrentPos) {
+ zzAtEOF = true;
+ zzDoEOF();
+ return null;
+ }
+ else {
+ switch (zzAction < 0 ? zzAction : ZZ_ACTION[zzAction]) {
+ case 1:
+ { yybegin(YYINITIAL); return STRING;
+ }
+ // fall through
+ case 64: break;
+ case 2:
+ { return STRING_LITERAL;
+ }
+ // fall through
+ case 65: break;
+ case 3:
+ { yybegin(xCOMMENT_STRING); yypushback(yylength());
+ }
+ // fall through
+ case 66: break;
+ case 4:
+ { yybegin(YYINITIAL); return com.intellij.psi.TokenType.WHITE_SPACE;
+ }
+ // fall through
+ case 67: break;
+ case 5:
+ { return com.intellij.psi.TokenType.WHITE_SPACE;
+ }
+ // fall through
+ case 68: break;
+ case 6:
+ { return TokenType.WHITE_SPACE;
+ }
+ // fall through
+ case 69: break;
+ case 7:
+ { yybegin(xTAG_NAME); return AT;
+ }
+ // fall through
+ case 70: break;
+ case 8:
+ { yybegin(xTAG_ENUMFIELD); ;return OR;
+ }
+ // fall through
+ case 71: break;
+ case 9:
+ { return com.intellij.psi.TokenType.BAD_CHARACTER;
+ }
+ // fall through
+ case 72: break;
+ case 10:
+ { yybegin(YYINITIAL);return com.intellij.psi.TokenType.WHITE_SPACE;
+ }
+ // fall through
+ case 73: break;
+ case 11:
+ { return ID;
+ }
+ // fall through
+ case 74: break;
+ case 12:
+ { yybegin(xCOMMENT_STRING); return STRING_BEGIN;
+ }
+ // fall through
+ case 75: break;
+ case 13:
+ { return SHARP;
+ }
+ // fall through
+ case 76: break;
+ case 14:
+ { yybegin(xCOMMENT_STRING); return ID;
+ }
+ // fall through
+ case 77: break;
+ case 15:
+ { yybegin(xCOMMENT_STRING); return TAG_NAME;
+ }
+ // fall through
+ case 78: break;
+ case 16:
+ { beginType(); return ID;
+ }
+ // fall through
+ case 79: break;
+ case 17:
+ { if (_typeReq || _typeLevel > 0) { _typeReq = false; return ID; } else { yybegin(xCOMMENT_STRING); yypushback(yylength()); }
+ }
+ // fall through
+ case 80: break;
+ case 18:
+ { return NUMBER;
+ }
+ // fall through
+ case 81: break;
+ case 19:
+ { yybegin(xDOUBLE_QUOTED_STRING); yypushback(yylength());
+ }
+ // fall through
+ case 82: break;
+ case 20:
+ { yybegin(xSINGLE_QUOTED_STRING); yypushback(yylength());
+ }
+ // fall through
+ case 83: break;
+ case 21:
+ { _typeReq = true; return OR;
+ }
+ // fall through
+ case 84: break;
+ case 22:
+ { _typeReq = true; return EXTENDS;
+ }
+ // fall through
+ case 85: break;
+ case 23:
+ { _typeReq = true; return COMMA;
+ }
+ // fall through
+ case 86: break;
+ case 24:
+ { _typeLevel++; return LT;
+ }
+ // fall through
+ case 87: break;
+ case 25:
+ { _typeLevel--; _typeReq = false; return GT;
+ }
+ // fall through
+ case 88: break;
+ case 26:
+ { return NULLABLE;
+ }
+ // fall through
+ case 89: break;
+ case 27:
+ { _typeLevel++; return LPAREN;
+ }
+ // fall through
+ case 90: break;
+ case 28:
+ { _typeLevel--; _typeReq = false; return RPAREN;
+ }
+ // fall through
+ case 91: break;
+ case 29:
+ { _typeLevel++; return LCURLY;
+ }
+ // fall through
+ case 92: break;
+ case 30:
+ { _typeLevel--; _typeReq = false; return RCURLY;
+ }
+ // fall through
+ case 93: break;
+ case 31:
+ { yybegin(xCLASS_EXTEND); return ID;
+ }
+ // fall through
+ case 94: break;
+ case 32:
+ { yybegin(xCLASS_GENERIC); return LT;
+ }
+ // fall through
+ case 95: break;
+ case 33:
+ { return EXTENDS;
+ }
+ // fall through
+ case 96: break;
+ case 34:
+ { return COMMA;
+ }
+ // fall through
+ case 97: break;
+ case 35:
+ { return GT;
+ }
+ // fall through
+ case 98: break;
+ case 36:
+ { beginType(); return EXTENDS;
+ }
+ // fall through
+ case 99: break;
+ case 37:
+ { yybegin(xFIELD_ID); yypushback(yylength());
+ }
+ // fall through
+ case 100: break;
+ case 38:
+ { yybegin(xFIELD_ID); return RBRACK;
+ }
+ // fall through
+ case 101: break;
+ case 39:
+ { yybegin(xFIELD_INDEX); return LBRACK;
+ }
+ // fall through
+ case 102: break;
+ case 40:
+ { yybegin(YYINITIAL); yypushback(yylength());
+ }
+ // fall through
+ case 103: break;
+ case 41:
+ { yybegin(xTYPE_REF); return STRING_LITERAL;
+ }
+ // fall through
+ case 104: break;
+ case 42:
+ { return DASHES;
+ }
+ // fall through
+ case 105: break;
+ case 43:
+ { _typeReq = false; return ARR;
+ }
+ // fall through
+ case 106: break;
+ case 44:
+ { yybegin(xTAG); return TAG_NAME;
+ }
+ // fall through
+ case 107: break;
+ case 45:
+ { return FUN;
+ }
+ // fall through
+ case 108: break;
+ case 46:
+ { yybegin(xENUM); return TAG_NAME;
+ }
+ // fall through
+ case 109: break;
+ case 47:
+ { beginType(); return TAG_NAME;
+ }
+ // fall through
+ case 110: break;
+ case 48:
+ { yybegin(xFIELD); return TAG_NAME;
+ }
+ // fall through
+ case 111: break;
+ case 49:
+ { yybegin(xPARAM); return TAG_NAME;
+ }
+ // fall through
+ case 112: break;
+ case 50:
+ { yybegin(xALIAS); return TAG_NAME;
+ }
+ // fall through
+ case 113: break;
+ case 51:
+ { yybegin(xCLASS); return TAG_NAME;
+ }
+ // fall through
+ case 114: break;
+ case 52:
+ { yybegin(xTAG_WITH_ID); return TAG_NAME;
+ }
+ // fall through
+ case 115: break;
+ case 53:
+ { return ASYNC;
+ }
+ // fall through
+ case 116: break;
+ case 54:
+ { return TAG_NAME;
+ }
+ // fall through
+ case 117: break;
+ case 55:
+ { yybegin(xMODULE); return TAG_NAME;
+ }
+ // fall through
+ case 118: break;
+ case 56:
+ { _typeReq = true; return VARARG;
+ }
+ // fall through
+ case 119: break;
+ case 57:
+ { yybegin(xFIELD_ID); return PUBLIC;
+ }
+ // fall through
+ case 120: break;
+ case 58:
+ { yybegin(xGENERIC); return TAG_NAME;
+ }
+ // fall through
+ case 121: break;
+ case 59:
+ { yybegin(xFIELD_ID); return PACKAGE;
+ }
+ // fall through
+ case 122: break;
+ case 60:
+ { yybegin(xFIELD_ID); return PRIVATE;
+ }
+ // fall through
+ case 123: break;
+ case 61:
+ { yybegin(xTAG_WITH_ID); return TAG_NAME_LANGUAGE;
+ }
+ // fall through
+ case 124: break;
+ case 62:
+ { yybegin(xFIELD_ID); return PROTECTED;
+ }
+ // fall through
+ case 125: break;
+ case 63:
+ { yybegin(xTAG_DIAGNOSTIC); return TAG_NAME;
+ }
+ // fall through
+ case 126: break;
+ default:
+ zzScanError(ZZ_NO_MATCH);
+ }
+ }
+ }
+ }
+
+
+}
diff --git a/src/main/gen/com/tang/intellij/lua/comment/parser/LuaDocParser.java b/src/main/gen/com/tang/intellij/lua/comment/parser/LuaDocParser.java
new file mode 100644
index 0000000..4d98568
--- /dev/null
+++ b/src/main/gen/com/tang/intellij/lua/comment/parser/LuaDocParser.java
@@ -0,0 +1,194 @@
+// This is a generated file. Not intended for manual editing.
+package com.tang.intellij.lua.comment.parser;
+
+import com.intellij.lang.PsiBuilder;
+import com.intellij.lang.PsiBuilder.Marker;
+import static com.tang.intellij.lua.comment.psi.LuaDocTypes.*;
+import static com.tang.intellij.lua.psi.LuaParserUtil.*;
+import com.intellij.psi.tree.IElementType;
+import com.intellij.lang.ASTNode;
+import com.intellij.psi.tree.TokenSet;
+import com.intellij.lang.PsiParser;
+import com.intellij.lang.LightPsiParser;
+
+@SuppressWarnings({"SimplifiableIfStatement", "UnusedAssignment"})
+public class LuaDocParser implements PsiParser, LightPsiParser {
+
+ public ASTNode parse(IElementType t, PsiBuilder b) {
+ parseLight(t, b);
+ return b.getTreeBuilt();
+ }
+
+ public void parseLight(IElementType t, PsiBuilder b) {
+ boolean r;
+ b = adapt_builder_(t, b, this, null);
+ Marker m = enter_section_(b, 0, _COLLAPSE_, null);
+ r = parse_root_(t, b);
+ exit_section_(b, 0, m, t, r, true, TRUE_CONDITION);
+ }
+
+ protected boolean parse_root_(IElementType t, PsiBuilder b) {
+ return parse_root_(t, b, 0);
+ }
+
+ static boolean parse_root_(IElementType t, PsiBuilder b, int l) {
+ return doc(b, l + 1);
+ }
+
+ /* ********************************************************** */
+ // doc_item | STRING
+ static boolean after_dash(PsiBuilder b, int l) {
+ if (!recursion_guard_(b, l, "after_dash")) return false;
+ boolean r;
+ Marker m = enter_section_(b, l, _NONE_);
+ r = doc_item(b, l + 1);
+ if (!r) r = consumeToken(b, STRING);
+ exit_section_(b, l, m, r, false, LuaDocParser::after_dash_recover);
+ return r;
+ }
+
+ /* ********************************************************** */
+ // !(DASHES)
+ static boolean after_dash_recover(PsiBuilder b, int l) {
+ if (!recursion_guard_(b, l, "after_dash_recover")) return false;
+ boolean r;
+ Marker m = enter_section_(b, l, _NOT_);
+ r = !consumeToken(b, DASHES);
+ exit_section_(b, l, m, r, false, null);
+ return r;
+ }
+
+ /* ********************************************************** */
+ // ID | STRING | NUMBER | AT | SHARP | EQ | COMMA | EXTENDS | OR | GT | LT | LPAREN | RPAREN | LCURLY | RCURLY
+ // | STRING_LITERAL | ARR | FUN | VARARG | PRIVATE | PROTECTED | PUBLIC | DASHES | STRING_BEGIN | TAG_NAME |
+ // TAG_NAME_LANGUAGE | ASYNC | NULLABLE | LBRACK | RBRACK | PACKAGE
+ public static boolean any(PsiBuilder b, int l) {
+ if (!recursion_guard_(b, l, "any")) return false;
+ boolean r;
+ Marker m = enter_section_(b, l, _NONE_, ANY, "");
+ r = consumeToken(b, ID);
+ if (!r) r = consumeToken(b, STRING);
+ if (!r) r = consumeToken(b, NUMBER);
+ if (!r) r = consumeToken(b, AT);
+ if (!r) r = consumeToken(b, SHARP);
+ if (!r) r = consumeToken(b, EQ);
+ if (!r) r = consumeToken(b, COMMA);
+ if (!r) r = consumeToken(b, EXTENDS);
+ if (!r) r = consumeToken(b, OR);
+ if (!r) r = consumeToken(b, GT);
+ if (!r) r = consumeToken(b, LT);
+ if (!r) r = consumeToken(b, LPAREN);
+ if (!r) r = consumeToken(b, RPAREN);
+ if (!r) r = consumeToken(b, LCURLY);
+ if (!r) r = consumeToken(b, RCURLY);
+ if (!r) r = consumeToken(b, STRING_LITERAL);
+ if (!r) r = consumeToken(b, ARR);
+ if (!r) r = consumeToken(b, FUN);
+ if (!r) r = consumeToken(b, VARARG);
+ if (!r) r = consumeToken(b, PRIVATE);
+ if (!r) r = consumeToken(b, PROTECTED);
+ if (!r) r = consumeToken(b, PUBLIC);
+ if (!r) r = consumeToken(b, DASHES);
+ if (!r) r = consumeToken(b, STRING_BEGIN);
+ if (!r) r = consumeToken(b, TAG_NAME);
+ if (!r) r = consumeToken(b, TAG_NAME_LANGUAGE);
+ if (!r) r = consumeToken(b, ASYNC);
+ if (!r) r = consumeToken(b, NULLABLE);
+ if (!r) r = consumeToken(b, LBRACK);
+ if (!r) r = consumeToken(b, RBRACK);
+ if (!r) r = consumeToken(b, PACKAGE);
+ exit_section_(b, l, m, r, false, null);
+ return r;
+ }
+
+ /* ********************************************************** */
+ // (DASHES after_dash?)*
+ static boolean doc(PsiBuilder b, int l) {
+ if (!recursion_guard_(b, l, "doc")) return false;
+ while (true) {
+ int c = current_position_(b);
+ if (!doc_0(b, l + 1)) break;
+ if (!empty_element_parsed_guard_(b, "doc", c)) break;
+ }
+ return true;
+ }
+
+ // DASHES after_dash?
+ private static boolean doc_0(PsiBuilder b, int l) {
+ if (!recursion_guard_(b, l, "doc_0")) return false;
+ boolean r;
+ Marker m = enter_section_(b);
+ r = consumeToken(b, DASHES);
+ r = r && doc_0_1(b, l + 1);
+ exit_section_(b, m, null, r);
+ return r;
+ }
+
+ // after_dash?
+ private static boolean doc_0_1(PsiBuilder b, int l) {
+ if (!recursion_guard_(b, l, "doc_0_1")) return false;
+ after_dash(b, l + 1);
+ return true;
+ }
+
+ /* ********************************************************** */
+ // '@' (tag_normal|tag_lan)
+ static boolean doc_item(PsiBuilder b, int l) {
+ if (!recursion_guard_(b, l, "doc_item")) return false;
+ if (!nextTokenIs(b, AT)) return false;
+ boolean r;
+ Marker m = enter_section_(b);
+ r = consumeToken(b, AT);
+ r = r && doc_item_1(b, l + 1);
+ exit_section_(b, m, null, r);
+ return r;
+ }
+
+ // tag_normal|tag_lan
+ private static boolean doc_item_1(PsiBuilder b, int l) {
+ if (!recursion_guard_(b, l, "doc_item_1")) return false;
+ boolean r;
+ Marker m = enter_section_(b);
+ r = tag_normal(b, l + 1);
+ if (!r) r = tag_lan(b, l + 1);
+ exit_section_(b, m, null, r);
+ return r;
+ }
+
+ /* ********************************************************** */
+ // TAG_NAME_LANGUAGE ID
+ public static boolean tag_lan(PsiBuilder b, int l) {
+ if (!recursion_guard_(b, l, "tag_lan")) return false;
+ boolean r, p;
+ Marker m = enter_section_(b, l, _NONE_, TAG_LAN, "");
+ r = consumeTokens(b, 1, TAG_NAME_LANGUAGE, ID);
+ p = r; // pin = 1
+ exit_section_(b, l, m, r, p, LuaDocParser::after_dash_recover);
+ return r || p;
+ }
+
+ /* ********************************************************** */
+ // TAG_NAME any*
+ public static boolean tag_normal(PsiBuilder b, int l) {
+ if (!recursion_guard_(b, l, "tag_normal")) return false;
+ boolean r, p;
+ Marker m = enter_section_(b, l, _NONE_, TAG_NORMAL, "");
+ r = consumeToken(b, TAG_NAME);
+ p = r; // pin = 1
+ r = r && tag_normal_1(b, l + 1);
+ exit_section_(b, l, m, r, p, LuaDocParser::after_dash_recover);
+ return r || p;
+ }
+
+ // any*
+ private static boolean tag_normal_1(PsiBuilder b, int l) {
+ if (!recursion_guard_(b, l, "tag_normal_1")) return false;
+ while (true) {
+ int c = current_position_(b);
+ if (!any(b, l + 1)) break;
+ if (!empty_element_parsed_guard_(b, "tag_normal_1", c)) break;
+ }
+ return true;
+ }
+
+}
diff --git a/gen/com/tang/intellij/lua/comment/psi/LuaDocCommentString.java b/src/main/gen/com/tang/intellij/lua/comment/psi/LuaDocAny.java
similarity index 65%
rename from gen/com/tang/intellij/lua/comment/psi/LuaDocCommentString.java
rename to src/main/gen/com/tang/intellij/lua/comment/psi/LuaDocAny.java
index d687da9..518e840 100644
--- a/gen/com/tang/intellij/lua/comment/psi/LuaDocCommentString.java
+++ b/src/main/gen/com/tang/intellij/lua/comment/psi/LuaDocAny.java
@@ -5,9 +5,12 @@
import org.jetbrains.annotations.*;
import com.intellij.psi.PsiElement;
-public interface LuaDocCommentString extends LuaDocPsiElement {
+public interface LuaDocAny extends LuaDocPsiElement {
@Nullable
- PsiElement getString();
+ PsiElement getId();
+
+ @Nullable
+ PsiElement getNumber();
}
diff --git a/gen/com/tang/intellij/lua/comment/psi/LuaDocTagLan.java b/src/main/gen/com/tang/intellij/lua/comment/psi/LuaDocTagLan.java
similarity index 84%
rename from gen/com/tang/intellij/lua/comment/psi/LuaDocTagLan.java
rename to src/main/gen/com/tang/intellij/lua/comment/psi/LuaDocTagLan.java
index 0e31582..997107d 100644
--- a/gen/com/tang/intellij/lua/comment/psi/LuaDocTagLan.java
+++ b/src/main/gen/com/tang/intellij/lua/comment/psi/LuaDocTagLan.java
@@ -7,9 +7,6 @@
public interface LuaDocTagLan extends LuaDocTag {
- @Nullable
- LuaDocCommentString getCommentString();
-
@Nullable
PsiElement getId();
diff --git a/gen/com/tang/intellij/lua/comment/psi/LuaDocAccessModifier.java b/src/main/gen/com/tang/intellij/lua/comment/psi/LuaDocTagNormal.java
similarity index 68%
rename from gen/com/tang/intellij/lua/comment/psi/LuaDocAccessModifier.java
rename to src/main/gen/com/tang/intellij/lua/comment/psi/LuaDocTagNormal.java
index 06e722d..ee70562 100644
--- a/gen/com/tang/intellij/lua/comment/psi/LuaDocAccessModifier.java
+++ b/src/main/gen/com/tang/intellij/lua/comment/psi/LuaDocTagNormal.java
@@ -5,6 +5,9 @@
import org.jetbrains.annotations.*;
import com.intellij.psi.PsiElement;
-public interface LuaDocAccessModifier extends LuaDocPsiElement {
+public interface LuaDocTagNormal extends LuaDocTag {
+
+ @NotNull
+ List getAnyList();
}
diff --git a/src/main/gen/com/tang/intellij/lua/comment/psi/LuaDocTypes.java b/src/main/gen/com/tang/intellij/lua/comment/psi/LuaDocTypes.java
new file mode 100644
index 0000000..9e15dfe
--- /dev/null
+++ b/src/main/gen/com/tang/intellij/lua/comment/psi/LuaDocTypes.java
@@ -0,0 +1,63 @@
+// This is a generated file. Not intended for manual editing.
+package com.tang.intellij.lua.comment.psi;
+
+import com.intellij.psi.tree.IElementType;
+import com.intellij.psi.PsiElement;
+import com.intellij.lang.ASTNode;
+import com.tang.intellij.lua.lang.LuaParserDefinitionKt;
+import com.tang.intellij.lua.comment.psi.impl.*;
+
+public interface LuaDocTypes {
+
+ IElementType ANY = LuaParserDefinitionKt.createDocType("ANY");
+ IElementType TAG_LAN = LuaParserDefinitionKt.createDocType("TAG_LAN");
+ IElementType TAG_NORMAL = LuaParserDefinitionKt.createDocType("TAG_NORMAL");
+
+ IElementType ARR = new LuaDocTokenType("[]");
+ IElementType ASYNC = new LuaDocTokenType("async");
+ IElementType AT = new LuaDocTokenType("@");
+ IElementType COMMA = new LuaDocTokenType(",");
+ IElementType DASHES = new LuaDocTokenType("DASHES");
+ IElementType EQ = new LuaDocTokenType("=");
+ IElementType EXTENDS = new LuaDocTokenType(":");
+ IElementType FUN = new LuaDocTokenType("fun");
+ IElementType GT = new LuaDocTokenType(">");
+ IElementType ID = new LuaDocTokenType("ID");
+ IElementType LBRACK = new LuaDocTokenType("[");
+ IElementType LCURLY = new LuaDocTokenType("{");
+ IElementType LPAREN = new LuaDocTokenType("(");
+ IElementType LT = new LuaDocTokenType("<");
+ IElementType NULLABLE = new LuaDocTokenType("?");
+ IElementType NUMBER = new LuaDocTokenType("NUMBER");
+ IElementType OR = new LuaDocTokenType("|");
+ IElementType PACKAGE = new LuaDocTokenType("package");
+ IElementType PRIVATE = new LuaDocTokenType("private");
+ IElementType PROTECTED = new LuaDocTokenType("protected");
+ IElementType PUBLIC = new LuaDocTokenType("public");
+ IElementType RBRACK = new LuaDocTokenType("]");
+ IElementType RCURLY = new LuaDocTokenType("}");
+ IElementType RPAREN = new LuaDocTokenType(")");
+ IElementType SHARP = new LuaDocTokenType("#");
+ IElementType STRING = new LuaDocTokenType("STRING");
+ IElementType STRING_BEGIN = new LuaDocTokenType("STRING_BEGIN");
+ IElementType STRING_LITERAL = new LuaDocTokenType("STRING_LITERAL");
+ IElementType TAG_NAME = new LuaDocTokenType("TAG_NAME");
+ IElementType TAG_NAME_LANGUAGE = new LuaDocTokenType("language");
+ IElementType VARARG = new LuaDocTokenType("vararg");
+
+ class Factory {
+ public static PsiElement createElement(ASTNode node) {
+ IElementType type = node.getElementType();
+ if (type == ANY) {
+ return new LuaDocAnyImpl(node);
+ }
+ else if (type == TAG_LAN) {
+ return new LuaDocTagLanImpl(node);
+ }
+ else if (type == TAG_NORMAL) {
+ return new LuaDocTagNormalImpl(node);
+ }
+ throw new AssertionError("Unknown element type: " + type);
+ }
+ }
+}
diff --git a/src/main/gen/com/tang/intellij/lua/comment/psi/LuaDocVisitor.java b/src/main/gen/com/tang/intellij/lua/comment/psi/LuaDocVisitor.java
new file mode 100644
index 0000000..4287b7b
--- /dev/null
+++ b/src/main/gen/com/tang/intellij/lua/comment/psi/LuaDocVisitor.java
@@ -0,0 +1,29 @@
+// This is a generated file. Not intended for manual editing.
+package com.tang.intellij.lua.comment.psi;
+
+import org.jetbrains.annotations.*;
+import com.intellij.psi.PsiElementVisitor;
+
+public class LuaDocVisitor extends PsiElementVisitor {
+
+ public void visitAny(@NotNull LuaDocAny o) {
+ visitPsiElement(o);
+ }
+
+ public void visitTagLan(@NotNull LuaDocTagLan o) {
+ visitTag(o);
+ }
+
+ public void visitTagNormal(@NotNull LuaDocTagNormal o) {
+ visitTag(o);
+ }
+
+ public void visitTag(@NotNull LuaDocTag o) {
+ visitPsiElement(o);
+ }
+
+ public void visitPsiElement(@NotNull LuaDocPsiElement o) {
+ visitElement(o);
+ }
+
+}
diff --git a/gen/com/tang/intellij/lua/comment/psi/impl/LuaDocTagClassImpl.java b/src/main/gen/com/tang/intellij/lua/comment/psi/impl/LuaDocAnyImpl.java
similarity index 71%
rename from gen/com/tang/intellij/lua/comment/psi/impl/LuaDocTagClassImpl.java
rename to src/main/gen/com/tang/intellij/lua/comment/psi/impl/LuaDocAnyImpl.java
index fd592ac..7a0c943 100644
--- a/gen/com/tang/intellij/lua/comment/psi/impl/LuaDocTagClassImpl.java
+++ b/src/main/gen/com/tang/intellij/lua/comment/psi/impl/LuaDocAnyImpl.java
@@ -11,14 +11,14 @@
import com.intellij.extapi.psi.ASTWrapperPsiElement;
import com.tang.intellij.lua.comment.psi.*;
-public class LuaDocTagClassImpl extends ASTWrapperPsiElement implements LuaDocTagClass {
+public class LuaDocAnyImpl extends ASTWrapperPsiElement implements LuaDocAny {
- public LuaDocTagClassImpl(@NotNull ASTNode node) {
+ public LuaDocAnyImpl(@NotNull ASTNode node) {
super(node);
}
public void accept(@NotNull LuaDocVisitor visitor) {
- visitor.visitTagClass(this);
+ visitor.visitAny(this);
}
@Override
@@ -29,8 +29,14 @@ public void accept(@NotNull PsiElementVisitor visitor) {
@Override
@Nullable
- public LuaDocCommentString getCommentString() {
- return findChildByClass(LuaDocCommentString.class);
+ public PsiElement getId() {
+ return findChildByType(ID);
+ }
+
+ @Override
+ @Nullable
+ public PsiElement getNumber() {
+ return findChildByType(NUMBER);
}
}
diff --git a/gen/com/tang/intellij/lua/comment/psi/impl/LuaDocTagLanImpl.java b/src/main/gen/com/tang/intellij/lua/comment/psi/impl/LuaDocTagLanImpl.java
similarity index 88%
rename from gen/com/tang/intellij/lua/comment/psi/impl/LuaDocTagLanImpl.java
rename to src/main/gen/com/tang/intellij/lua/comment/psi/impl/LuaDocTagLanImpl.java
index a0eef08..4fff9ab 100644
--- a/gen/com/tang/intellij/lua/comment/psi/impl/LuaDocTagLanImpl.java
+++ b/src/main/gen/com/tang/intellij/lua/comment/psi/impl/LuaDocTagLanImpl.java
@@ -27,12 +27,6 @@ public void accept(@NotNull PsiElementVisitor visitor) {
else super.accept(visitor);
}
- @Override
- @Nullable
- public LuaDocCommentString getCommentString() {
- return findChildByClass(LuaDocCommentString.class);
- }
-
@Override
@Nullable
public PsiElement getId() {
diff --git a/gen/com/tang/intellij/lua/comment/psi/impl/LuaDocTagAliasImpl.java b/src/main/gen/com/tang/intellij/lua/comment/psi/impl/LuaDocTagNormalImpl.java
similarity index 71%
rename from gen/com/tang/intellij/lua/comment/psi/impl/LuaDocTagAliasImpl.java
rename to src/main/gen/com/tang/intellij/lua/comment/psi/impl/LuaDocTagNormalImpl.java
index faf4bea..fa56c1c 100644
--- a/gen/com/tang/intellij/lua/comment/psi/impl/LuaDocTagAliasImpl.java
+++ b/src/main/gen/com/tang/intellij/lua/comment/psi/impl/LuaDocTagNormalImpl.java
@@ -11,14 +11,14 @@
import com.intellij.extapi.psi.ASTWrapperPsiElement;
import com.tang.intellij.lua.comment.psi.*;
-public class LuaDocTagAliasImpl extends ASTWrapperPsiElement implements LuaDocTagAlias {
+public class LuaDocTagNormalImpl extends ASTWrapperPsiElement implements LuaDocTagNormal {
- public LuaDocTagAliasImpl(@NotNull ASTNode node) {
+ public LuaDocTagNormalImpl(@NotNull ASTNode node) {
super(node);
}
public void accept(@NotNull LuaDocVisitor visitor) {
- visitor.visitTagAlias(this);
+ visitor.visitTagNormal(this);
}
@Override
@@ -28,9 +28,9 @@ public void accept(@NotNull PsiElementVisitor visitor) {
}
@Override
- @Nullable
- public LuaDocCommentString getCommentString() {
- return findChildByClass(LuaDocCommentString.class);
+ @NotNull
+ public List getAnyList() {
+ return PsiTreeUtil.getChildrenOfTypeAsList(this, LuaDocAny.class);
}
}
diff --git a/gen/com/tang/intellij/lua/lexer/_LuaLexer.java b/src/main/gen/com/tang/intellij/lua/lexer/_LuaLexer.java
similarity index 99%
rename from gen/com/tang/intellij/lua/lexer/_LuaLexer.java
rename to src/main/gen/com/tang/intellij/lua/lexer/_LuaLexer.java
index a387370..bf08261 100644
--- a/gen/com/tang/intellij/lua/lexer/_LuaLexer.java
+++ b/src/main/gen/com/tang/intellij/lua/lexer/_LuaLexer.java
@@ -515,7 +515,7 @@ public void reset(CharSequence buffer, int start, int end, int initialState) {
/**
* Refills the input buffer.
*
- * @return false
, iff there was new input.
+ * @return {@code false}, iff there was new input.
*
* @exception java.io.IOException if any I/O-Error occurs
*/
@@ -551,7 +551,7 @@ public final CharSequence yytext() {
/**
- * Returns the character at position pos from the
+ * Returns the character at position {@code pos} from the
* matched text.
*
* It is equivalent to yytext().charAt(pos), but faster
diff --git a/gen/com/tang/intellij/lua/parser/LuaParser.java b/src/main/gen/com/tang/intellij/lua/parser/LuaParser.java
similarity index 100%
rename from gen/com/tang/intellij/lua/parser/LuaParser.java
rename to src/main/gen/com/tang/intellij/lua/parser/LuaParser.java
diff --git a/gen/com/tang/intellij/lua/psi/LuaArgs.java b/src/main/gen/com/tang/intellij/lua/psi/LuaArgs.java
similarity index 100%
rename from gen/com/tang/intellij/lua/psi/LuaArgs.java
rename to src/main/gen/com/tang/intellij/lua/psi/LuaArgs.java
diff --git a/gen/com/tang/intellij/lua/psi/LuaAssignStat.java b/src/main/gen/com/tang/intellij/lua/psi/LuaAssignStat.java
similarity index 100%
rename from gen/com/tang/intellij/lua/psi/LuaAssignStat.java
rename to src/main/gen/com/tang/intellij/lua/psi/LuaAssignStat.java
diff --git a/gen/com/tang/intellij/lua/psi/LuaAttribute.java b/src/main/gen/com/tang/intellij/lua/psi/LuaAttribute.java
similarity index 100%
rename from gen/com/tang/intellij/lua/psi/LuaAttribute.java
rename to src/main/gen/com/tang/intellij/lua/psi/LuaAttribute.java
diff --git a/gen/com/tang/intellij/lua/psi/LuaBinaryExpr.java b/src/main/gen/com/tang/intellij/lua/psi/LuaBinaryExpr.java
similarity index 100%
rename from gen/com/tang/intellij/lua/psi/LuaBinaryExpr.java
rename to src/main/gen/com/tang/intellij/lua/psi/LuaBinaryExpr.java
diff --git a/gen/com/tang/intellij/lua/psi/LuaBinaryOp.java b/src/main/gen/com/tang/intellij/lua/psi/LuaBinaryOp.java
similarity index 100%
rename from gen/com/tang/intellij/lua/psi/LuaBinaryOp.java
rename to src/main/gen/com/tang/intellij/lua/psi/LuaBinaryOp.java
diff --git a/gen/com/tang/intellij/lua/psi/LuaBlock.java b/src/main/gen/com/tang/intellij/lua/psi/LuaBlock.java
similarity index 100%
rename from gen/com/tang/intellij/lua/psi/LuaBlock.java
rename to src/main/gen/com/tang/intellij/lua/psi/LuaBlock.java
diff --git a/gen/com/tang/intellij/lua/psi/LuaBreakStat.java b/src/main/gen/com/tang/intellij/lua/psi/LuaBreakStat.java
similarity index 100%
rename from gen/com/tang/intellij/lua/psi/LuaBreakStat.java
rename to src/main/gen/com/tang/intellij/lua/psi/LuaBreakStat.java
diff --git a/gen/com/tang/intellij/lua/psi/LuaCallExpr.java b/src/main/gen/com/tang/intellij/lua/psi/LuaCallExpr.java
similarity index 100%
rename from gen/com/tang/intellij/lua/psi/LuaCallExpr.java
rename to src/main/gen/com/tang/intellij/lua/psi/LuaCallExpr.java
diff --git a/gen/com/tang/intellij/lua/psi/LuaClassMethodDef.java b/src/main/gen/com/tang/intellij/lua/psi/LuaClassMethodDef.java
similarity index 100%
rename from gen/com/tang/intellij/lua/psi/LuaClassMethodDef.java
rename to src/main/gen/com/tang/intellij/lua/psi/LuaClassMethodDef.java
diff --git a/gen/com/tang/intellij/lua/psi/LuaClassMethodName.java b/src/main/gen/com/tang/intellij/lua/psi/LuaClassMethodName.java
similarity index 100%
rename from gen/com/tang/intellij/lua/psi/LuaClassMethodName.java
rename to src/main/gen/com/tang/intellij/lua/psi/LuaClassMethodName.java
diff --git a/gen/com/tang/intellij/lua/psi/LuaClosureExpr.java b/src/main/gen/com/tang/intellij/lua/psi/LuaClosureExpr.java
similarity index 100%
rename from gen/com/tang/intellij/lua/psi/LuaClosureExpr.java
rename to src/main/gen/com/tang/intellij/lua/psi/LuaClosureExpr.java
diff --git a/gen/com/tang/intellij/lua/psi/LuaDoStat.java b/src/main/gen/com/tang/intellij/lua/psi/LuaDoStat.java
similarity index 100%
rename from gen/com/tang/intellij/lua/psi/LuaDoStat.java
rename to src/main/gen/com/tang/intellij/lua/psi/LuaDoStat.java
diff --git a/gen/com/tang/intellij/lua/psi/LuaEmptyStat.java b/src/main/gen/com/tang/intellij/lua/psi/LuaEmptyStat.java
similarity index 100%
rename from gen/com/tang/intellij/lua/psi/LuaEmptyStat.java
rename to src/main/gen/com/tang/intellij/lua/psi/LuaEmptyStat.java
diff --git a/gen/com/tang/intellij/lua/psi/LuaExpr.java b/src/main/gen/com/tang/intellij/lua/psi/LuaExpr.java
similarity index 100%
rename from gen/com/tang/intellij/lua/psi/LuaExpr.java
rename to src/main/gen/com/tang/intellij/lua/psi/LuaExpr.java
diff --git a/gen/com/tang/intellij/lua/psi/LuaExprList.java b/src/main/gen/com/tang/intellij/lua/psi/LuaExprList.java
similarity index 100%
rename from gen/com/tang/intellij/lua/psi/LuaExprList.java
rename to src/main/gen/com/tang/intellij/lua/psi/LuaExprList.java
diff --git a/gen/com/tang/intellij/lua/psi/LuaExprStat.java b/src/main/gen/com/tang/intellij/lua/psi/LuaExprStat.java
similarity index 100%
rename from gen/com/tang/intellij/lua/psi/LuaExprStat.java
rename to src/main/gen/com/tang/intellij/lua/psi/LuaExprStat.java
diff --git a/gen/com/tang/intellij/lua/psi/LuaForAStat.java b/src/main/gen/com/tang/intellij/lua/psi/LuaForAStat.java
similarity index 100%
rename from gen/com/tang/intellij/lua/psi/LuaForAStat.java
rename to src/main/gen/com/tang/intellij/lua/psi/LuaForAStat.java
diff --git a/gen/com/tang/intellij/lua/psi/LuaForBStat.java b/src/main/gen/com/tang/intellij/lua/psi/LuaForBStat.java
similarity index 100%
rename from gen/com/tang/intellij/lua/psi/LuaForBStat.java
rename to src/main/gen/com/tang/intellij/lua/psi/LuaForBStat.java
diff --git a/gen/com/tang/intellij/lua/psi/LuaFuncBody.java b/src/main/gen/com/tang/intellij/lua/psi/LuaFuncBody.java
similarity index 100%
rename from gen/com/tang/intellij/lua/psi/LuaFuncBody.java
rename to src/main/gen/com/tang/intellij/lua/psi/LuaFuncBody.java
diff --git a/gen/com/tang/intellij/lua/psi/LuaFuncDef.java b/src/main/gen/com/tang/intellij/lua/psi/LuaFuncDef.java
similarity index 100%
rename from gen/com/tang/intellij/lua/psi/LuaFuncDef.java
rename to src/main/gen/com/tang/intellij/lua/psi/LuaFuncDef.java
diff --git a/gen/com/tang/intellij/lua/psi/LuaGotoStat.java b/src/main/gen/com/tang/intellij/lua/psi/LuaGotoStat.java
similarity index 100%
rename from gen/com/tang/intellij/lua/psi/LuaGotoStat.java
rename to src/main/gen/com/tang/intellij/lua/psi/LuaGotoStat.java
diff --git a/gen/com/tang/intellij/lua/psi/LuaIfStat.java b/src/main/gen/com/tang/intellij/lua/psi/LuaIfStat.java
similarity index 100%
rename from gen/com/tang/intellij/lua/psi/LuaIfStat.java
rename to src/main/gen/com/tang/intellij/lua/psi/LuaIfStat.java
diff --git a/gen/com/tang/intellij/lua/psi/LuaIndexExpr.java b/src/main/gen/com/tang/intellij/lua/psi/LuaIndexExpr.java
similarity index 100%
rename from gen/com/tang/intellij/lua/psi/LuaIndexExpr.java
rename to src/main/gen/com/tang/intellij/lua/psi/LuaIndexExpr.java
diff --git a/gen/com/tang/intellij/lua/psi/LuaLabelStat.java b/src/main/gen/com/tang/intellij/lua/psi/LuaLabelStat.java
similarity index 100%
rename from gen/com/tang/intellij/lua/psi/LuaLabelStat.java
rename to src/main/gen/com/tang/intellij/lua/psi/LuaLabelStat.java
diff --git a/gen/com/tang/intellij/lua/psi/LuaListArgs.java b/src/main/gen/com/tang/intellij/lua/psi/LuaListArgs.java
similarity index 100%
rename from gen/com/tang/intellij/lua/psi/LuaListArgs.java
rename to src/main/gen/com/tang/intellij/lua/psi/LuaListArgs.java
diff --git a/gen/com/tang/intellij/lua/psi/LuaLiteralExpr.java b/src/main/gen/com/tang/intellij/lua/psi/LuaLiteralExpr.java
similarity index 100%
rename from gen/com/tang/intellij/lua/psi/LuaLiteralExpr.java
rename to src/main/gen/com/tang/intellij/lua/psi/LuaLiteralExpr.java
diff --git a/gen/com/tang/intellij/lua/psi/LuaLocalDef.java b/src/main/gen/com/tang/intellij/lua/psi/LuaLocalDef.java
similarity index 100%
rename from gen/com/tang/intellij/lua/psi/LuaLocalDef.java
rename to src/main/gen/com/tang/intellij/lua/psi/LuaLocalDef.java
diff --git a/gen/com/tang/intellij/lua/psi/LuaLocalFuncDef.java b/src/main/gen/com/tang/intellij/lua/psi/LuaLocalFuncDef.java
similarity index 100%
rename from gen/com/tang/intellij/lua/psi/LuaLocalFuncDef.java
rename to src/main/gen/com/tang/intellij/lua/psi/LuaLocalFuncDef.java
diff --git a/gen/com/tang/intellij/lua/psi/LuaNameDef.java b/src/main/gen/com/tang/intellij/lua/psi/LuaNameDef.java
similarity index 100%
rename from gen/com/tang/intellij/lua/psi/LuaNameDef.java
rename to src/main/gen/com/tang/intellij/lua/psi/LuaNameDef.java
diff --git a/gen/com/tang/intellij/lua/psi/LuaNameExpr.java b/src/main/gen/com/tang/intellij/lua/psi/LuaNameExpr.java
similarity index 100%
rename from gen/com/tang/intellij/lua/psi/LuaNameExpr.java
rename to src/main/gen/com/tang/intellij/lua/psi/LuaNameExpr.java
diff --git a/gen/com/tang/intellij/lua/psi/LuaNameList.java b/src/main/gen/com/tang/intellij/lua/psi/LuaNameList.java
similarity index 100%
rename from gen/com/tang/intellij/lua/psi/LuaNameList.java
rename to src/main/gen/com/tang/intellij/lua/psi/LuaNameList.java
diff --git a/gen/com/tang/intellij/lua/psi/LuaParamNameDef.java b/src/main/gen/com/tang/intellij/lua/psi/LuaParamNameDef.java
similarity index 100%
rename from gen/com/tang/intellij/lua/psi/LuaParamNameDef.java
rename to src/main/gen/com/tang/intellij/lua/psi/LuaParamNameDef.java
diff --git a/gen/com/tang/intellij/lua/psi/LuaParenExpr.java b/src/main/gen/com/tang/intellij/lua/psi/LuaParenExpr.java
similarity index 100%
rename from gen/com/tang/intellij/lua/psi/LuaParenExpr.java
rename to src/main/gen/com/tang/intellij/lua/psi/LuaParenExpr.java
diff --git a/gen/com/tang/intellij/lua/psi/LuaRepeatStat.java b/src/main/gen/com/tang/intellij/lua/psi/LuaRepeatStat.java
similarity index 100%
rename from gen/com/tang/intellij/lua/psi/LuaRepeatStat.java
rename to src/main/gen/com/tang/intellij/lua/psi/LuaRepeatStat.java
diff --git a/gen/com/tang/intellij/lua/psi/LuaReturnStat.java b/src/main/gen/com/tang/intellij/lua/psi/LuaReturnStat.java
similarity index 100%
rename from gen/com/tang/intellij/lua/psi/LuaReturnStat.java
rename to src/main/gen/com/tang/intellij/lua/psi/LuaReturnStat.java
diff --git a/gen/com/tang/intellij/lua/psi/LuaShebangLine.java b/src/main/gen/com/tang/intellij/lua/psi/LuaShebangLine.java
similarity index 100%
rename from gen/com/tang/intellij/lua/psi/LuaShebangLine.java
rename to src/main/gen/com/tang/intellij/lua/psi/LuaShebangLine.java
diff --git a/gen/com/tang/intellij/lua/psi/LuaSingleArg.java b/src/main/gen/com/tang/intellij/lua/psi/LuaSingleArg.java
similarity index 100%
rename from gen/com/tang/intellij/lua/psi/LuaSingleArg.java
rename to src/main/gen/com/tang/intellij/lua/psi/LuaSingleArg.java
diff --git a/gen/com/tang/intellij/lua/psi/LuaStatement.java b/src/main/gen/com/tang/intellij/lua/psi/LuaStatement.java
similarity index 100%
rename from gen/com/tang/intellij/lua/psi/LuaStatement.java
rename to src/main/gen/com/tang/intellij/lua/psi/LuaStatement.java
diff --git a/gen/com/tang/intellij/lua/psi/LuaTableExpr.java b/src/main/gen/com/tang/intellij/lua/psi/LuaTableExpr.java
similarity index 100%
rename from gen/com/tang/intellij/lua/psi/LuaTableExpr.java
rename to src/main/gen/com/tang/intellij/lua/psi/LuaTableExpr.java
diff --git a/gen/com/tang/intellij/lua/psi/LuaTableField.java b/src/main/gen/com/tang/intellij/lua/psi/LuaTableField.java
similarity index 100%
rename from gen/com/tang/intellij/lua/psi/LuaTableField.java
rename to src/main/gen/com/tang/intellij/lua/psi/LuaTableField.java
diff --git a/gen/com/tang/intellij/lua/psi/LuaTableFieldSep.java b/src/main/gen/com/tang/intellij/lua/psi/LuaTableFieldSep.java
similarity index 100%
rename from gen/com/tang/intellij/lua/psi/LuaTableFieldSep.java
rename to src/main/gen/com/tang/intellij/lua/psi/LuaTableFieldSep.java
diff --git a/gen/com/tang/intellij/lua/psi/LuaTypes.java b/src/main/gen/com/tang/intellij/lua/psi/LuaTypes.java
similarity index 100%
rename from gen/com/tang/intellij/lua/psi/LuaTypes.java
rename to src/main/gen/com/tang/intellij/lua/psi/LuaTypes.java
diff --git a/gen/com/tang/intellij/lua/psi/LuaUnaryExpr.java b/src/main/gen/com/tang/intellij/lua/psi/LuaUnaryExpr.java
similarity index 100%
rename from gen/com/tang/intellij/lua/psi/LuaUnaryExpr.java
rename to src/main/gen/com/tang/intellij/lua/psi/LuaUnaryExpr.java
diff --git a/gen/com/tang/intellij/lua/psi/LuaUnaryOp.java b/src/main/gen/com/tang/intellij/lua/psi/LuaUnaryOp.java
similarity index 100%
rename from gen/com/tang/intellij/lua/psi/LuaUnaryOp.java
rename to src/main/gen/com/tang/intellij/lua/psi/LuaUnaryOp.java
diff --git a/gen/com/tang/intellij/lua/psi/LuaVarList.java b/src/main/gen/com/tang/intellij/lua/psi/LuaVarList.java
similarity index 100%
rename from gen/com/tang/intellij/lua/psi/LuaVarList.java
rename to src/main/gen/com/tang/intellij/lua/psi/LuaVarList.java
diff --git a/gen/com/tang/intellij/lua/psi/LuaVisitor.java b/src/main/gen/com/tang/intellij/lua/psi/LuaVisitor.java
similarity index 100%
rename from gen/com/tang/intellij/lua/psi/LuaVisitor.java
rename to src/main/gen/com/tang/intellij/lua/psi/LuaVisitor.java
diff --git a/gen/com/tang/intellij/lua/psi/LuaWhileStat.java b/src/main/gen/com/tang/intellij/lua/psi/LuaWhileStat.java
similarity index 100%
rename from gen/com/tang/intellij/lua/psi/LuaWhileStat.java
rename to src/main/gen/com/tang/intellij/lua/psi/LuaWhileStat.java
diff --git a/gen/com/tang/intellij/lua/psi/impl/LuaArgsImpl.java b/src/main/gen/com/tang/intellij/lua/psi/impl/LuaArgsImpl.java
similarity index 100%
rename from gen/com/tang/intellij/lua/psi/impl/LuaArgsImpl.java
rename to src/main/gen/com/tang/intellij/lua/psi/impl/LuaArgsImpl.java
diff --git a/gen/com/tang/intellij/lua/psi/impl/LuaAssignStatImpl.java b/src/main/gen/com/tang/intellij/lua/psi/impl/LuaAssignStatImpl.java
similarity index 100%
rename from gen/com/tang/intellij/lua/psi/impl/LuaAssignStatImpl.java
rename to src/main/gen/com/tang/intellij/lua/psi/impl/LuaAssignStatImpl.java
diff --git a/gen/com/tang/intellij/lua/psi/impl/LuaAttributeImpl.java b/src/main/gen/com/tang/intellij/lua/psi/impl/LuaAttributeImpl.java
similarity index 100%
rename from gen/com/tang/intellij/lua/psi/impl/LuaAttributeImpl.java
rename to src/main/gen/com/tang/intellij/lua/psi/impl/LuaAttributeImpl.java
diff --git a/gen/com/tang/intellij/lua/psi/impl/LuaBinaryExprImpl.java b/src/main/gen/com/tang/intellij/lua/psi/impl/LuaBinaryExprImpl.java
similarity index 100%
rename from gen/com/tang/intellij/lua/psi/impl/LuaBinaryExprImpl.java
rename to src/main/gen/com/tang/intellij/lua/psi/impl/LuaBinaryExprImpl.java
diff --git a/gen/com/tang/intellij/lua/psi/impl/LuaBinaryOpImpl.java b/src/main/gen/com/tang/intellij/lua/psi/impl/LuaBinaryOpImpl.java
similarity index 100%
rename from gen/com/tang/intellij/lua/psi/impl/LuaBinaryOpImpl.java
rename to src/main/gen/com/tang/intellij/lua/psi/impl/LuaBinaryOpImpl.java
diff --git a/gen/com/tang/intellij/lua/psi/impl/LuaBlockImpl.java b/src/main/gen/com/tang/intellij/lua/psi/impl/LuaBlockImpl.java
similarity index 100%
rename from gen/com/tang/intellij/lua/psi/impl/LuaBlockImpl.java
rename to src/main/gen/com/tang/intellij/lua/psi/impl/LuaBlockImpl.java
diff --git a/gen/com/tang/intellij/lua/psi/impl/LuaBreakStatImpl.java b/src/main/gen/com/tang/intellij/lua/psi/impl/LuaBreakStatImpl.java
similarity index 100%
rename from gen/com/tang/intellij/lua/psi/impl/LuaBreakStatImpl.java
rename to src/main/gen/com/tang/intellij/lua/psi/impl/LuaBreakStatImpl.java
diff --git a/gen/com/tang/intellij/lua/psi/impl/LuaCallExprImpl.java b/src/main/gen/com/tang/intellij/lua/psi/impl/LuaCallExprImpl.java
similarity index 100%
rename from gen/com/tang/intellij/lua/psi/impl/LuaCallExprImpl.java
rename to src/main/gen/com/tang/intellij/lua/psi/impl/LuaCallExprImpl.java
diff --git a/gen/com/tang/intellij/lua/psi/impl/LuaClassMethodDefImpl.java b/src/main/gen/com/tang/intellij/lua/psi/impl/LuaClassMethodDefImpl.java
similarity index 100%
rename from gen/com/tang/intellij/lua/psi/impl/LuaClassMethodDefImpl.java
rename to src/main/gen/com/tang/intellij/lua/psi/impl/LuaClassMethodDefImpl.java
diff --git a/gen/com/tang/intellij/lua/psi/impl/LuaClassMethodNameImpl.java b/src/main/gen/com/tang/intellij/lua/psi/impl/LuaClassMethodNameImpl.java
similarity index 100%
rename from gen/com/tang/intellij/lua/psi/impl/LuaClassMethodNameImpl.java
rename to src/main/gen/com/tang/intellij/lua/psi/impl/LuaClassMethodNameImpl.java
diff --git a/gen/com/tang/intellij/lua/psi/impl/LuaClosureExprImpl.java b/src/main/gen/com/tang/intellij/lua/psi/impl/LuaClosureExprImpl.java
similarity index 100%
rename from gen/com/tang/intellij/lua/psi/impl/LuaClosureExprImpl.java
rename to src/main/gen/com/tang/intellij/lua/psi/impl/LuaClosureExprImpl.java
diff --git a/gen/com/tang/intellij/lua/psi/impl/LuaDoStatImpl.java b/src/main/gen/com/tang/intellij/lua/psi/impl/LuaDoStatImpl.java
similarity index 100%
rename from gen/com/tang/intellij/lua/psi/impl/LuaDoStatImpl.java
rename to src/main/gen/com/tang/intellij/lua/psi/impl/LuaDoStatImpl.java
diff --git a/gen/com/tang/intellij/lua/psi/impl/LuaEmptyStatImpl.java b/src/main/gen/com/tang/intellij/lua/psi/impl/LuaEmptyStatImpl.java
similarity index 100%
rename from gen/com/tang/intellij/lua/psi/impl/LuaEmptyStatImpl.java
rename to src/main/gen/com/tang/intellij/lua/psi/impl/LuaEmptyStatImpl.java
diff --git a/gen/com/tang/intellij/lua/psi/impl/LuaExprImpl.java b/src/main/gen/com/tang/intellij/lua/psi/impl/LuaExprImpl.java
similarity index 100%
rename from gen/com/tang/intellij/lua/psi/impl/LuaExprImpl.java
rename to src/main/gen/com/tang/intellij/lua/psi/impl/LuaExprImpl.java
diff --git a/gen/com/tang/intellij/lua/psi/impl/LuaExprListImpl.java b/src/main/gen/com/tang/intellij/lua/psi/impl/LuaExprListImpl.java
similarity index 100%
rename from gen/com/tang/intellij/lua/psi/impl/LuaExprListImpl.java
rename to src/main/gen/com/tang/intellij/lua/psi/impl/LuaExprListImpl.java
diff --git a/gen/com/tang/intellij/lua/psi/impl/LuaExprStatImpl.java b/src/main/gen/com/tang/intellij/lua/psi/impl/LuaExprStatImpl.java
similarity index 100%
rename from gen/com/tang/intellij/lua/psi/impl/LuaExprStatImpl.java
rename to src/main/gen/com/tang/intellij/lua/psi/impl/LuaExprStatImpl.java
diff --git a/gen/com/tang/intellij/lua/psi/impl/LuaForAStatImpl.java b/src/main/gen/com/tang/intellij/lua/psi/impl/LuaForAStatImpl.java
similarity index 100%
rename from gen/com/tang/intellij/lua/psi/impl/LuaForAStatImpl.java
rename to src/main/gen/com/tang/intellij/lua/psi/impl/LuaForAStatImpl.java
diff --git a/gen/com/tang/intellij/lua/psi/impl/LuaForBStatImpl.java b/src/main/gen/com/tang/intellij/lua/psi/impl/LuaForBStatImpl.java
similarity index 100%
rename from gen/com/tang/intellij/lua/psi/impl/LuaForBStatImpl.java
rename to src/main/gen/com/tang/intellij/lua/psi/impl/LuaForBStatImpl.java
diff --git a/gen/com/tang/intellij/lua/psi/impl/LuaFuncBodyImpl.java b/src/main/gen/com/tang/intellij/lua/psi/impl/LuaFuncBodyImpl.java
similarity index 100%
rename from gen/com/tang/intellij/lua/psi/impl/LuaFuncBodyImpl.java
rename to src/main/gen/com/tang/intellij/lua/psi/impl/LuaFuncBodyImpl.java
diff --git a/gen/com/tang/intellij/lua/psi/impl/LuaFuncDefImpl.java b/src/main/gen/com/tang/intellij/lua/psi/impl/LuaFuncDefImpl.java
similarity index 100%
rename from gen/com/tang/intellij/lua/psi/impl/LuaFuncDefImpl.java
rename to src/main/gen/com/tang/intellij/lua/psi/impl/LuaFuncDefImpl.java
diff --git a/gen/com/tang/intellij/lua/psi/impl/LuaGotoStatImpl.java b/src/main/gen/com/tang/intellij/lua/psi/impl/LuaGotoStatImpl.java
similarity index 100%
rename from gen/com/tang/intellij/lua/psi/impl/LuaGotoStatImpl.java
rename to src/main/gen/com/tang/intellij/lua/psi/impl/LuaGotoStatImpl.java
diff --git a/gen/com/tang/intellij/lua/psi/impl/LuaIfStatImpl.java b/src/main/gen/com/tang/intellij/lua/psi/impl/LuaIfStatImpl.java
similarity index 100%
rename from gen/com/tang/intellij/lua/psi/impl/LuaIfStatImpl.java
rename to src/main/gen/com/tang/intellij/lua/psi/impl/LuaIfStatImpl.java
diff --git a/gen/com/tang/intellij/lua/psi/impl/LuaIndexExprImpl.java b/src/main/gen/com/tang/intellij/lua/psi/impl/LuaIndexExprImpl.java
similarity index 100%
rename from gen/com/tang/intellij/lua/psi/impl/LuaIndexExprImpl.java
rename to src/main/gen/com/tang/intellij/lua/psi/impl/LuaIndexExprImpl.java
diff --git a/gen/com/tang/intellij/lua/psi/impl/LuaLabelStatImpl.java b/src/main/gen/com/tang/intellij/lua/psi/impl/LuaLabelStatImpl.java
similarity index 100%
rename from gen/com/tang/intellij/lua/psi/impl/LuaLabelStatImpl.java
rename to src/main/gen/com/tang/intellij/lua/psi/impl/LuaLabelStatImpl.java
diff --git a/gen/com/tang/intellij/lua/psi/impl/LuaListArgsImpl.java b/src/main/gen/com/tang/intellij/lua/psi/impl/LuaListArgsImpl.java
similarity index 100%
rename from gen/com/tang/intellij/lua/psi/impl/LuaListArgsImpl.java
rename to src/main/gen/com/tang/intellij/lua/psi/impl/LuaListArgsImpl.java
diff --git a/gen/com/tang/intellij/lua/psi/impl/LuaLiteralExprImpl.java b/src/main/gen/com/tang/intellij/lua/psi/impl/LuaLiteralExprImpl.java
similarity index 100%
rename from gen/com/tang/intellij/lua/psi/impl/LuaLiteralExprImpl.java
rename to src/main/gen/com/tang/intellij/lua/psi/impl/LuaLiteralExprImpl.java
diff --git a/gen/com/tang/intellij/lua/psi/impl/LuaLocalDefImpl.java b/src/main/gen/com/tang/intellij/lua/psi/impl/LuaLocalDefImpl.java
similarity index 100%
rename from gen/com/tang/intellij/lua/psi/impl/LuaLocalDefImpl.java
rename to src/main/gen/com/tang/intellij/lua/psi/impl/LuaLocalDefImpl.java
diff --git a/gen/com/tang/intellij/lua/psi/impl/LuaLocalFuncDefImpl.java b/src/main/gen/com/tang/intellij/lua/psi/impl/LuaLocalFuncDefImpl.java
similarity index 100%
rename from gen/com/tang/intellij/lua/psi/impl/LuaLocalFuncDefImpl.java
rename to src/main/gen/com/tang/intellij/lua/psi/impl/LuaLocalFuncDefImpl.java
diff --git a/gen/com/tang/intellij/lua/psi/impl/LuaNameDefImpl.java b/src/main/gen/com/tang/intellij/lua/psi/impl/LuaNameDefImpl.java
similarity index 100%
rename from gen/com/tang/intellij/lua/psi/impl/LuaNameDefImpl.java
rename to src/main/gen/com/tang/intellij/lua/psi/impl/LuaNameDefImpl.java
diff --git a/gen/com/tang/intellij/lua/psi/impl/LuaNameExprImpl.java b/src/main/gen/com/tang/intellij/lua/psi/impl/LuaNameExprImpl.java
similarity index 100%
rename from gen/com/tang/intellij/lua/psi/impl/LuaNameExprImpl.java
rename to src/main/gen/com/tang/intellij/lua/psi/impl/LuaNameExprImpl.java
diff --git a/gen/com/tang/intellij/lua/psi/impl/LuaNameListImpl.java b/src/main/gen/com/tang/intellij/lua/psi/impl/LuaNameListImpl.java
similarity index 100%
rename from gen/com/tang/intellij/lua/psi/impl/LuaNameListImpl.java
rename to src/main/gen/com/tang/intellij/lua/psi/impl/LuaNameListImpl.java
diff --git a/gen/com/tang/intellij/lua/psi/impl/LuaParamNameDefImpl.java b/src/main/gen/com/tang/intellij/lua/psi/impl/LuaParamNameDefImpl.java
similarity index 100%
rename from gen/com/tang/intellij/lua/psi/impl/LuaParamNameDefImpl.java
rename to src/main/gen/com/tang/intellij/lua/psi/impl/LuaParamNameDefImpl.java
diff --git a/gen/com/tang/intellij/lua/psi/impl/LuaParenExprImpl.java b/src/main/gen/com/tang/intellij/lua/psi/impl/LuaParenExprImpl.java
similarity index 100%
rename from gen/com/tang/intellij/lua/psi/impl/LuaParenExprImpl.java
rename to src/main/gen/com/tang/intellij/lua/psi/impl/LuaParenExprImpl.java
diff --git a/gen/com/tang/intellij/lua/psi/impl/LuaRepeatStatImpl.java b/src/main/gen/com/tang/intellij/lua/psi/impl/LuaRepeatStatImpl.java
similarity index 100%
rename from gen/com/tang/intellij/lua/psi/impl/LuaRepeatStatImpl.java
rename to src/main/gen/com/tang/intellij/lua/psi/impl/LuaRepeatStatImpl.java
diff --git a/gen/com/tang/intellij/lua/psi/impl/LuaReturnStatImpl.java b/src/main/gen/com/tang/intellij/lua/psi/impl/LuaReturnStatImpl.java
similarity index 100%
rename from gen/com/tang/intellij/lua/psi/impl/LuaReturnStatImpl.java
rename to src/main/gen/com/tang/intellij/lua/psi/impl/LuaReturnStatImpl.java
diff --git a/gen/com/tang/intellij/lua/psi/impl/LuaShebangLineImpl.java b/src/main/gen/com/tang/intellij/lua/psi/impl/LuaShebangLineImpl.java
similarity index 100%
rename from gen/com/tang/intellij/lua/psi/impl/LuaShebangLineImpl.java
rename to src/main/gen/com/tang/intellij/lua/psi/impl/LuaShebangLineImpl.java
diff --git a/gen/com/tang/intellij/lua/psi/impl/LuaSingleArgImpl.java b/src/main/gen/com/tang/intellij/lua/psi/impl/LuaSingleArgImpl.java
similarity index 100%
rename from gen/com/tang/intellij/lua/psi/impl/LuaSingleArgImpl.java
rename to src/main/gen/com/tang/intellij/lua/psi/impl/LuaSingleArgImpl.java
diff --git a/gen/com/tang/intellij/lua/psi/impl/LuaStatementImpl.java b/src/main/gen/com/tang/intellij/lua/psi/impl/LuaStatementImpl.java
similarity index 100%
rename from gen/com/tang/intellij/lua/psi/impl/LuaStatementImpl.java
rename to src/main/gen/com/tang/intellij/lua/psi/impl/LuaStatementImpl.java
diff --git a/gen/com/tang/intellij/lua/psi/impl/LuaTableExprImpl.java b/src/main/gen/com/tang/intellij/lua/psi/impl/LuaTableExprImpl.java
similarity index 100%
rename from gen/com/tang/intellij/lua/psi/impl/LuaTableExprImpl.java
rename to src/main/gen/com/tang/intellij/lua/psi/impl/LuaTableExprImpl.java
diff --git a/gen/com/tang/intellij/lua/psi/impl/LuaTableFieldImpl.java b/src/main/gen/com/tang/intellij/lua/psi/impl/LuaTableFieldImpl.java
similarity index 100%
rename from gen/com/tang/intellij/lua/psi/impl/LuaTableFieldImpl.java
rename to src/main/gen/com/tang/intellij/lua/psi/impl/LuaTableFieldImpl.java
diff --git a/gen/com/tang/intellij/lua/psi/impl/LuaTableFieldSepImpl.java b/src/main/gen/com/tang/intellij/lua/psi/impl/LuaTableFieldSepImpl.java
similarity index 100%
rename from gen/com/tang/intellij/lua/psi/impl/LuaTableFieldSepImpl.java
rename to src/main/gen/com/tang/intellij/lua/psi/impl/LuaTableFieldSepImpl.java
diff --git a/gen/com/tang/intellij/lua/psi/impl/LuaUnaryExprImpl.java b/src/main/gen/com/tang/intellij/lua/psi/impl/LuaUnaryExprImpl.java
similarity index 100%
rename from gen/com/tang/intellij/lua/psi/impl/LuaUnaryExprImpl.java
rename to src/main/gen/com/tang/intellij/lua/psi/impl/LuaUnaryExprImpl.java
diff --git a/gen/com/tang/intellij/lua/psi/impl/LuaUnaryOpImpl.java b/src/main/gen/com/tang/intellij/lua/psi/impl/LuaUnaryOpImpl.java
similarity index 100%
rename from gen/com/tang/intellij/lua/psi/impl/LuaUnaryOpImpl.java
rename to src/main/gen/com/tang/intellij/lua/psi/impl/LuaUnaryOpImpl.java
diff --git a/gen/com/tang/intellij/lua/psi/impl/LuaVarListImpl.java b/src/main/gen/com/tang/intellij/lua/psi/impl/LuaVarListImpl.java
similarity index 100%
rename from gen/com/tang/intellij/lua/psi/impl/LuaVarListImpl.java
rename to src/main/gen/com/tang/intellij/lua/psi/impl/LuaVarListImpl.java
diff --git a/gen/com/tang/intellij/lua/psi/impl/LuaWhileStatImpl.java b/src/main/gen/com/tang/intellij/lua/psi/impl/LuaWhileStatImpl.java
similarity index 100%
rename from gen/com/tang/intellij/lua/psi/impl/LuaWhileStatImpl.java
rename to src/main/gen/com/tang/intellij/lua/psi/impl/LuaWhileStatImpl.java
diff --git a/src/main/java/com/tang/intellij/lua/doc.bnf b/src/main/java/com/tang/intellij/lua/doc.bnf
index 00604b7..874e758 100644
--- a/src/main/java/com/tang/intellij/lua/doc.bnf
+++ b/src/main/java/com/tang/intellij/lua/doc.bnf
@@ -31,11 +31,12 @@
elementTypeClass="com.tang.intellij.lua.comment.psi.LuaDocElementType"
elementTypeFactory="com.tang.intellij.lua.lang.LuaParserDefinitionKt.createDocType"
tokenTypeClass="com.tang.intellij.lua.comment.psi.LuaDocTokenType"
-
+ extends(".*ty") = 'ty'
tokens = [
ID="regexp:[A-Za-z0-9_]+"
AT = '@'
+ SHARP = '#'
EQ = '='
COMMA = ','
EXTENDS = ':'
@@ -47,29 +48,23 @@
LCURLY = "{"
RCURLY = "}"
STRING_LITERAL = "STRING_LITERAL"
+ ARR = '[]'
+ FUN = 'fun'
+ VARARG = 'vararg'
PRIVATE = 'private'
PROTECTED = 'protected'
PUBLIC = 'public'
DASHES = 'DASHES'
STRING_BEGIN = 'STRING_BEGIN'
STRING = 'STRING'
- TAG_NAME_RETURN = 'return'
TAG_NAME = 'TAG_NAME'
- TAG_NAME_PARAM = 'param'
- TAG_NAME_VARARG = 'vararg'
- TAG_NAME_PRIVATE = 'private'
- TAG_NAME_PROTECTED = 'protected'
- TAG_NAME_PUBLIC = 'public'
- TAG_NAME_CLASS = 'class'
- TAG_NAME_FIELD = 'field'
- TAG_NAME_TYPE = 'type'
TAG_NAME_LANGUAGE = 'language'
- TAG_NAME_OVERLOAD = 'overload'
- TAG_NAME_MODULE = 'module'
- TAG_NAME_SEE = 'see'
- TAG_NAME_GENERIC = 'generic'
- TAG_NAME_ALIAS = 'alias'
- TAG_NAME_SUPPRESS = 'suppress'
+ NUMBER = 'regexp:[0-9]+'
+ ASYNC = 'async'
+ NULLABLE = '?'
+ LBRACK = '['
+ RBRACK = ']'
+ PACKAGE = 'package'
]
implements("tag.*") = [
"com.tang.intellij.lua.comment.psi.LuaDocTag"
@@ -80,91 +75,17 @@ doc ::= (DASHES after_dash?)*
private after_dash ::= doc_item | STRING { recoverWhile=after_dash_recover }
private after_dash_recover ::= !(DASHES)
-private doc_item ::= '@' (tag_param
- | tag_alias
- | tag_suppress
- | tag_vararg
- | tag_return
- | tag_class
- | tag_field
- | tag_type
- | tag_lan
- | tag_overload
- | tag_see
- | tag_def
- | access_modifier
- | tag_generic_list
- | tag_other)
-
-
-access_modifier ::= PRIVATE | PUBLIC | PROTECTED | TAG_NAME_PRIVATE | TAG_NAME_PUBLIC | TAG_NAME_PROTECTED
-
-tag_field ::= TAG_NAME_FIELD comment_string? {
- pin = 1
-}
-
-//--- tag
-tag_def ::= TAG_NAME_NAME comment_string? {
- pin = 1
- methods = [
- tagName = 'TAG_NAME_NAME'
- ]
-}
-
-//@overload
-tag_overload ::= TAG_NAME_OVERLOAD comment_string? { pin = 1 }
-
-//@language json
-tag_lan ::= TAG_NAME_LANGUAGE ID comment_string?{ pin = 1 }
-
-//@param PARAM_NAME CLASS_REF
-
-tag_param ::= TAG_NAME_PARAM comment_string?{
- pin = 1
-}
-tag_vararg ::= TAG_NAME_VARARG comment_string?{
- pin = 1
-}
-
-
-tag_return ::= TAG_NAME_RETURN comment_string?{
- pin = 1
-}
-
-
-tag_class ::= (TAG_NAME_CLASS|TAG_NAME_MODULE) comment_string?{
- pin = 1
-}
-
-// @type CLASS_REF
-tag_type ::= TAG_NAME_TYPE STRING?{
- pin = 1
-}
-
-comment_string ::= STRING? {
- pin = 1
- methods = [
- string = "STRING"
- ]
-}
-
-tag_see ::= TAG_NAME_SEE comment_string?{
- pin = 1
-}
-
-
-tag_generic_list ::= TAG_NAME_GENERIC comment_string?{
+private doc_item ::= '@' (tag_normal|tag_lan)
+tag_normal ::= TAG_NAME any* {
pin = 1
+ recoverWhile = after_dash_recover
}
-tag_alias ::= TAG_NAME_ALIAS comment_string?{
+tag_lan ::= TAG_NAME_LANGUAGE ID {
pin = 1
+ recoverWhile = after_dash_recover
}
-tag_suppress ::= TAG_NAME_SUPPRESS comment_string?{
- pin = 1
-}
-
-tag_other ::= TAG_NAME comment_string?{
- pin = 1
-}
\ No newline at end of file
+any ::= ID | STRING | NUMBER | AT | SHARP | EQ | COMMA | EXTENDS | OR | GT | LT | LPAREN | RPAREN | LCURLY | RCURLY
+| STRING_LITERAL | ARR | FUN | VARARG | PRIVATE | PROTECTED | PUBLIC | DASHES | STRING_BEGIN | TAG_NAME |
+TAG_NAME_LANGUAGE | ASYNC | NULLABLE | LBRACK | RBRACK | PACKAGE
\ No newline at end of file
diff --git a/src/main/java/com/tang/intellij/lua/doc.flex b/src/main/java/com/tang/intellij/lua/doc.flex
index 90b4a98..80d3fd8 100644
--- a/src/main/java/com/tang/intellij/lua/doc.flex
+++ b/src/main/java/com/tang/intellij/lua/doc.flex
@@ -1,7 +1,7 @@
package com.tang.intellij.lua.comment.lexer;
import com.intellij.lexer.FlexLexer;
-import com.intellij.psi.tree.IElementType;
+import com.intellij.psi.TokenType;import com.intellij.psi.tree.IElementType;
import com.tang.intellij.lua.comment.psi.LuaDocTypes;
%%
@@ -31,6 +31,7 @@ import com.tang.intellij.lua.comment.psi.LuaDocTypes;
}
private void beginType() {
+ yybegin(xTYPE_REF);
_typeLevel = 0;
_typeReq = true;
}
@@ -44,7 +45,8 @@ EOL="\r"|"\n"|"\r\n"
LINE_WS=[\ \t\f]
WHITE_SPACE=({LINE_WS}|{EOL})+
STRING=[^\r\n\t\f]*
-ID=[:jletter:] ([:jletterdigit:]|\.)*
+ID=[:jletter:] ([:jletterdigit:]|\.|\*|\-)*
+NUMBER=[0-9]+
AT=@
//三个-以上
DOC_DASHES = --+
@@ -56,8 +58,22 @@ SINGLE_QUOTED_STRING='([^\\\']|\\\S|\\[\r\n])*'? //'([^\\'\r\n]|\\[^\r\n])*'?
%state xTAG_WITH_ID
%state xTAG_NAME
%state xCOMMENT_STRING
-%state xLANGUAGE
-
+%state xPARAM
+%state xTYPE_REF
+%state xCLASS
+%state xCLASS_GENERIC
+%state xCLASS_EXTEND
+%state xFIELD
+%state xFIELD_INDEX
+%state xFIELD_ID
+%state xGENERIC
+%state xALIAS
+%state xDOUBLE_QUOTED_STRING
+%state xSINGLE_QUOTED_STRING
+%state xMODULE
+%state xTAG_ENUMFIELD
+%state xTAG_DIAGNOSTIC
+%state xENUM
%%
{
@@ -65,49 +81,149 @@ SINGLE_QUOTED_STRING='([^\\\']|\\\S|\\[\r\n])*'? //'([^\\'\r\n]|\\[^\r\n])*'?
{LINE_WS}+ { return com.intellij.psi.TokenType.WHITE_SPACE; }
{DOC_DASHES} { return DASHES; }
"@" { yybegin(xTAG_NAME); return AT; }
+ "|" { yybegin(xTAG_ENUMFIELD); ;return OR; }
. { yybegin(xCOMMENT_STRING); yypushback(yylength()); }
}
- {
+ {
{EOL} { yybegin(YYINITIAL);return com.intellij.psi.TokenType.WHITE_SPACE;}
{LINE_WS}+ { return com.intellij.psi.TokenType.WHITE_SPACE; }
}
{
- "field" { yybegin(xCOMMENT_STRING); return TAG_NAME_FIELD; }
- "param" { yybegin(xCOMMENT_STRING); return TAG_NAME_PARAM; }
- "vararg" { yybegin(xCOMMENT_STRING); return TAG_NAME_VARARG; }
- "class" { yybegin(xCOMMENT_STRING); return TAG_NAME_CLASS; }
- "module" { yybegin(xCOMMENT_STRING); return TAG_NAME_MODULE; }
- "return" { yybegin(xCOMMENT_STRING); return TAG_NAME_RETURN; }
- "type" { yybegin(xCOMMENT_STRING); return TAG_NAME_TYPE;}
- "overload" { yybegin(xCOMMENT_STRING); return TAG_NAME_OVERLOAD; }
- "private" { yybegin(xCOMMENT_STRING); return TAG_NAME_PRIVATE; }
- "protected" { yybegin(xCOMMENT_STRING); return TAG_NAME_PROTECTED; }
- "public" { yybegin(xCOMMENT_STRING); return TAG_NAME_PUBLIC; }
- "language" { yybegin(xLANGUAGE); return TAG_NAME_LANGUAGE; }
- "generic" { yybegin(xCOMMENT_STRING); return TAG_NAME_GENERIC; }
- "see" { yybegin(xCOMMENT_STRING); return TAG_NAME_SEE; }
- "alias" { yybegin(xCOMMENT_STRING); return TAG_NAME_ALIAS; }
- "suppress" { yybegin(xCOMMENT_STRING); return TAG_NAME_SUPPRESS; }
- {ID} { yybegin(xCOMMENT_STRING); return TAG_NAME; }
+ "field" { yybegin(xFIELD); return TAG_NAME; }
+ "param" { yybegin(xPARAM); return TAG_NAME; }
+ "class" { yybegin(xCLASS); return TAG_NAME; }
+ "interface" { yybegin(xCLASS); return TAG_NAME; }
+ "enum" { yybegin(xENUM); return TAG_NAME; }
+ "module" { yybegin(xMODULE); return TAG_NAME; }
+ "source" { yybegin(xMODULE); return TAG_NAME; }
+ "return" { beginType(); return TAG_NAME; }
+ "type" { beginType(); return TAG_NAME;}
+ "overload" { beginType(); return TAG_NAME; }
+ "private" { return TAG_NAME; }
+ "protected" { return TAG_NAME; }
+ "public" { return TAG_NAME; }
+ "package" { yybegin(xTAG_WITH_ID); return TAG_NAME; }
+ "language" { yybegin(xTAG_WITH_ID); return TAG_NAME_LANGUAGE;}
+ "generic" { yybegin(xGENERIC); return TAG_NAME; }
+ "see" { yybegin(xTAG); return TAG_NAME; }
+ "namespace" { yybegin(xTAG_WITH_ID); return TAG_NAME; }
+ "using" { yybegin(xTAG_WITH_ID); return TAG_NAME; }
+ "alias" { yybegin(xALIAS); return TAG_NAME; }
+ "diagnostic" { yybegin(xTAG_DIAGNOSTIC); return TAG_NAME; }
+ {ID} { yybegin(xCOMMENT_STRING); return TAG_NAME; }
[^] { return com.intellij.psi.TokenType.BAD_CHARACTER; }
}
- {
- {ID} { yybegin(xCOMMENT_STRING); return ID; }
- [^] { return com.intellij.psi.TokenType.BAD_CHARACTER; }
+ {
+ {ID} { beginType(); return ID; }
+ [^] { yybegin(YYINITIAL); yypushback(yylength()); }
}
- {
+ {
+ {ID} { return ID; }
+ ":" { return EXTENDS;}
+ "," { return COMMA; }
+ [^] { yybegin(YYINITIAL); yypushback(yylength()); }
+}
+
+ {
+ "<" { yybegin(xCLASS_GENERIC); return LT; }
+ {ID} { yybegin(xCLASS_EXTEND); return ID; }
+}
+ {
+ {ID} { return ID; }
+ "," { return COMMA; }
+ ":" { return EXTENDS;}
+ ">" { return GT; }
+}
+
+ {
+ ":" { beginType(); return EXTENDS;}
+ [^] { yybegin(xCOMMENT_STRING); yypushback(yylength()); }
+}
+
+ {
+ {ID} { beginType(); return ID; }
+ "..." { beginType(); return ID; } //varargs
+}
+
+ {
+ "private" { yybegin(xFIELD_ID); return PRIVATE; }
+ "protected" { yybegin(xFIELD_ID); return PROTECTED; }
+ "public" { yybegin(xFIELD_ID); return PUBLIC; }
+ "package" { yybegin(xFIELD_ID); return PACKAGE; }
+ "[" { yybegin(xFIELD_ID); yypushback(yylength());}
+ {ID} { beginType(); return ID; }
+}
+ {
+ "[" { yybegin(xFIELD_INDEX); return LBRACK; }
+ {ID} { beginType(); return ID; }
+}
+
+ {
+ {NUMBER} { return NUMBER; }
+ {ID} { return ID; }
+ "]" { yybegin(xFIELD_ID); return RBRACK; }
+}
+
+ {
+ {ID} { return ID; }
+ {STRING} { return STRING_LITERAL; }
+ "." { return DOT; }
+}
+
+ {
+ {ID} { return ID; }
+ ":" { return EXTENDS;}
+ "," { return COMMA; }
+}
+
+ {
+ "?" { return NULLABLE; }
"@" { yybegin(xCOMMENT_STRING); return STRING_BEGIN; }
"#" { yybegin(xCOMMENT_STRING); return STRING_BEGIN; }
+ "," { _typeReq = true; return COMMA; }
+ "|" { _typeReq = true; return OR; }
+ ":" { _typeReq = true; return EXTENDS;}
+ "<" { _typeLevel++; return LT; }
+ ">" { _typeLevel--; _typeReq = false; return GT; }
+ "(" { _typeLevel++; return LPAREN; }
+ ")" { _typeLevel--; _typeReq = false; return RPAREN; }
+ "{" { _typeLevel++; return LCURLY; }
+ "}" { _typeLevel--; _typeReq = false; return RCURLY; }
+ "\"" { yybegin(xDOUBLE_QUOTED_STRING); yypushback(yylength()); }
+ "'" { yybegin(xSINGLE_QUOTED_STRING); yypushback(yylength()); }
+ "[]" { _typeReq = false; return ARR; }
+ "fun" { return FUN; }
+ "vararg" { _typeReq = true; return VARARG; }
+ "async" { return ASYNC; }
+ {NUMBER} { return NUMBER; }
+ "..."|{ID} { if (_typeReq || _typeLevel > 0) { _typeReq = false; return ID; } else { yybegin(xCOMMENT_STRING); yypushback(yylength()); } }
+}
+
+ {
+ {DOUBLE_QUOTED_STRING} { yybegin(xTYPE_REF); return STRING_LITERAL; }
+}
+
+ {
+ {SINGLE_QUOTED_STRING} { yybegin(xTYPE_REF); return STRING_LITERAL; }
+}
+
+ {
+ "@" { yybegin(xCOMMENT_STRING); return STRING_BEGIN; }
+ "#" { return SHARP; }
{ID} { return ID; }
[^] { return com.intellij.psi.TokenType.BAD_CHARACTER; }
}
+ {
+ {ID} { yybegin(xCOMMENT_STRING); return ID; }
+}
{
{STRING} { yybegin(YYINITIAL); return STRING; }
}
-[^] { return com.intellij.psi.TokenType.BAD_CHARACTER; }
\ No newline at end of file
+[^] { return TokenType.WHITE_SPACE; }
\ No newline at end of file
diff --git a/src/main/resources/META-INF/plugin.xml b/src/main/resources/META-INF/plugin.xml
index 84110b3..394fb52 100644
--- a/src/main/resources/META-INF/plugin.xml
+++ b/src/main/resources/META-INF/plugin.xml
@@ -165,7 +165,7 @@
-
+
+
+
+