diff --git a/plugins/toml/core/src/gen/org/toml/lang/lexer/_TomlLexer.java b/plugins/toml/core/src/gen/org/toml/lang/lexer/_TomlLexer.java
index 5e2910b415b2..ec2fb703c0c2 100644
--- a/plugins/toml/core/src/gen/org/toml/lang/lexer/_TomlLexer.java
+++ b/plugins/toml/core/src/gen/org/toml/lang/lexer/_TomlLexer.java
@@ -1,4 +1,5 @@
-/* The following code was generated by JFlex 1.7.0 tweaked for IntelliJ platform */
+// Generated by JFlex 1.9.1 http://jflex.de/ (tweaked for IntelliJ platform)
+// source: TomlLexer.flex
package org.toml.lang.lexer;
import com.intellij.lexer.*;
@@ -6,11 +7,6 @@ import com.intellij.psi.tree.IElementType;
import static org.toml.lang.psi.TomlElementTypes.*;
-/**
- * This class is a scanner generated by
- * JFlex 1.7.0
- * from the specification file TomlLexer.flex
- */
public class _TomlLexer implements FlexLexer {
/** This character denotes the end of file */
@@ -33,29 +29,67 @@ public class _TomlLexer implements FlexLexer {
};
/**
- * Translates characters to character classes
- * Chosen bits are [8, 6, 7]
- * Total runtime size is 1040 bytes
+ * Top-level table for translating characters to character classes
*/
- public static int ZZ_CMAP(int ch) {
- return ZZ_CMAP_A[ZZ_CMAP_Y[ZZ_CMAP_Z[ch>>13]|((ch>>7)&0x3f)]|(ch&0x7f)];
+ private static final int [] ZZ_CMAP_TOP = zzUnpackcmap_top();
+
+ private static final String ZZ_CMAP_TOP_PACKED_0 =
+ "\1\0\u10ff\u0100";
+
+ 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;
}
- /* The ZZ_CMAP_Z table has 136 entries */
- static final char ZZ_CMAP_Z[] = zzUnpackCMap(
- "\1\0\207\100");
+ 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;
+ }
- /* 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\2\1\0\1\1\1\2\22\0\1\1\1\0\1\40\1\3\3\0\1\41\3\0\1\20\1\43\1\14"+
- "\1\31\1\0\1\21\1\27\6\25\2\15\1\34\2\0\1\42\3\0\4\23\1\30\1\23\15\36\1\35"+
- "\5\36\1\16\1\44\1\37\1\45\1\0\1\17\1\0\1\11\1\26\2\23\1\7\1\10\2\36\1\32\2"+
- "\36\1\12\1\36\1\33\1\24\2\36\1\5\1\13\1\4\1\6\2\36\1\22\1\36\1\16\1\46\1\0"+
- "\1\47\202\0");
+ /**
+ * 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\0\1\1\1\2\22\0\1\1"+
+ "\1\0\1\3\1\4\3\0\1\5\3\0\1\6\1\7"+
+ "\1\10\1\11\1\0\1\12\1\13\6\14\2\15\1\16"+
+ "\2\0\1\17\3\0\4\20\1\21\1\20\15\22\1\23"+
+ "\5\22\1\24\1\25\1\26\1\27\1\0\1\30\1\0"+
+ "\1\31\1\32\2\20\1\33\1\34\2\22\1\35\2\22"+
+ "\1\36\1\22\1\37\1\40\2\22\1\41\1\42\1\43"+
+ "\1\44\2\22\1\45\1\22\1\24\1\46\1\0\1\47"+
+ "\u0182\0";
+
+ private static int [] zzUnpackcmap_blocks() {
+ int [] result = new int[512];
+ 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.
@@ -63,17 +97,17 @@ public class _TomlLexer implements FlexLexer {
private static final int [] ZZ_ACTION = zzUnpackAction();
private static final String ZZ_ACTION_PACKED_0 =
- "\1\0\1\1\1\2\1\3\4\4\1\5\1\1\1\5"+
- "\1\6\2\4\1\7\1\10\1\11\1\12\1\13\1\14"+
- "\1\15\1\16\2\4\2\5\1\4\1\5\1\4\1\0"+
- "\2\17\2\0\1\5\5\4\3\7\3\10\2\4\1\5"+
- "\1\4\1\17\1\0\1\5\1\0\2\17\4\0\1\5"+
- "\4\17\1\7\1\20\1\10\1\21\1\22\1\17\1\5"+
- "\1\0\1\17\1\5\1\20\1\0\1\21\1\0\1\4"+
- "\1\0\1\20\1\0\1\21\1\0\1\4\2\0\1\20"+
- "\1\0\1\21\1\4\1\0\1\20\1\21\1\4\1\23"+
- "\1\4\1\0\1\23\1\0\1\24\1\0\1\23\2\4"+
- "\1\24\1\0\2\4\1\0\2\4\1\0";
+ "\1\0\1\1\1\2\1\3\1\4\1\5\1\1\1\6"+
+ "\1\7\1\10\2\11\1\12\1\7\1\13\1\14\4\7"+
+ "\1\15\1\16\3\3\3\5\2\17\2\0\2\11\1\0"+
+ "\1\11\4\7\1\11\5\7\1\3\1\20\1\5\1\21"+
+ "\4\0\1\11\1\17\1\11\2\0\1\7\4\17\1\11"+
+ "\1\17\1\7\1\17\1\7\1\0\1\20\1\0\1\21"+
+ "\2\17\1\11\1\0\1\11\1\22\1\0\1\20\1\0"+
+ "\1\21\1\7\1\0\1\20\1\0\1\21\1\0\1\7"+
+ "\1\0\1\20\1\21\1\7\1\0\1\7\1\23\1\7"+
+ "\2\0\1\23\1\24\1\0\1\23\2\7\1\24\1\0"+
+ "\2\7\1\0\2\7\1\0";
private static int [] zzUnpackAction() {
int [] result = new int[114];
@@ -101,20 +135,20 @@ public class _TomlLexer implements FlexLexer {
private static final int [] ZZ_ROWMAP = zzUnpackRowMap();
private static final String ZZ_ROWMAP_PACKED_0 =
- "\0\0\0\50\0\120\0\170\0\240\0\310\0\360\0\u0118"+
- "\0\u0140\0\u0168\0\u0190\0\50\0\u01b8\0\u01e0\0\u0208\0\u0230"+
- "\0\50\0\50\0\50\0\50\0\50\0\50\0\u0258\0\u0280"+
+ "\0\0\0\50\0\120\0\170\0\240\0\310\0\360\0\50"+
+ "\0\u0118\0\50\0\u0140\0\u0168\0\50\0\u0190\0\50\0\50"+
+ "\0\u01b8\0\u01e0\0\u0208\0\u0230\0\50\0\50\0\u0258\0\u0280"+
"\0\u02a8\0\u02d0\0\u02f8\0\u0320\0\u0348\0\u0370\0\u0398\0\u03c0"+
"\0\u03e8\0\u0410\0\u0438\0\u0460\0\u0488\0\u04b0\0\u04d8\0\u0500"+
- "\0\u0528\0\u0550\0\u0578\0\u05a0\0\u05c8\0\u05f0\0\u0618\0\u0640"+
- "\0\u0668\0\u0690\0\u06b8\0\u06e0\0\u0708\0\u0730\0\u0758\0\u0780"+
- "\0\u07a8\0\u07d0\0\u07f8\0\u0820\0\u0848\0\u0870\0\u0898\0\u08c0"+
- "\0\310\0\50\0\u08e8\0\50\0\u0910\0\310\0\u0938\0\u0960"+
- "\0\u0988\0\50\0\u09b0\0\u09d8\0\u0a00\0\u0a28\0\u0a50\0\u0a78"+
- "\0\u0aa0\0\u0ac8\0\u0af0\0\u0b18\0\u0b40\0\u0b68\0\u0b90\0\u0bb8"+
- "\0\50\0\u0be0\0\50\0\u0c08\0\u0c30\0\u0af0\0\u0b40\0\u0c58"+
- "\0\u0c80\0\u0ca8\0\u0cd0\0\50\0\u0cf8\0\u0d20\0\u0d48\0\u0d70"+
- "\0\u0d98\0\u0dc0\0\310\0\u0de8\0\u0e10\0\u0e38\0\u0e60\0\u0e88"+
+ "\0\u0528\0\u0550\0\u0578\0\u05a0\0\u05c8\0\u05f0\0\50\0\u0618"+
+ "\0\50\0\u0640\0\u0668\0\u0690\0\u06b8\0\u06e0\0\u0708\0\u0730"+
+ "\0\u0758\0\u0780\0\u07a8\0\u07d0\0\u07f8\0\u0820\0\u0848\0\u0870"+
+ "\0\u0898\0\u08c0\0\u08e8\0\u0190\0\u0910\0\u0938\0\u0960\0\u0988"+
+ "\0\u09b0\0\u09d8\0\50\0\u0a00\0\u0a28\0\u0a50\0\u0190\0\u0a78"+
+ "\0\u0aa0\0\u0ac8\0\u0af0\0\u0b18\0\u0b40\0\50\0\u0b68\0\50"+
+ "\0\u0b90\0\u0bb8\0\u0be0\0\u0a78\0\u0ac8\0\u0c08\0\u0c30\0\u0c58"+
+ "\0\u0c80\0\u0ca8\0\u0cd0\0\u0cf8\0\50\0\u0d20\0\u0d48\0\u0d70"+
+ "\0\u0d98\0\u0dc0\0\u0190\0\u0de8\0\u0e10\0\u0e38\0\u0e60\0\u0e88"+
"\0\u0eb0\0\u0ed8";
private static int [] zzUnpackRowMap() {
@@ -127,7 +161,7 @@ public class _TomlLexer implements FlexLexer {
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();
+ int l = packed.length() - 1;
while (i < l) {
int high = packed.charAt(i++) << 16;
result[j++] = high | packed.charAt(i++);
@@ -138,136 +172,102 @@ public class _TomlLexer implements FlexLexer {
/**
* The transition table of the DFA
*/
- private static final int [] ZZ_TRANS = zzUnpackTrans();
+ private static final int [] ZZ_TRANS = zzUnpacktrans();
private static final String ZZ_TRANS_PACKED_0 =
- "\1\2\2\3\1\4\1\5\3\6\1\7\3\6\1\10"+
- "\1\11\2\6\1\12\1\13\3\6\1\11\1\6\1\11"+
- "\1\6\1\14\1\15\1\16\1\2\2\6\1\2\1\17"+
- "\1\20\1\21\1\22\1\23\1\24\1\25\1\26\51\0"+
- "\2\3\45\0\2\4\1\0\45\4\4\0\1\6\1\27"+
- "\12\6\1\0\10\6\1\0\2\6\1\0\2\6\15\0"+
- "\14\6\1\0\10\6\1\0\2\6\1\0\2\6\15\0"+
- "\5\6\1\30\6\6\1\0\10\6\1\0\2\6\1\0"+
- "\2\6\15\0\11\6\1\31\2\6\1\0\1\32\3\6"+
- "\1\31\1\6\1\31\1\6\1\0\1\15\1\16\1\0"+
- "\2\6\15\0\3\6\1\33\5\6\1\34\1\6\1\35"+
- "\1\0\1\34\3\6\1\34\1\6\1\34\1\33\1\36"+
- "\2\6\1\0\2\6\26\0\1\37\3\0\1\40\3\0"+
- "\1\37\1\0\1\37\2\0\1\41\1\42\20\0\3\6"+
- "\1\33\5\6\1\43\2\6\1\0\1\43\1\44\1\6"+
- "\1\45\1\43\1\46\1\43\1\33\1\36\2\6\1\0"+
- "\2\6\15\0\14\6\1\0\10\6\1\0\1\6\1\47"+
- "\1\0\2\6\15\0\5\6\1\50\6\6\1\0\10\6"+
- "\1\0\2\6\1\0\2\6\11\0\2\51\1\0\34\51"+
- "\1\52\1\53\7\51\2\54\1\0\34\54\1\55\1\54"+
- "\1\56\6\54\4\0\2\6\1\57\11\6\1\0\10\6"+
- "\1\0\2\6\1\0\2\6\15\0\6\6\1\60\5\6"+
- "\1\0\10\6\1\0\2\6\1\0\2\6\15\0\3\6"+
- "\1\33\5\6\1\31\1\6\1\35\1\0\1\31\3\6"+
- "\1\31\1\6\1\31\1\33\1\36\2\6\1\0\2\6"+
- "\15\0\3\6\1\33\5\6\1\61\2\6\1\0\1\61"+
- "\3\6\1\61\1\6\1\61\1\33\1\36\2\6\1\0"+
- "\2\6\15\0\10\6\1\62\1\63\2\6\1\64\1\63"+
- "\3\6\1\63\1\6\1\63\1\6\1\0\2\6\1\0"+
- "\2\6\15\0\3\6\1\33\5\6\1\65\1\6\1\35"+
- "\1\0\1\65\3\6\1\65\1\6\1\65\1\33\1\36"+
- "\2\6\1\66\2\6\15\0\11\6\1\67\2\6\1\0"+
- "\1\67\3\6\1\67\1\6\1\67\1\6\1\0\2\6"+
- "\1\0\2\6\26\0\1\70\3\0\1\70\3\0\1\70"+
- "\1\0\1\70\27\0\1\71\5\0\1\37\1\0\1\72"+
- "\1\0\1\37\3\0\1\37\1\0\1\37\1\71\1\36"+
- "\25\0\1\71\20\0\1\71\1\36\51\0\1\73\25\0"+
- "\1\74\42\0\11\6\1\75\2\6\1\0\1\75\3\6"+
- "\1\75\1\6\1\75\1\6\1\0\2\6\1\66\2\6"+
- "\15\0\3\6\3\76\3\6\1\76\2\6\1\0\1\76"+
- "\1\6\1\76\1\6\4\76\1\0\2\6\1\0\2\6"+
- "\15\0\14\6\1\0\1\77\3\6\1\77\1\6\1\77"+
- "\1\6\1\0\2\6\1\0\2\6\15\0\14\6\1\0"+
- "\1\100\5\6\1\100\1\6\1\0\2\6\1\0\2\6"+
- "\15\0\4\6\1\101\7\6\1\0\10\6\1\0\2\6"+
- "\1\0\2\6\15\0\14\6\1\0\10\6\1\0\1\6"+
- "\1\101\1\0\2\6\11\0\2\51\1\0\34\51\1\52"+
- "\1\102\46\51\1\52\10\51\40\0\1\103\7\0\2\54"+
- "\1\0\34\54\1\55\1\54\1\104\45\54\1\55\10\54"+
- "\41\0\1\105\12\0\3\6\1\106\10\6\1\0\10\6"+
- "\1\0\2\6\1\0\2\6\15\0\7\6\1\57\4\6"+
- "\1\0\10\6\1\0\2\6\1\0\2\6\15\0\11\6"+
- "\1\61\2\6\1\0\1\61\3\6\1\61\1\6\1\61"+
- "\1\6\1\0\2\6\1\0\2\6\15\0\11\6\1\63"+
- "\2\6\1\0\1\63\3\6\1\63\1\6\1\63\1\6"+
- "\1\0\2\6\1\0\2\6\15\0\11\6\1\63\1\6"+
- "\1\62\1\0\1\63\3\6\1\63\1\6\1\63\1\6"+
- "\1\0\2\6\1\0\2\6\26\0\1\107\3\0\1\107"+
- "\3\0\1\107\1\0\1\107\24\0\3\6\1\33\5\6"+
- "\1\110\1\6\1\35\1\0\1\110\3\6\1\110\1\6"+
- "\1\110\1\33\1\36\2\6\1\0\2\6\26\0\1\111"+
- "\3\0\1\111\3\0\1\111\1\0\1\111\24\0\3\6"+
- "\1\33\5\6\1\67\1\6\1\35\1\0\1\67\3\6"+
- "\1\67\1\6\1\67\1\33\1\36\2\6\1\0\2\6"+
- "\20\0\1\71\5\0\1\70\1\0\1\36\1\0\1\70"+
- "\3\0\1\70\1\0\1\70\1\71\33\0\1\64\1\107"+
- "\2\0\1\64\1\107\3\0\1\107\1\0\1\107\35\0"+
- "\1\37\3\0\1\37\3\0\1\37\1\0\1\37\30\0"+
- "\1\112\72\0\1\112\20\0\11\6\1\113\2\6\1\0"+
- "\1\113\3\6\1\113\1\6\1\113\1\6\1\0\2\6"+
- "\1\0\2\6\15\0\3\6\3\76\3\6\1\76\1\6"+
- "\1\44\1\0\1\76\1\6\1\76\1\6\4\76\1\0"+
- "\2\6\1\0\2\6\15\0\13\6\1\45\1\0\1\77"+
- "\3\6\1\77\1\6\1\77\1\6\1\0\2\6\1\0"+
- "\2\6\15\0\13\6\1\46\1\0\1\100\5\6\1\100"+
- "\1\6\1\0\2\6\1\0\2\6\11\0\37\103\1\114"+
- "\1\115\7\103\37\105\1\116\1\105\1\117\6\105\15\0"+
- "\1\107\1\0\1\64\1\0\1\107\3\0\1\107\1\0"+
- "\1\107\24\0\3\6\1\33\4\6\1\120\1\31\1\6"+
- "\1\35\1\0\1\31\3\6\1\31\1\6\1\31\1\33"+
- "\1\36\2\6\1\0\2\6\26\0\1\121\3\0\1\121"+
- "\3\0\1\121\1\0\1\121\24\0\10\6\1\120\1\61"+
- "\2\6\1\0\1\61\3\6\1\61\1\6\1\61\1\6"+
- "\1\0\2\6\1\0\2\6\11\0\37\103\1\114\1\122"+
- "\47\103\1\123\7\103\37\105\1\116\1\105\1\124\47\105"+
- "\1\125\6\105\4\0\11\6\1\126\2\6\1\0\1\126"+
- "\3\6\1\126\1\6\1\126\1\6\1\0\2\6\1\0"+
- "\2\6\45\0\1\127\13\0\37\103\1\114\1\130\47\103"+
- "\1\131\7\103\37\105\1\116\1\105\1\132\47\105\1\133"+
- "\6\105\4\0\11\6\1\134\2\6\1\0\1\134\3\6"+
- "\1\134\1\6\1\134\1\6\1\0\2\6\1\0\2\6"+
- "\26\0\1\135\3\0\1\135\3\0\1\135\1\0\1\135"+
- "\20\0\40\103\1\136\7\103\41\105\1\137\6\105\4\0"+
- "\10\6\1\140\3\6\1\0\10\6\1\0\2\6\1\0"+
- "\2\6\26\0\1\141\3\0\1\141\3\0\1\141\1\0"+
- "\1\141\24\0\11\6\1\142\2\6\1\0\1\142\3\6"+
- "\1\142\1\6\1\142\1\6\1\0\2\6\1\0\2\6"+
- "\25\0\1\143\1\0\1\144\1\0\1\143\10\0\1\145"+
- "\22\0\11\6\1\146\2\6\1\0\1\146\3\6\1\146"+
- "\1\6\1\146\1\6\1\0\2\6\1\0\2\6\26\0"+
- "\1\147\3\0\1\147\3\0\1\147\1\0\1\147\35\0"+
- "\1\150\3\0\1\150\3\0\1\150\1\0\1\150\24\0"+
- "\1\151\7\6\1\152\1\6\1\153\1\6\1\143\10\6"+
- "\1\0\2\6\1\0\1\151\1\6\26\0\1\154\3\0"+
- "\1\154\3\0\1\154\1\0\1\154\34\0\1\143\1\150"+
- "\1\144\1\0\1\143\1\150\3\0\1\150\1\0\1\150"+
- "\24\0\11\6\1\155\2\6\1\0\1\155\3\6\1\155"+
- "\1\6\1\155\1\6\1\0\2\6\1\0\2\6\15\0"+
- "\11\6\1\156\2\6\1\0\1\156\3\6\1\156\1\6"+
- "\1\156\1\6\1\0\2\6\1\0\2\6\45\0\1\157"+
- "\17\0\11\6\1\160\2\6\1\0\1\160\3\6\1\160"+
- "\1\6\1\160\1\6\1\0\2\6\1\0\2\6\15\0"+
- "\11\6\1\161\2\6\1\0\1\161\3\6\1\161\1\6"+
- "\1\161\1\6\1\0\2\6\1\0\2\6\26\0\1\162"+
- "\3\0\1\162\3\0\1\162\1\0\1\162\24\0\14\6"+
- "\1\0\10\6\1\0\2\6\1\66\2\6\15\0\14\6"+
- "\1\0\10\6\1\0\2\6\1\157\2\6\26\0\1\144"+
- "\3\0\1\144\3\0\1\144\1\0\1\144\20\0";
+ "\1\2\2\3\1\4\1\5\1\6\1\7\1\10\1\11"+
+ "\1\12\1\13\3\14\1\2\1\15\5\16\1\17\1\2"+
+ "\1\20\4\16\1\21\1\22\1\16\1\23\3\16\1\24"+
+ "\2\16\1\25\1\26\51\0\2\3\45\0\2\27\1\0"+
+ "\1\30\22\27\1\31\21\27\2\5\1\0\45\5\2\32"+
+ "\1\0\2\32\1\33\20\32\1\34\21\32\12\0\1\35"+
+ "\3\36\17\0\1\37\1\0\1\40\20\0\1\16\1\0"+
+ "\1\41\3\42\2\0\5\16\3\0\5\16\1\22\1\16"+
+ "\1\23\6\16\12\0\1\16\1\43\4\44\2\0\1\16"+
+ "\1\45\3\16\3\0\2\16\1\46\1\45\4\16\1\47"+
+ "\4\16\1\50\12\0\1\16\1\43\4\51\2\0\1\16"+
+ "\1\45\3\16\3\0\1\52\2\16\1\45\12\16\12\0"+
+ "\1\16\1\0\4\16\2\0\5\16\3\0\16\16\12\0"+
+ "\1\16\1\0\4\16\2\0\5\16\3\0\1\16\1\53"+
+ "\14\16\12\0\1\16\1\0\4\16\2\0\5\16\3\0"+
+ "\7\16\1\54\6\16\12\0\1\16\1\0\4\16\2\0"+
+ "\5\16\3\0\1\16\1\55\14\16\12\0\1\16\1\0"+
+ "\4\16\2\0\5\16\3\0\11\16\1\56\4\16\2\0"+
+ "\2\27\1\0\1\57\22\27\1\31\21\27\3\0\1\60"+
+ "\44\0\26\27\1\31\21\27\2\32\1\0\2\32\1\61"+
+ "\20\32\1\34\21\32\5\0\1\62\42\0\26\32\1\34"+
+ "\21\32\11\0\1\43\7\0\1\63\11\0\1\63\25\0"+
+ "\1\43\4\36\3\0\1\63\6\0\1\64\2\0\1\63"+
+ "\53\0\1\65\41\0\1\66\26\0\1\16\1\43\4\67"+
+ "\2\0\1\16\1\45\3\16\3\0\3\16\1\45\12\16"+
+ "\12\0\1\16\1\43\4\42\2\0\1\16\1\45\3\16"+
+ "\3\0\1\52\2\16\1\45\12\16\14\0\4\70\42\0"+
+ "\1\16\1\0\4\71\1\72\1\0\5\16\3\0\16\16"+
+ "\10\0\1\73\1\0\1\74\1\0\4\75\2\0\5\16"+
+ "\3\0\16\16\12\0\1\16\1\0\2\76\2\16\2\0"+
+ "\5\16\3\0\16\16\12\0\1\16\1\0\3\77\1\16"+
+ "\2\0\5\16\3\0\16\16\12\0\1\16\1\0\4\100"+
+ "\2\0\2\100\3\16\3\0\1\16\4\100\11\16\12\0"+
+ "\1\16\1\43\4\101\1\72\1\0\1\16\1\45\3\16"+
+ "\3\0\1\52\2\16\1\45\12\16\12\0\1\16\1\0"+
+ "\4\102\2\0\5\16\3\0\16\16\12\0\1\16\1\0"+
+ "\4\16\2\0\5\16\3\0\6\16\1\103\7\16\12\0"+
+ "\1\16\1\0\4\16\2\0\5\16\3\0\4\16\1\104"+
+ "\11\16\12\0\1\16\1\0\4\16\2\0\5\16\3\0"+
+ "\7\16\1\104\6\16\12\0\1\16\1\0\4\16\2\0"+
+ "\5\16\3\0\14\16\1\105\1\16\2\0\3\60\1\106"+
+ "\22\60\1\107\21\60\5\62\1\110\20\62\1\111\21\62"+
+ "\6\0\1\73\1\0\1\73\1\0\4\112\44\0\4\36"+
+ "\66\0\1\113\52\0\1\113\20\0\1\16\1\0\4\67"+
+ "\2\0\5\16\3\0\16\16\14\0\4\70\3\0\1\63"+
+ "\6\0\1\43\2\0\1\63\24\0\1\16\1\0\4\114"+
+ "\2\0\5\16\3\0\16\16\14\0\4\115\44\0\4\112"+
+ "\42\0\1\16\1\0\4\75\2\0\5\16\3\0\16\16"+
+ "\12\0\1\16\1\0\4\75\2\0\5\16\3\0\1\74"+
+ "\15\16\12\0\1\16\1\0\2\76\2\16\2\0\5\16"+
+ "\3\0\1\46\15\16\12\0\1\16\1\0\3\77\1\16"+
+ "\2\0\5\16\3\0\1\47\15\16\12\0\1\16\1\0"+
+ "\4\100\2\0\2\100\3\16\3\0\1\50\4\100\11\16"+
+ "\12\0\1\16\1\43\4\116\2\0\1\16\1\45\3\16"+
+ "\3\0\1\52\2\16\1\45\12\16\12\0\1\16\1\43"+
+ "\4\102\2\0\1\16\1\45\3\16\3\0\1\52\2\16"+
+ "\1\45\12\16\12\0\1\16\1\0\4\16\2\0\5\16"+
+ "\3\0\12\16\1\105\3\16\12\0\1\16\1\0\4\16"+
+ "\2\0\5\16\3\0\3\16\1\117\12\16\2\0\3\60"+
+ "\1\120\47\60\1\121\22\60\1\107\21\60\5\62\1\122"+
+ "\47\62\1\123\20\62\1\111\21\62\12\0\4\112\12\0"+
+ "\1\73\27\0\1\124\1\0\4\67\2\0\5\16\3\0"+
+ "\16\16\14\0\4\125\42\0\1\124\1\43\4\42\2\0"+
+ "\1\16\1\45\3\16\3\0\1\52\2\16\1\45\12\16"+
+ "\2\0\3\60\1\126\47\60\1\127\22\60\1\107\21\60"+
+ "\5\62\1\130\47\62\1\131\20\62\1\111\21\62\10\0"+
+ "\1\16\1\0\4\132\2\0\5\16\3\0\16\16\20\0"+
+ "\1\133\31\0\3\60\1\134\44\60\5\62\1\135\42\62"+
+ "\10\0\1\16\1\0\4\136\2\0\5\16\3\0\16\16"+
+ "\14\0\4\137\42\0\1\140\1\0\4\16\2\0\5\16"+
+ "\3\0\16\16\14\0\4\141\42\0\1\16\1\0\4\142"+
+ "\2\0\5\16\3\0\16\16\10\0\1\143\1\0\1\143"+
+ "\1\144\12\0\1\145\33\0\1\16\1\0\4\146\2\0"+
+ "\5\16\3\0\16\16\14\0\4\147\44\0\4\150\40\0"+
+ "\1\143\1\0\1\151\1\0\4\16\2\0\3\16\1\152"+
+ "\1\153\3\0\13\16\1\152\2\16\14\0\4\154\40\0"+
+ "\1\143\1\0\1\143\1\0\4\150\6\0\1\145\33\0"+
+ "\1\16\1\0\4\155\2\0\5\16\3\0\16\16\12\0"+
+ "\1\16\1\0\4\156\2\0\5\16\3\0\16\16\20\0"+
+ "\1\157\41\0\1\16\1\0\4\160\2\0\5\16\3\0"+
+ "\16\16\12\0\1\16\1\0\4\161\2\0\5\16\3\0"+
+ "\16\16\14\0\4\162\42\0\1\16\1\0\4\16\1\157"+
+ "\1\0\5\16\3\0\16\16\12\0\1\16\1\0\4\16"+
+ "\1\72\1\0\5\16\3\0\16\16\14\0\4\145\32\0";
- private static int [] zzUnpackTrans() {
+ private static int [] zzUnpacktrans() {
int [] result = new int[3840];
int offset = 0;
- offset = zzUnpackTrans(ZZ_TRANS_PACKED_0, offset, result);
+ offset = zzUnpacktrans(ZZ_TRANS_PACKED_0, offset, result);
return result;
}
- private static int zzUnpackTrans(String packed, int offset, int [] 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();
@@ -294,18 +294,19 @@ public class _TomlLexer implements FlexLexer {
};
/**
- * ZZ_ATTRIBUTE[aState] contains the attributes of state aState
+ * 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 =
- "\1\0\1\11\11\1\1\11\4\1\6\11\7\1\1\0"+
- "\2\1\2\0\21\1\1\0\1\1\1\0\2\1\4\0"+
- "\5\1\1\11\1\1\1\11\4\1\1\0\1\11\2\1"+
- "\1\0\1\1\1\0\1\1\1\0\1\1\1\0\1\1"+
- "\1\0\1\1\2\0\1\11\1\0\1\11\1\1\1\0"+
- "\5\1\1\0\1\11\1\0\1\1\1\0\4\1\1\0"+
- "\2\1\1\0\2\1\1\0";
+ "\1\0\1\11\5\1\1\11\1\1\1\11\2\1\1\11"+
+ "\1\1\2\11\4\1\2\11\10\1\2\0\2\1\1\0"+
+ "\13\1\1\11\1\1\1\11\1\1\4\0\3\1\2\0"+
+ "\12\1\1\0\1\1\1\0\2\1\1\11\1\1\1\0"+
+ "\2\1\1\0\1\1\1\0\2\1\1\0\1\11\1\0"+
+ "\1\11\1\0\1\1\1\0\3\1\1\0\3\1\2\0"+
+ "\1\11\1\1\1\0\4\1\1\0\2\1\1\0\2\1"+
+ "\1\0";
private static int [] zzUnpackAttribute() {
int [] result = new int[114];
@@ -352,15 +353,27 @@ public class _TomlLexer implements FlexLexer {
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 */
+ /** 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. */
+ @SuppressWarnings("unused")
private boolean zzEOFDone;
/* user code: */
@@ -379,26 +392,22 @@ public class _TomlLexer implements FlexLexer {
}
+ /** 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;
+ }
+
/**
- * Unpacks the compressed character translation table.
- *
- * @param packed the packed character translation table
- * @return the unpacked character translation table
+ * Translates raw input code points to DFA table row
*/
- 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;
+ 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() {
@@ -530,7 +539,8 @@ public class _TomlLexer implements FlexLexer {
* @return the next token
* @exception java.io.IOException if any I/O-Error occurs
*/
- public IElementType advance() throws java.io.IOException {
+ public IElementType advance() throws java.io.IOException
+ {
int zzInput;
int zzAction;
@@ -564,7 +574,7 @@ public class _TomlLexer implements FlexLexer {
while (true) {
if (zzCurrentPosL < zzEndReadL) {
- zzInput = Character.codePointAt(zzBufferL, zzCurrentPosL/*, zzEndReadL*/);
+ zzInput = Character.codePointAt(zzBufferL, zzCurrentPosL);
zzCurrentPosL += Character.charCount(zzInput);
}
else if (zzAtEOF) {
@@ -586,11 +596,11 @@ public class _TomlLexer implements FlexLexer {
break zzForAction;
}
else {
- zzInput = Character.codePointAt(zzBufferL, zzCurrentPosL/*, zzEndReadL*/);
+ zzInput = Character.codePointAt(zzBufferL, zzCurrentPosL);
zzCurrentPosL += Character.charCount(zzInput);
}
}
- int zzNext = zzTransL[ zzRowMapL[zzState] + ZZ_CMAP(zzInput) ];
+ int zzNext = zzTransL[ zzRowMapL[zzState] + zzCMap(zzInput) ];
if (zzNext == -1) break zzForAction;
zzState = zzNext;
@@ -616,102 +626,102 @@ public class _TomlLexer implements FlexLexer {
case 1:
{ return com.intellij.psi.TokenType.BAD_CHARACTER;
}
- // fall through
+ // fall through
case 21: break;
case 2:
{ return com.intellij.psi.TokenType.WHITE_SPACE;
}
- // fall through
+ // fall through
case 22: break;
case 3:
- { return COMMENT;
- }
- // fall through
- case 23: break;
- case 4:
- { return BARE_KEY;
- }
- // fall through
- case 24: break;
- case 5:
- { return BARE_KEY_OR_NUMBER;
- }
- // fall through
- case 25: break;
- case 6:
- { return DOT;
- }
- // fall through
- case 26: break;
- case 7:
{ return BASIC_STRING;
}
- // fall through
- case 27: break;
- case 8:
+ // fall through
+ case 23: break;
+ case 4:
+ { return COMMENT;
+ }
+ // fall through
+ case 24: break;
+ case 5:
{ return LITERAL_STRING;
}
- // fall through
- case 28: break;
- case 9:
- { return EQ;
- }
- // fall through
- case 29: break;
- case 10:
+ // fall through
+ case 25: break;
+ case 6:
{ return COMMA;
}
- // fall through
+ // fall through
+ case 26: break;
+ case 7:
+ { return BARE_KEY;
+ }
+ // fall through
+ case 27: break;
+ case 8:
+ { return DOT;
+ }
+ // fall through
+ case 28: break;
+ case 9:
+ { return BARE_KEY_OR_NUMBER;
+ }
+ // fall through
+ case 29: break;
+ case 10:
+ { return EQ;
+ }
+ // fall through
case 30: break;
case 11:
{ return L_BRACKET;
}
- // fall through
+ // fall through
case 31: break;
case 12:
{ return R_BRACKET;
}
- // fall through
+ // fall through
case 32: break;
case 13:
{ return L_CURLY;
}
- // fall through
+ // fall through
case 33: break;
case 14:
{ return R_CURLY;
}
- // fall through
+ // fall through
case 34: break;
case 15:
{ return NUMBER;
}
- // fall through
+ // fall through
case 35: break;
case 16:
{ return MULTILINE_BASIC_STRING;
}
- // fall through
+ // fall through
case 36: break;
case 17:
{ return MULTILINE_LITERAL_STRING;
}
- // fall through
+ // fall through
case 37: break;
case 18:
{ return BOOLEAN;
}
- // fall through
+ // fall through
case 38: break;
case 19:
{ return DATE_TIME;
}
- // fall through
+ // fall through
case 39: break;
case 20:
{ return BARE_KEY_OR_DATE;
}
- // fall through
+ // fall through
case 40: break;
default:
zzScanError(ZZ_NO_MATCH);