diff --git a/gen/com/tang/intellij/lua/lexer/_LuaLexer.java b/gen/com/tang/intellij/lua/lexer/_LuaLexer.java index a387370ea..63bad01a1 100644 --- a/gen/com/tang/intellij/lua/lexer/_LuaLexer.java +++ b/gen/com/tang/intellij/lua/lexer/_LuaLexer.java @@ -63,13 +63,13 @@ public static int ZZ_CMAP(int ch) { /* The ZZ_CMAP_A table has 768 entries */ static final char ZZ_CMAP_A[] = zzUnpackCMap( - "\11\36\1\3\1\2\1\0\1\3\1\1\22\36\1\3\1\56\1\34\1\55\1\36\1\63\1\73\1\40\1"+ - "\65\1\66\1\62\1\10\1\67\1\17\1\16\1\64\1\12\11\5\1\71\1\70\1\60\1\32\1\57"+ - "\2\36\4\6\1\7\1\6\5\37\1\15\3\37\1\11\4\37\1\14\2\37\1\13\2\37\1\31\1\35\1"+ - "\33\1\72\1\37\1\36\1\41\1\42\1\50\1\27\1\21\1\46\1\22\1\53\1\23\1\37\1\43"+ - "\1\44\1\37\1\25\1\24\1\52\1\37\1\20\1\45\1\51\1\47\1\37\1\54\1\13\2\37\1\26"+ - "\1\74\1\30\1\61\6\36\1\0\32\36\1\0\136\36\201\37\1\4\177\37\13\4\35\37\2\4"+ - "\5\37\1\4\57\37\1\4\40\37\200\36"); + "\11\37\1\3\1\2\1\0\1\3\1\1\22\37\1\3\1\57\1\35\1\56\1\37\1\64\1\74\1\41\1"+ + "\66\1\67\1\63\1\10\1\70\1\17\1\16\1\65\1\12\11\5\1\72\1\71\1\61\1\32\1\60"+ + "\1\37\1\34\4\6\1\7\1\6\5\40\1\15\3\40\1\11\4\40\1\14\2\40\1\13\2\40\1\31\1"+ + "\36\1\33\1\73\1\40\1\37\1\42\1\43\1\51\1\27\1\21\1\47\1\22\1\54\1\23\1\40"+ + "\1\44\1\45\1\40\1\25\1\24\1\53\1\40\1\20\1\46\1\52\1\50\1\40\1\55\1\13\2\40"+ + "\1\26\1\75\1\30\1\62\6\37\1\0\32\37\1\0\136\37\201\40\1\4\177\40\13\4\35\40"+ + "\2\4\5\40\1\4\57\40\1\4\40\40\200\37"); /** * Translates DFA states to action switch labels. @@ -86,14 +86,14 @@ public static int ZZ_CMAP(int ch) { "\1\44\2\4\1\45\1\46\12\4\1\47\1\50\1\51"+ "\1\52\1\53\1\54\1\55\1\56\1\37\2\0\1\57"+ "\1\0\3\5\1\60\4\0\2\4\1\61\2\4\1\62"+ - "\1\63\1\64\2\4\1\65\6\4\1\57\1\66\1\5"+ - "\6\0\2\4\1\67\1\70\5\4\1\71\1\72\1\4"+ - "\2\0\1\5\2\0\1\73\1\74\3\4\1\75\1\76"+ - "\1\77\1\4\1\100\1\101\1\0\1\5\2\0\1\102"+ - "\1\103\1\104\1\4\3\0\1\4\1\0\1\105\2\0"; + "\1\63\1\64\2\4\1\65\6\4\2\57\1\5\6\0"+ + "\2\4\1\66\1\67\5\4\1\70\1\71\1\4\1\72"+ + "\1\5\2\0\1\73\1\74\3\4\1\75\1\76\1\77"+ + "\1\4\1\100\1\101\2\0\1\5\2\0\1\102\1\103"+ + "\1\104\1\4\3\0\1\4\2\0\1\105\2\0"; private static int [] zzUnpackAction() { - int [] result = new int[173]; + int [] result = new int[174]; int offset = 0; offset = zzUnpackAction(ZZ_ACTION_PACKED_0, offset, result); return result; @@ -118,31 +118,31 @@ private static int zzUnpackAction(String packed, int offset, int [] result) { private static final int [] ZZ_ROWMAP = zzUnpackRowMap(); private static final String ZZ_ROWMAP_PACKED_0 = - "\0\0\0\75\0\172\0\267\0\364\0\u0131\0\364\0\u016e"+ - "\0\u01ab\0\u01e8\0\364\0\u0225\0\u0262\0\u029f\0\u02dc\0\u0319"+ - "\0\u0356\0\u0393\0\u03d0\0\u040d\0\364\0\u044a\0\364\0\364"+ - "\0\u0487\0\364\0\364\0\364\0\u04c4\0\u0501\0\u053e\0\u057b"+ - "\0\u05b8\0\u05f5\0\u0632\0\u066f\0\u06ac\0\u06e9\0\u0726\0\364"+ - "\0\364\0\u0763\0\364\0\364\0\364\0\364\0\u07a0\0\364"+ - "\0\364\0\364\0\u07dd\0\u081a\0\u0857\0\u0894\0\u08d1\0\u090e"+ - "\0\u094b\0\u0988\0\u09c5\0\u0a02\0\u0a3f\0\u0a7c\0\u0ab9\0\u0af6"+ - "\0\u0b33\0\u01ab\0\u01ab\0\u01ab\0\u0b70\0\u0bad\0\u01ab\0\364"+ - "\0\u0bea\0\u0c27\0\u0c64\0\u0ca1\0\u0cde\0\u0d1b\0\u0d58\0\u0d95"+ - "\0\u0dd2\0\u0e0f\0\364\0\364\0\364\0\364\0\364\0\364"+ - "\0\364\0\364\0\364\0\u0e4c\0\u0e89\0\u0ec6\0\u09c5\0\364"+ - "\0\u0f03\0\u0f40\0\364\0\u0f7d\0\u0fba\0\u0ff7\0\u1034\0\u1071"+ - "\0\u10ae\0\u01ab\0\u10eb\0\u1128\0\u01ab\0\u01ab\0\u01ab\0\u1165"+ - "\0\u11a2\0\u01ab\0\u11df\0\u121c\0\u1259\0\u1296\0\u12d3\0\u1310"+ - "\0\u134d\0\u138a\0\u13c7\0\u1404\0\u1441\0\u147e\0\u14bb\0\u14f8"+ - "\0\u1535\0\u1572\0\u15af\0\u15ec\0\u01ab\0\u1629\0\u1666\0\u16a3"+ - "\0\u16e0\0\u171d\0\u01ab\0\u01ab\0\u175a\0\u1797\0\u17d4\0\u1811"+ - "\0\u184e\0\u188b\0\u18c8\0\u1905\0\u1942\0\u197f\0\u19bc\0\u01ab"+ - "\0\u01ab\0\u01ab\0\u19f9\0\u01ab\0\u01ab\0\u1a36\0\u1a73\0\u1ab0"+ - "\0\u1aed\0\u01ab\0\u01ab\0\u01ab\0\u1b2a\0\u1b67\0\u1ba4\0\u1be1"+ - "\0\u1c1e\0\u1c5b\0\u01ab\0\u1c98\0\u1cd5"; + "\0\0\0\76\0\174\0\272\0\370\0\u0136\0\370\0\u0174"+ + "\0\u01b2\0\u01f0\0\370\0\u022e\0\u026c\0\u02aa\0\u02e8\0\u0326"+ + "\0\u0364\0\u03a2\0\u03e0\0\u041e\0\370\0\u045c\0\370\0\370"+ + "\0\u049a\0\370\0\370\0\370\0\u04d8\0\u0516\0\u0554\0\u0592"+ + "\0\u05d0\0\u060e\0\u064c\0\u068a\0\u06c8\0\u0706\0\u0744\0\370"+ + "\0\370\0\u0782\0\370\0\370\0\370\0\370\0\u07c0\0\370"+ + "\0\370\0\370\0\u07fe\0\u083c\0\u087a\0\u08b8\0\u08f6\0\u0934"+ + "\0\u0972\0\u09b0\0\u09ee\0\u0a2c\0\u0a6a\0\u0aa8\0\u0ae6\0\u0b24"+ + "\0\u0b62\0\u01b2\0\u01b2\0\u01b2\0\u0ba0\0\u0bde\0\u01b2\0\370"+ + "\0\u0c1c\0\u0c5a\0\u0c98\0\u0cd6\0\u0d14\0\u0d52\0\u0d90\0\u0dce"+ + "\0\u0e0c\0\u0e4a\0\370\0\370\0\370\0\370\0\370\0\370"+ + "\0\370\0\370\0\370\0\u0e88\0\u0ec6\0\u0f04\0\u09ee\0\370"+ + "\0\u0f42\0\u0f80\0\370\0\u0fbe\0\u0ffc\0\u103a\0\u1078\0\u10b6"+ + "\0\u10f4\0\u01b2\0\u1132\0\u1170\0\u01b2\0\u01b2\0\u01b2\0\u11ae"+ + "\0\u11ec\0\u01b2\0\u122a\0\u1268\0\u12a6\0\u12e4\0\u1322\0\u1360"+ + "\0\u139e\0\u13dc\0\u141a\0\u1458\0\u1496\0\u14d4\0\u1512\0\u1550"+ + "\0\u158e\0\u15cc\0\u160a\0\u1648\0\u01b2\0\u1686\0\u16c4\0\u1702"+ + "\0\u1740\0\u177e\0\u01b2\0\u01b2\0\u17bc\0\u17fa\0\u1838\0\u1876"+ + "\0\u18b4\0\u18f2\0\u1930\0\u196e\0\u19ac\0\u19ea\0\u01b2\0\u01b2"+ + "\0\u01b2\0\u1a28\0\u01b2\0\u01b2\0\u1a66\0\u1aa4\0\u1ae2\0\u1b20"+ + "\0\u1b5e\0\u01b2\0\u01b2\0\u01b2\0\u1b9c\0\u1bda\0\u1c18\0\u1c56"+ + "\0\u1c94\0\u1cd2\0\u1d10\0\u01b2\0\u1d4e\0\u1d8c"; private static int [] zzUnpackRowMap() { - int [] result = new int[173]; + int [] result = new int[174]; int offset = 0; offset = zzUnpackRowMap(ZZ_ROWMAP_PACKED_0, offset, result); return result; @@ -167,152 +167,152 @@ private static int zzUnpackRowMap(String packed, int offset, int [] result) { private static final String ZZ_TRANS_PACKED_0 = "\1\7\3\10\1\11\1\12\2\11\1\13\1\11\1\14"+ "\3\11\1\15\1\16\1\17\1\20\1\21\1\22\1\23"+ - "\1\24\1\25\1\26\1\27\1\30\1\31\1\32\1\33"+ - "\2\7\1\11\1\34\1\35\1\36\1\11\1\37\1\11"+ - "\1\40\1\41\1\11\1\42\2\11\1\43\1\44\1\7"+ - "\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\2\2\0"+ - "\72\2\34\0\1\63\100\0\1\64\150\0\1\65\56\0"+ - "\3\10\75\0\4\11\1\0\5\11\2\0\6\11\1\0"+ - "\1\11\7\0\1\11\1\0\14\11\25\0\1\12\1\0"+ - "\1\66\2\0\1\12\1\0\1\67\1\70\1\71\2\0"+ - "\1\66\60\0\1\12\1\0\1\66\2\0\1\12\1\72"+ - "\1\67\1\70\1\71\2\0\1\66\60\0\1\73\4\0"+ - "\1\73\3\0\1\74\75\0\1\75\61\0\4\11\1\0"+ - "\5\11\2\0\1\11\1\76\4\11\1\0\1\11\7\0"+ + "\1\24\1\25\1\26\1\27\1\30\1\31\1\32\1\7"+ + "\1\33\2\7\1\11\1\34\1\35\1\36\1\11\1\37"+ + "\1\11\1\40\1\41\1\11\1\42\2\11\1\43\1\44"+ + "\1\7\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\2"+ + "\2\0\73\2\35\0\1\63\101\0\1\64\151\0\1\65"+ + "\57\0\3\10\76\0\4\11\1\0\5\11\2\0\6\11"+ + "\1\0\1\11\10\0\1\11\1\0\14\11\25\0\1\12"+ + "\1\0\1\66\2\0\1\12\1\0\1\67\1\70\1\71"+ + "\2\0\1\66\61\0\1\12\1\0\1\66\2\0\1\12"+ + "\1\72\1\67\1\70\1\71\2\0\1\66\61\0\1\73"+ + "\4\0\1\73\3\0\1\74\76\0\1\75\62\0\4\11"+ + "\1\0\5\11\2\0\1\11\1\76\4\11\1\0\1\11"+ + "\10\0\1\11\1\0\14\11\24\0\4\11\1\0\5\11"+ + "\2\0\5\11\1\77\1\0\1\11\10\0\1\11\1\0"+ + "\3\11\1\100\10\11\24\0\4\11\1\0\5\11\2\0"+ + "\4\11\1\101\1\11\1\0\1\11\10\0\1\11\1\0"+ + "\14\11\24\0\4\11\1\0\5\11\2\0\5\11\1\102"+ + "\1\0\1\11\10\0\1\11\1\0\5\11\1\103\6\11"+ + "\24\0\4\11\1\0\5\11\2\0\1\104\5\11\1\0"+ + "\1\11\10\0\1\11\1\0\14\11\24\0\4\11\1\0"+ + "\5\11\2\0\3\11\1\105\1\106\1\11\1\0\1\11"+ + "\10\0\1\11\1\0\14\11\24\0\4\11\1\0\5\11"+ + "\2\0\4\11\1\107\1\11\1\0\1\11\10\0\1\11"+ + "\1\0\14\11\52\0\1\110\47\0\4\11\1\0\5\11"+ + "\2\0\5\11\1\111\1\0\1\11\10\0\1\11\1\0"+ + "\14\11\24\0\4\11\1\0\5\11\2\0\1\112\5\11"+ + "\1\0\1\11\10\0\1\11\1\0\14\11\24\0\4\11"+ + "\1\0\5\11\2\0\4\11\1\113\1\11\1\0\1\11"+ + "\10\0\1\11\1\0\14\11\24\0\4\11\1\0\5\11"+ + "\2\0\4\11\1\114\1\11\1\0\1\11\10\0\1\11"+ + "\1\0\1\115\5\11\1\116\5\11\24\0\4\11\1\0"+ + "\5\11\2\0\5\11\1\117\1\0\1\11\10\0\1\11"+ + "\1\0\14\11\24\0\4\11\1\0\5\11\2\0\1\120"+ + "\5\11\1\0\1\11\10\0\1\11\1\0\12\11\1\121"+ + "\1\11\24\0\4\11\1\0\5\11\2\0\6\11\1\0"+ + "\1\11\10\0\1\11\1\0\12\11\1\122\1\11\77\0"+ + "\1\123\50\0\1\124\25\0\1\125\47\0\1\126\26\0"+ + "\1\127\46\0\1\130\130\0\1\131\102\0\1\132\3\0"+ + "\35\63\1\133\1\134\37\63\36\64\1\135\2\64\1\133"+ + "\34\64\17\0\1\136\63\0\1\73\2\0\1\137\1\0"+ + "\1\73\4\0\1\137\73\0\1\70\75\0\1\140\65\0"+ + "\1\141\4\0\1\141\70\0\3\142\2\0\1\142\6\0"+ + "\1\142\5\0\1\142\12\0\2\142\3\0\1\142\1\0"+ + "\1\142\31\0\1\73\4\0\1\73\101\0\1\143\77\0"+ + "\1\144\1\145\4\0\1\146\1\0\1\147\51\0\4\11"+ + "\1\0\5\11\2\0\6\11\1\0\1\11\10\0\1\11"+ + "\1\0\10\11\1\150\1\151\2\11\24\0\4\11\1\0"+ + "\5\11\2\0\6\11\1\0\1\152\10\0\1\11\1\0"+ + "\14\11\24\0\4\11\1\0\5\11\2\0\6\11\1\0"+ + "\1\11\10\0\1\11\1\0\4\11\1\153\7\11\24\0"+ + "\4\11\1\0\5\11\2\0\6\11\1\0\1\11\10\0"+ + "\1\11\1\0\10\11\1\154\3\11\24\0\4\11\1\0"+ + "\5\11\2\0\6\11\1\0\1\11\10\0\1\11\1\0"+ + "\3\11\1\155\10\11\24\0\4\11\1\0\5\11\2\0"+ + "\6\11\1\0\1\11\10\0\1\11\1\0\10\11\1\156"+ + "\3\11\24\0\4\11\1\0\5\11\2\0\6\11\1\0"+ + "\1\157\10\0\1\11\1\0\14\11\24\0\4\11\1\0"+ + "\5\11\2\0\1\11\1\160\4\11\1\0\1\11\10\0"+ "\1\11\1\0\14\11\24\0\4\11\1\0\5\11\2\0"+ - "\5\11\1\77\1\0\1\11\7\0\1\11\1\0\3\11"+ - "\1\100\10\11\24\0\4\11\1\0\5\11\2\0\4\11"+ - "\1\101\1\11\1\0\1\11\7\0\1\11\1\0\14\11"+ - "\24\0\4\11\1\0\5\11\2\0\5\11\1\102\1\0"+ - "\1\11\7\0\1\11\1\0\5\11\1\103\6\11\24\0"+ - "\4\11\1\0\5\11\2\0\1\104\5\11\1\0\1\11"+ - "\7\0\1\11\1\0\14\11\24\0\4\11\1\0\5\11"+ - "\2\0\3\11\1\105\1\106\1\11\1\0\1\11\7\0"+ + "\6\11\1\0\1\11\10\0\1\11\1\0\7\11\1\161"+ + "\4\11\24\0\4\11\1\0\5\11\2\0\1\162\5\11"+ + "\1\0\1\11\10\0\1\11\1\0\14\11\24\0\4\11"+ + "\1\0\5\11\2\0\6\11\1\0\1\11\10\0\1\11"+ + "\1\0\3\11\1\163\10\11\24\0\4\11\1\0\5\11"+ + "\2\0\5\11\1\164\1\0\1\11\10\0\1\11\1\0"+ + "\14\11\24\0\4\11\1\0\5\11\2\0\6\11\1\0"+ + "\1\11\10\0\1\11\1\0\10\11\1\165\3\11\24\0"+ + "\4\11\1\0\5\11\2\0\6\11\1\0\1\11\10\0"+ + "\1\11\1\0\6\11\1\166\5\11\24\0\4\11\1\0"+ + "\5\11\2\0\1\11\1\167\4\11\1\0\1\11\10\0"+ "\1\11\1\0\14\11\24\0\4\11\1\0\5\11\2\0"+ - "\4\11\1\107\1\11\1\0\1\11\7\0\1\11\1\0"+ - "\14\11\52\0\1\110\46\0\4\11\1\0\5\11\2\0"+ - "\5\11\1\111\1\0\1\11\7\0\1\11\1\0\14\11"+ - "\24\0\4\11\1\0\5\11\2\0\1\112\5\11\1\0"+ - "\1\11\7\0\1\11\1\0\14\11\24\0\4\11\1\0"+ - "\5\11\2\0\4\11\1\113\1\11\1\0\1\11\7\0"+ + "\3\11\1\170\2\11\1\0\1\11\10\0\1\11\1\0"+ + "\14\11\21\0\2\63\2\0\71\63\1\0\2\64\2\0"+ + "\71\64\1\171\2\0\14\171\1\172\56\171\5\0\1\141"+ + "\1\0\1\66\2\0\1\141\6\0\1\66\61\0\2\142"+ + "\1\173\1\0\1\174\1\142\1\0\1\67\1\70\1\175"+ + "\2\0\1\173\5\0\1\142\12\0\2\142\3\0\1\142"+ + "\1\0\1\142\1\0\1\174\43\0\1\176\101\0\1\177"+ + "\76\0\1\200\77\0\1\201\51\0\4\11\1\0\5\11"+ + "\2\0\6\11\1\0\1\11\10\0\1\11\1\0\6\11"+ + "\1\202\5\11\24\0\4\11\1\0\5\11\2\0\1\11"+ + "\1\203\4\11\1\0\1\11\10\0\1\11\1\0\14\11"+ + "\24\0\4\11\1\0\5\11\2\0\1\11\1\204\4\11"+ + "\1\0\1\11\10\0\1\11\1\0\14\11\24\0\4\11"+ + "\1\0\5\11\2\0\4\11\1\205\1\11\1\0\1\11"+ + "\10\0\1\11\1\0\14\11\24\0\4\11\1\0\5\11"+ + "\2\0\6\11\1\0\1\11\10\0\1\11\1\0\1\206"+ + "\13\11\24\0\4\11\1\0\5\11\2\0\6\11\1\0"+ + "\1\11\10\0\1\11\1\0\1\207\13\11\24\0\4\11"+ + "\1\0\5\11\2\0\6\11\1\0\1\11\10\0\1\11"+ + "\1\0\4\11\1\210\7\11\24\0\4\11\1\0\5\11"+ + "\2\0\6\11\1\0\1\11\10\0\1\11\1\0\7\11"+ + "\1\211\4\11\24\0\4\11\1\0\5\11\2\0\3\11"+ + "\1\212\2\11\1\0\1\11\10\0\1\11\1\0\14\11"+ + "\24\0\4\11\1\0\5\11\2\0\1\11\1\213\4\11"+ + "\1\0\1\11\10\0\1\11\1\0\14\11\24\0\4\11"+ + "\1\0\5\11\2\0\5\11\1\214\1\0\1\11\10\0"+ "\1\11\1\0\14\11\24\0\4\11\1\0\5\11\2\0"+ - "\4\11\1\114\1\11\1\0\1\11\7\0\1\11\1\0"+ - "\1\115\5\11\1\116\5\11\24\0\4\11\1\0\5\11"+ - "\2\0\5\11\1\117\1\0\1\11\7\0\1\11\1\0"+ - "\14\11\24\0\4\11\1\0\5\11\2\0\1\120\5\11"+ - "\1\0\1\11\7\0\1\11\1\0\12\11\1\121\1\11"+ - "\24\0\4\11\1\0\5\11\2\0\6\11\1\0\1\11"+ - "\7\0\1\11\1\0\12\11\1\122\1\11\76\0\1\123"+ - "\50\0\1\124\24\0\1\125\47\0\1\126\25\0\1\127"+ - "\46\0\1\130\126\0\1\131\101\0\1\132\3\0\34\63"+ - "\1\133\1\134\37\63\35\64\1\135\2\64\1\133\34\64"+ - "\17\0\1\136\62\0\1\73\2\0\1\137\1\0\1\73"+ - "\4\0\1\137\72\0\1\70\74\0\1\140\64\0\1\141"+ - "\4\0\1\141\67\0\3\142\2\0\1\142\6\0\1\142"+ - "\5\0\1\142\11\0\2\142\3\0\1\142\1\0\1\142"+ - "\31\0\1\73\4\0\1\73\100\0\1\143\76\0\1\144"+ - "\1\145\4\0\1\146\1\0\1\147\50\0\4\11\1\0"+ - "\5\11\2\0\6\11\1\0\1\11\7\0\1\11\1\0"+ - "\10\11\1\150\1\151\2\11\24\0\4\11\1\0\5\11"+ - "\2\0\6\11\1\0\1\152\7\0\1\11\1\0\14\11"+ - "\24\0\4\11\1\0\5\11\2\0\6\11\1\0\1\11"+ - "\7\0\1\11\1\0\4\11\1\153\7\11\24\0\4\11"+ - "\1\0\5\11\2\0\6\11\1\0\1\11\7\0\1\11"+ - "\1\0\10\11\1\154\3\11\24\0\4\11\1\0\5\11"+ - "\2\0\6\11\1\0\1\11\7\0\1\11\1\0\3\11"+ - "\1\155\10\11\24\0\4\11\1\0\5\11\2\0\6\11"+ - "\1\0\1\11\7\0\1\11\1\0\10\11\1\156\3\11"+ - "\24\0\4\11\1\0\5\11\2\0\6\11\1\0\1\157"+ - "\7\0\1\11\1\0\14\11\24\0\4\11\1\0\5\11"+ - "\2\0\1\11\1\160\4\11\1\0\1\11\7\0\1\11"+ + "\6\11\1\0\1\11\10\0\1\11\1\0\3\11\1\215"+ + "\10\11\20\0\1\171\2\0\74\171\2\0\31\171\1\216"+ + "\41\171\5\0\2\142\1\173\1\137\1\174\1\142\1\0"+ + "\1\67\1\70\1\175\1\137\1\0\1\173\5\0\1\142"+ + "\12\0\2\142\3\0\1\142\1\0\1\142\1\0\1\174"+ + "\32\0\1\137\6\0\1\137\63\0\3\217\2\0\1\217"+ + "\6\0\1\217\5\0\1\217\12\0\2\217\3\0\1\217"+ + "\1\0\1\217\46\0\1\220\102\0\1\221\74\0\1\222"+ + "\77\0\1\223\51\0\4\11\1\0\5\11\2\0\1\224"+ + "\5\11\1\0\1\11\10\0\1\11\1\0\14\11\24\0"+ + "\4\11\1\0\5\11\2\0\6\11\1\0\1\11\10\0"+ + "\1\11\1\0\1\225\13\11\24\0\4\11\1\0\5\11"+ + "\2\0\3\11\1\226\2\11\1\0\1\11\10\0\1\11"+ "\1\0\14\11\24\0\4\11\1\0\5\11\2\0\6\11"+ - "\1\0\1\11\7\0\1\11\1\0\7\11\1\161\4\11"+ - "\24\0\4\11\1\0\5\11\2\0\1\162\5\11\1\0"+ - "\1\11\7\0\1\11\1\0\14\11\24\0\4\11\1\0"+ - "\5\11\2\0\6\11\1\0\1\11\7\0\1\11\1\0"+ - "\3\11\1\163\10\11\24\0\4\11\1\0\5\11\2\0"+ - "\5\11\1\164\1\0\1\11\7\0\1\11\1\0\14\11"+ + "\1\0\1\11\10\0\1\11\1\0\2\11\1\227\11\11"+ "\24\0\4\11\1\0\5\11\2\0\6\11\1\0\1\11"+ - "\7\0\1\11\1\0\10\11\1\165\3\11\24\0\4\11"+ - "\1\0\5\11\2\0\6\11\1\0\1\11\7\0\1\11"+ - "\1\0\6\11\1\166\5\11\24\0\4\11\1\0\5\11"+ - "\2\0\1\11\1\167\4\11\1\0\1\11\7\0\1\11"+ - "\1\0\14\11\24\0\4\11\1\0\5\11\2\0\3\11"+ - "\1\170\2\11\1\0\1\11\7\0\1\11\1\0\14\11"+ - "\21\0\2\63\2\0\70\63\1\0\2\64\2\0\70\64"+ - "\1\171\2\0\14\171\1\172\55\171\5\0\1\141\1\0"+ - "\1\66\2\0\1\141\6\0\1\66\60\0\2\142\1\173"+ - "\1\0\1\174\1\142\1\0\1\67\1\70\1\175\2\0"+ - "\1\173\5\0\1\142\11\0\2\142\3\0\1\142\1\0"+ - "\1\142\1\0\1\174\43\0\1\176\100\0\1\177\75\0"+ - "\1\200\76\0\1\201\50\0\4\11\1\0\5\11\2\0"+ - "\6\11\1\0\1\11\7\0\1\11\1\0\6\11\1\202"+ - "\5\11\24\0\4\11\1\0\5\11\2\0\1\11\1\203"+ - "\4\11\1\0\1\11\7\0\1\11\1\0\14\11\24\0"+ - "\4\11\1\0\5\11\2\0\1\11\1\204\4\11\1\0"+ - "\1\11\7\0\1\11\1\0\14\11\24\0\4\11\1\0"+ - "\5\11\2\0\4\11\1\205\1\11\1\0\1\11\7\0"+ - "\1\11\1\0\14\11\24\0\4\11\1\0\5\11\2\0"+ - "\6\11\1\0\1\11\7\0\1\11\1\0\1\206\13\11"+ - "\24\0\4\11\1\0\5\11\2\0\6\11\1\0\1\11"+ - "\7\0\1\11\1\0\1\207\13\11\24\0\4\11\1\0"+ - "\5\11\2\0\6\11\1\0\1\11\7\0\1\11\1\0"+ - "\4\11\1\210\7\11\24\0\4\11\1\0\5\11\2\0"+ - "\6\11\1\0\1\11\7\0\1\11\1\0\7\11\1\211"+ - "\4\11\24\0\4\11\1\0\5\11\2\0\3\11\1\212"+ - "\2\11\1\0\1\11\7\0\1\11\1\0\14\11\24\0"+ - "\4\11\1\0\5\11\2\0\1\11\1\213\4\11\1\0"+ - "\1\11\7\0\1\11\1\0\14\11\24\0\4\11\1\0"+ - "\5\11\2\0\5\11\1\214\1\0\1\11\7\0\1\11"+ - "\1\0\14\11\24\0\4\11\1\0\5\11\2\0\6\11"+ - "\1\0\1\11\7\0\1\11\1\0\3\11\1\215\10\11"+ - "\20\0\1\171\2\0\72\171\1\172\1\216\1\217\72\172"+ - "\5\0\2\142\1\173\1\137\1\174\1\142\1\0\1\67"+ - "\1\70\1\175\1\137\1\0\1\173\5\0\1\142\11\0"+ - "\2\142\3\0\1\142\1\0\1\142\1\0\1\174\32\0"+ - "\1\137\6\0\1\137\62\0\3\220\2\0\1\220\6\0"+ - "\1\220\5\0\1\220\11\0\2\220\3\0\1\220\1\0"+ - "\1\220\46\0\1\221\101\0\1\222\73\0\1\223\76\0"+ - "\1\224\50\0\4\11\1\0\5\11\2\0\1\225\5\11"+ - "\1\0\1\11\7\0\1\11\1\0\14\11\24\0\4\11"+ - "\1\0\5\11\2\0\6\11\1\0\1\11\7\0\1\11"+ - "\1\0\1\226\13\11\24\0\4\11\1\0\5\11\2\0"+ - "\3\11\1\227\2\11\1\0\1\11\7\0\1\11\1\0"+ - "\14\11\24\0\4\11\1\0\5\11\2\0\6\11\1\0"+ - "\1\11\7\0\1\11\1\0\2\11\1\230\11\11\24\0"+ - "\4\11\1\0\5\11\2\0\6\11\1\0\1\11\7\0"+ - "\1\11\1\0\3\11\1\231\10\11\24\0\4\11\1\0"+ - "\5\11\2\0\1\11\1\232\4\11\1\0\1\11\7\0"+ - "\1\11\1\0\14\11\24\0\4\11\1\0\5\11\2\0"+ - "\6\11\1\0\1\11\7\0\1\11\1\0\10\11\1\233"+ - "\3\11\24\0\4\11\1\0\5\11\2\0\6\11\1\0"+ - "\1\11\7\0\1\11\1\0\3\11\1\234\10\11\24\0"+ - "\4\11\1\0\5\11\2\0\1\11\1\235\4\11\1\0"+ - "\1\11\7\0\1\11\1\0\14\11\22\0\1\217\75\0"+ - "\1\217\13\0\1\236\62\0\2\220\1\237\1\0\1\174"+ - "\1\220\6\0\1\237\5\0\1\220\11\0\2\220\3\0"+ - "\1\220\1\0\1\220\1\0\1\174\45\0\1\240\71\0"+ - "\1\241\54\0\1\223\2\0\72\223\1\224\2\0\72\224"+ + "\10\0\1\11\1\0\3\11\1\230\10\11\24\0\4\11"+ + "\1\0\5\11\2\0\1\11\1\231\4\11\1\0\1\11"+ + "\10\0\1\11\1\0\14\11\24\0\4\11\1\0\5\11"+ + "\2\0\6\11\1\0\1\11\10\0\1\11\1\0\10\11"+ + "\1\232\3\11\24\0\4\11\1\0\5\11\2\0\6\11"+ + "\1\0\1\11\10\0\1\11\1\0\3\11\1\233\10\11"+ + "\24\0\4\11\1\0\5\11\2\0\1\11\1\234\4\11"+ + "\1\0\1\11\10\0\1\11\1\0\14\11\20\0\1\216"+ + "\1\235\1\236\73\216\5\0\2\217\1\237\1\0\1\174"+ + "\1\217\6\0\1\237\5\0\1\217\12\0\2\217\3\0"+ + "\1\217\1\0\1\217\1\0\1\174\45\0\1\240\72\0"+ + "\1\241\55\0\1\222\2\0\73\222\1\223\2\0\73\223"+ "\4\0\4\11\1\0\5\11\2\0\5\11\1\242\1\0"+ - "\1\11\7\0\1\11\1\0\14\11\24\0\4\11\1\0"+ - "\5\11\2\0\6\11\1\0\1\11\7\0\1\11\1\0"+ + "\1\11\10\0\1\11\1\0\14\11\24\0\4\11\1\0"+ + "\5\11\2\0\6\11\1\0\1\11\10\0\1\11\1\0"+ "\10\11\1\243\3\11\24\0\4\11\1\0\5\11\2\0"+ - "\6\11\1\0\1\11\7\0\1\11\1\0\5\11\1\244"+ + "\6\11\1\0\1\11\10\0\1\11\1\0\5\11\1\244"+ "\6\11\24\0\4\11\1\0\5\11\2\0\3\11\1\245"+ - "\2\11\1\0\1\11\7\0\1\11\1\0\14\11\37\0"+ - "\1\246\62\0\2\220\1\237\1\137\1\174\1\220\4\0"+ - "\1\137\1\0\1\237\5\0\1\220\11\0\2\220\3\0"+ - "\1\220\1\0\1\220\1\0\1\174\46\0\1\247\71\0"+ - "\1\250\57\0\4\11\1\0\5\11\2\0\4\11\1\251"+ - "\1\11\1\0\1\11\7\0\1\11\1\0\14\11\37\0"+ - "\1\172\102\0\1\223\71\0\1\252\56\0\4\11\1\0"+ - "\5\11\2\0\5\11\1\253\1\0\1\11\7\0\1\11"+ - "\1\0\14\11\43\0\1\254\75\0\1\255\75\0\1\224"+ - "\47\0"; + "\2\11\1\0\1\11\10\0\1\11\1\0\14\11\22\0"+ + "\1\236\76\0\1\236\13\0\1\246\63\0\2\217\1\237"+ + "\1\137\1\174\1\217\4\0\1\137\1\0\1\237\5\0"+ + "\1\217\12\0\2\217\3\0\1\217\1\0\1\217\1\0"+ + "\1\174\46\0\1\247\72\0\1\250\60\0\4\11\1\0"+ + "\5\11\2\0\4\11\1\251\1\11\1\0\1\11\10\0"+ + "\1\11\1\0\14\11\37\0\1\252\103\0\1\222\72\0"+ + "\1\253\57\0\4\11\1\0\5\11\2\0\5\11\1\254"+ + "\1\0\1\11\10\0\1\11\1\0\14\11\37\0\1\216"+ + "\101\0\1\255\76\0\1\256\76\0\1\223\50\0"; private static int [] zzUnpackTrans() { - int [] result = new int[7442]; + int [] result = new int[7626]; int offset = 0; offset = zzUnpackTrans(ZZ_TRANS_PACKED_0, offset, result); return result; @@ -354,12 +354,12 @@ private static int zzUnpackTrans(String packed, int offset, int [] result) { "\11\1\1\11\1\1\2\11\1\1\3\11\13\1\2\11"+ "\1\1\4\11\1\1\3\11\2\1\1\0\1\1\2\0"+ "\1\1\1\0\15\1\1\11\12\1\11\11\2\0\1\1"+ - "\1\0\1\11\2\1\1\11\4\0\24\1\6\0\14\1"+ - "\2\0\1\1\2\0\13\1\1\0\1\1\2\0\4\1"+ - "\3\0\1\1\1\0\1\1\2\0"; + "\1\0\1\11\2\1\1\11\4\0\24\1\6\0\16\1"+ + "\2\0\13\1\2\0\1\1\2\0\4\1\3\0\1\1"+ + "\2\0\1\1\2\0"; private static int [] zzUnpackAttribute() { - int [] result = new int[173]; + int [] result = new int[174]; int offset = 0; offset = zzUnpackAttribute(ZZ_ATTRIBUTE_PACKED_0, offset, result); return result; @@ -986,27 +986,27 @@ else if (zzAtEOF) { // fall through case 122: break; case 54: - { yybegin(YYINITIAL);return DOC_COMMENT; + { return ELSE; } // fall through case 123: break; case 55: - { return ELSE; + { if (level.getVersion() < LuaLanguageLevel.LUA52.getVersion()) return ID; else return GOTO; } // fall through case 124: break; case 56: - { if (level.getVersion() < LuaLanguageLevel.LUA52.getVersion()) return ID; else return GOTO; + { return TRUE; } // fall through case 125: break; case 57: - { return TRUE; + { return THEN; } // fall through case 126: break; case 58: - { return THEN; + { yybegin(YYINITIAL);return DOC_COMMENT; } // fall through case 127: break; diff --git a/src/main/java/com/tang/intellij/lua/lua.flex b/src/main/java/com/tang/intellij/lua/lua.flex index f579b9feb..ecb3d0628 100644 --- a/src/main/java/com/tang/intellij/lua/lua.flex +++ b/src/main/java/com/tang/intellij/lua/lua.flex @@ -90,7 +90,7 @@ REGION_START =--(region|\{\{\{)([^\r\n]*)* REGION_END =--(endregion|\}\}\})([^\r\n]*)* BLOCK_COMMENT=--\[=*\[[\s\S]*(\]=*\])? SHORT_COMMENT=--[^\r\n]* -DOC_COMMENT=----*[^\r\n]*(\r?\n{LINE_WS}*----*[^\r\n]*)* +DOC_COMMENT=---\@-*[^\r\n]*(\r?\n{LINE_WS}*----*[^\r\n]*)* //Strings DOUBLE_QUOTED_STRING=\"([^\\\"]|\\\S|\\[\r\n])*\"? //\"([^\\\"\r\n]|\\[^\r\n])*\"?