/* The following code was generated by JFlex 1.4.1 on 3/13/06 6:15 PM */ /* * Copyright 2000-2006 Omnicore Software, Hans Kratz & Dennis Strein GbR, * Geert Bevin <gbevin[remove] at uwyn dot com>. * Distributed under the terms of the GNU Lesser General Public License, v2.1 or later * $Id: GroovyHighlighter.java 3108 2006-03-13 18:03:00Z gbevin $ */ package com.uwyn.jhighlight.highlighter; import java.io.Reader; import java.io.IOException; /** * This class is a scanner generated by * <a href="http://www.jflex.de/">JFlex</a> 1.4.1 * on 3/13/06 6:15 PM from the specification file * <tt>com/uwyn/jhighlight/highlighter/GroovyHighlighter.flex</tt> */ public class GroovyHighlighter implements ExplicitStateHighlighter { /** 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 = 128; /** lexical states */ public static final int IN_HEREDOC = 1; public static final int YYINITIAL = 0; public static final int IN_COMMENT = 2; public static final int IN_JAVA_DOC_COMMENT = 3; /** * Translates characters to character classes */ private static final String ZZ_CMAP_PACKED = "\11\4\1\0\1\50\1\0\1\0\1\0\16\4\4\0\1\0\1\54"+ "\1\47\1\0\1\2\1\54\1\54\1\52\1\53\1\53\1\55\1\24"+ "\1\53\1\24\1\21\1\56\1\6\7\15\2\1\1\54\1\53\1\54"+ "\1\54\1\54\1\54\1\57\3\14\1\17\1\23\1\17\5\5\1\10"+ "\13\5\1\12\2\5\1\53\1\51\1\53\1\54\1\3\1\0\1\25"+ "\1\26\1\13\1\20\1\22\1\16\1\45\1\33\1\36\1\2\1\32"+ "\1\7\1\41\1\35\1\34\1\42\1\2\1\31\1\27\1\30\1\37"+ "\1\43\1\44\1\11\1\40\1\46\1\53\1\54\1\53\1\54\41\4"+ "\2\0\4\2\4\0\1\2\12\0\1\2\4\0\1\2\5\0\27\2"+ "\1\0\37\2\1\0\u0128\2\2\0\22\2\34\0\136\2\2\0\11\2"+ "\2\0\7\2\16\0\2\2\16\0\5\2\11\0\1\2\21\0\117\4"+ "\21\0\3\4\27\0\1\2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\2"+ "\1\0\1\2\1\0\4\2\2\0\37\2\1\0\1\2\1\0\4\2"+ "\2\0\7\2\1\0\1\2\1\0\4\2\2\0\7\2\1\0\7\2"+ "\1\0\27\2\1\0\37\2\1\0\1\2\1\0\4\2\2\0\7\2"+ "\1\0\47\2\1\0\23\2\16\0\11\4\56\0\125\2\14\0\u026c\2"+ "\2\0\10\2\12\0\32\2\5\0\113\2\225\0\64\2\40\4\7\0"+ "\1\2\4\0\12\4\41\0\4\4\1\0\12\4\6\0\130\2\10\0"+ "\51\2\1\4\u0556\0\234\2\4\0\132\2\6\0\26\2\2\0\6\2"+ "\2\0\46\2\2\0\6\2\2\0\10\2\1\0\1\2\1\0\1\2"+ "\1\0\1\2\1\0\37\2\2\0\65\2\1\0\7\2\1\0\1\2"+ "\3\0\3\2\1\0\7\2\3\0\4\2\2\0\6\2\4\0\15\2"+ "\5\0\3\2\1\0\7\2\17\0\4\4\32\0\5\4\20\0\2\2"+ "\51\0\6\4\17\0\1\2\40\0\20\2\40\0\15\4\4\0\1\4"+ "\40\0\1\2\4\0\1\2\2\0\12\2\1\0\1\2\3\0\5\2"+ "\6\0\1\2\1\0\1\2\1\0\1\2\1\0\4\2\1\0\3\2"+ "\1\0\7\2\46\0\44\2\u0e81\0\3\2\31\0\11\2\6\4\1\0"+ "\5\2\2\0\3\2\6\0\124\2\4\0\2\4\2\0\2\2\2\0"+ "\136\2\6\0\50\2\4\0\136\2\21\0\30\2\u0248\0\u19b6\2\112\0"+ "\u51a6\2\132\0\u048d\2\u0773\0\u2ba4\2\u215c\0\u012e\2\322\0\7\2\14\0"+ "\5\2\5\0\1\2\1\4\12\2\1\0\15\2\1\0\5\2\1\0"+ "\1\2\1\0\2\2\1\0\2\2\1\0\154\2\41\0\u016b\2\22\0"+ "\100\2\2\0\66\2\50\0\14\2\44\0\4\4\17\0\2\2\30\0"+ "\3\2\31\0\1\2\6\0\3\2\1\0\1\2\1\0\207\2\2\0"+ "\1\4\4\0\1\2\13\0\12\4\7\0\32\2\4\0\1\2\1\0"+ "\32\2\12\0\132\2\3\0\6\2\2\0\6\2\2\0\6\2\2\0"+ "\3\2\3\0\2\2\3\0\2\2\22\0\3\4\4\0"; /** * Translates characters to character classes */ private static final char [] ZZ_CMAP = zzUnpackCMap(ZZ_CMAP_PACKED); /** * 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\2\2\1\1\2\4\1\1\3\1\1"+ "\1\4\16\1\1\3\1\4\2\2\1\1\1\5\1\1"+ "\3\6\1\1\2\2\1\0\1\1\1\7\4\2\12\1"+ "\1\10\3\1\1\10\16\1\2\10\10\1\1\0\1\2"+ "\3\0\1\11\4\0\1\12\1\13\1\14\1\2\1\0"+ "\1\2\11\1\1\10\25\1\1\7\12\1\1\15\1\16"+ "\1\17\1\7\20\1\1\2\14\1\1\10\10\1\1\10"+ "\36\1"; private static int [] zzUnpackAction() { int [] result = new int[220]; 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\60\0\140\0\220\0\300\0\360\0\u0120\0\u0150"+ "\0\u0180\0\u01b0\0\u01e0\0\u0210\0\u0240\0\u0270\0\u02a0\0\300"+ "\0\u02d0\0\u0300\0\u0330\0\u0360\0\u0390\0\u03c0\0\u03f0\0\u0420"+ "\0\u0450\0\u0480\0\u04b0\0\u04e0\0\u0510\0\u0540\0\300\0\u0570"+ "\0\300\0\u05a0\0\u05d0\0\300\0\u0600\0\300\0\u0630\0\u0660"+ "\0\u0690\0\u0690\0\u06c0\0\u06f0\0\u0720\0\u0750\0\u0780\0\u07b0"+ "\0\u07e0\0\u0810\0\u0840\0\u0870\0\u08a0\0\u08d0\0\u0900\0\u0930"+ "\0\u0960\0\u0990\0\u09c0\0\u09f0\0\u0a20\0\u0a50\0\u0a80\0\u0ab0"+ "\0\u0ae0\0\u0b10\0\u0b40\0\u0b70\0\u0ba0\0\u0bd0\0\u0c00\0\u0c30"+ "\0\u0c60\0\u0c90\0\u0cc0\0\u0cf0\0\u0d20\0\u0d50\0\u0d80\0\u0120"+ "\0\u0db0\0\u0de0\0\u0e10\0\u0e40\0\u0e70\0\u0ea0\0\u0ed0\0\u0f00"+ "\0\u0f30\0\u0f60\0\u0f90\0\u0fc0\0\u0540\0\u0ff0\0\u1020\0\u1050"+ "\0\u1080\0\u05d0\0\u0600\0\300\0\300\0\u10b0\0\u10e0\0\u1110"+ "\0\u1140\0\u1170\0\u11a0\0\u11d0\0\u1200\0\u1230\0\u1260\0\u1290"+ "\0\u12c0\0\u12f0\0\u1320\0\u1350\0\u1380\0\u13b0\0\u13e0\0\u1410"+ "\0\u1440\0\u1470\0\u14a0\0\u14d0\0\u1500\0\u1530\0\u1560\0\u1590"+ "\0\u15c0\0\u15f0\0\u1620\0\u1650\0\u1680\0\u16b0\0\u16e0\0\u1710"+ "\0\u1740\0\u1770\0\u17a0\0\u17d0\0\u1800\0\u1830\0\u1860\0\u1890"+ "\0\u18c0\0\u18f0\0\u1920\0\300\0\u1950\0\300\0\u0120\0\u1980"+ "\0\u19b0\0\u19e0\0\u1a10\0\u1a40\0\u1a70\0\u1aa0\0\u1ad0\0\u1b00"+ "\0\u1b30\0\u1b60\0\u1b90\0\u1bc0\0\u1bf0\0\u1c20\0\u1c50\0\u0120"+ "\0\u1c80\0\u1cb0\0\u1ce0\0\u1d10\0\u1d40\0\u1d70\0\u1da0\0\u1dd0"+ "\0\u1e00\0\u1e30\0\u1e60\0\u1e90\0\u1ec0\0\u1ef0\0\u1f20\0\u1f50"+ "\0\u1f80\0\u1fb0\0\u1fe0\0\u2010\0\u2040\0\u1650\0\u2070\0\u20a0"+ "\0\u20d0\0\u2100\0\u2130\0\u2160\0\u2190\0\u21c0\0\u21f0\0\u2220"+ "\0\u2250\0\u2280\0\u22b0\0\u22e0\0\u2310\0\u2340\0\u2370\0\u23a0"+ "\0\u23d0\0\u2400\0\u2430\0\u2460\0\u2490\0\u24c0\0\u24f0\0\u2520"+ "\0\u2550\0\u2580\0\u25b0\0\u25e0"; private static int [] zzUnpackRowMap() { int [] result = new int[220]; 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\5\1\6\2\7\1\5\1\10\1\11\1\12\1\10"+ "\1\7\1\10\1\13\1\10\1\6\1\14\1\10\1\15"+ "\1\16\1\17\1\10\1\20\1\21\1\22\1\23\1\24"+ "\1\25\3\7\1\26\1\27\2\7\1\30\1\31\1\32"+ "\1\33\1\34\1\7\1\35\2\5\1\36\1\37\2\20"+ "\1\40\1\5\47\41\1\42\10\41\50\43\1\44\4\43"+ "\1\45\2\43\55\46\1\47\1\46\1\50\61\0\1\6"+ "\1\0\1\51\1\0\1\51\1\6\1\41\1\52\1\0"+ "\1\51\1\0\1\51\1\6\1\41\1\52\1\41\1\53"+ "\1\54\1\55\35\0\20\7\1\0\2\7\1\0\22\7"+ "\12\0\1\10\1\56\1\10\1\56\2\10\1\56\1\10"+ "\1\56\1\10\1\56\2\10\1\56\1\10\1\56\1\0"+ "\1\56\1\10\1\0\22\56\12\0\1\57\1\0\1\51"+ "\1\0\1\51\1\60\1\41\1\52\1\61\1\62\1\0"+ "\1\51\1\60\1\41\1\52\1\41\1\53\1\54\1\55"+ "\35\0\20\7\1\0\2\7\1\0\7\7\1\63\12\7"+ "\12\0\6\7\1\64\11\7\1\0\2\7\1\0\1\65"+ "\5\7\1\66\1\67\12\7\12\0\6\7\1\70\11\7"+ "\1\0\2\7\1\0\1\71\6\7\1\72\1\7\1\73"+ "\10\7\12\0\20\7\1\0\1\74\1\7\1\0\7\7"+ "\1\75\12\7\12\0\1\53\4\0\1\53\6\0\1\53"+ "\43\0\6\7\1\76\1\7\1\77\7\7\1\0\2\7"+ "\1\0\22\7\12\0\20\7\1\0\2\7\1\0\1\7"+ "\1\100\1\101\17\7\12\0\20\7\1\0\2\7\1\0"+ "\4\7\1\102\2\7\1\103\3\7\1\104\6\7\12\0"+ "\20\7\1\0\2\7\1\0\3\7\1\105\2\7\1\106"+ "\3\7\1\107\1\110\3\7\1\111\2\7\12\0\20\7"+ "\1\0\2\7\1\0\4\7\1\112\1\7\1\113\13\7"+ "\12\0\20\7\1\0\1\114\1\7\1\0\22\7\12\0"+ "\20\7\1\0\1\115\1\7\1\0\1\116\11\7\1\117"+ "\7\7\12\0\15\7\1\120\2\7\1\0\2\7\1\0"+ "\10\7\1\121\3\7\1\122\5\7\12\0\20\7\1\0"+ "\2\7\1\0\11\7\1\123\10\7\12\0\20\7\1\0"+ "\2\7\1\0\1\124\3\7\1\125\5\7\1\126\7\7"+ "\12\0\20\7\1\0\2\7\1\0\7\7\1\127\12\7"+ "\12\0\20\7\1\0\2\7\1\0\6\7\1\130\13\7"+ "\12\0\20\7\1\0\2\7\1\0\7\7\1\131\12\7"+ "\11\0\47\132\1\133\1\41\1\134\6\132\50\135\1\41"+ "\1\136\1\41\5\135\55\0\1\137\1\140\50\0\1\141"+ "\10\0\50\142\1\44\4\142\1\143\52\142\1\44\4\142"+ "\1\143\1\144\1\142\56\0\1\145\3\0\2\146\1\0"+ "\1\146\1\0\6\146\1\0\3\146\1\0\2\146\1\0"+ "\22\146\12\0\1\51\1\0\1\51\1\0\2\51\1\0"+ "\1\51\1\0\1\51\1\0\2\51\1\0\1\51\3\0"+ "\1\51\35\0\1\53\4\0\1\53\6\0\1\53\3\41"+ "\1\0\2\54\35\0\1\147\4\0\1\147\6\0\1\147"+ "\6\0\1\150\34\0\1\151\1\0\1\51\1\0\1\51"+ "\1\151\1\0\1\51\1\0\1\51\1\0\1\51\1\151"+ "\1\0\1\51\3\0\1\51\1\150\34\0\20\56\1\0"+ "\2\56\1\0\22\56\12\0\1\57\1\0\1\51\1\0"+ "\1\51\1\57\1\0\1\51\1\0\1\51\1\0\1\51"+ "\1\57\1\41\1\52\1\41\1\53\1\54\1\55\35\0"+ "\1\57\1\0\1\51\1\0\1\51\1\60\1\41\1\52"+ "\1\0\1\51\1\0\1\51\1\60\1\41\1\52\1\41"+ "\1\53\1\54\1\55\35\0\1\61\4\0\1\61\2\41"+ "\2\0\6\61\1\0\2\61\1\0\2\61\32\0\1\62"+ "\1\0\1\51\1\0\1\51\1\62\1\41\1\52\1\0"+ "\1\51\1\61\2\62\1\61\1\62\1\61\1\0\1\61"+ "\1\62\1\0\2\61\32\0\20\7\1\0\2\7\1\0"+ "\10\7\1\152\11\7\12\0\20\7\1\0\2\7\1\0"+ "\1\153\21\7\12\0\20\7\1\0\2\7\1\0\2\7"+ "\1\154\1\155\16\7\12\0\20\7\1\0\2\7\1\0"+ "\1\156\21\7\12\0\20\7\1\0\2\7\1\0\10\7"+ "\1\157\11\7\12\0\20\7\1\0\2\7\1\0\7\7"+ "\1\160\12\7\12\0\6\7\1\161\11\7\1\0\2\7"+ "\1\0\22\7\12\0\20\7\1\0\2\7\1\0\4\7"+ "\1\120\15\7\12\0\20\7\1\0\2\7\1\0\10\7"+ "\1\162\11\7\12\0\15\7\1\163\2\7\1\0\2\7"+ "\1\0\22\7\12\0\20\7\1\0\2\7\1\0\12\7"+ "\1\164\7\7\12\0\20\7\1\0\2\7\1\0\2\7"+ "\1\154\17\7\12\0\20\7\1\0\2\7\1\0\3\7"+ "\1\165\16\7\12\0\20\7\1\0\2\7\1\0\2\7"+ "\1\166\17\7\12\0\20\7\1\0\2\7\1\0\2\7"+ "\1\167\17\7\12\0\20\7\1\0\1\170\1\7\1\0"+ "\22\7\12\0\20\7\1\0\2\7\1\0\7\7\1\171"+ "\12\7\12\0\20\7\1\0\2\7\1\0\3\7\1\172"+ "\16\7\12\0\20\7\1\0\2\7\1\0\1\173\3\7"+ "\1\174\15\7\12\0\20\7\1\0\2\7\1\0\7\7"+ "\1\175\12\7\12\0\20\7\1\0\2\7\1\0\15\7"+ "\1\176\4\7\12\0\20\7\1\0\2\7\1\0\10\7"+ "\1\177\11\7\12\0\20\7\1\0\2\7\1\0\11\7"+ "\1\200\10\7\12\0\20\7\1\0\2\7\1\0\1\201"+ "\11\7\1\202\1\120\6\7\12\0\20\7\1\0\2\7"+ "\1\0\4\7\1\203\4\7\1\204\10\7\12\0\20\7"+ "\1\0\2\7\1\0\3\7\1\205\16\7\12\0\20\7"+ "\1\0\2\7\1\0\17\7\1\120\2\7\12\0\20\7"+ "\1\0\2\7\1\0\3\7\1\206\16\7\12\0\6\7"+ "\1\207\11\7\1\0\2\7\1\0\22\7\12\0\20\7"+ "\1\0\2\7\1\0\2\7\1\210\1\211\16\7\12\0"+ "\20\7\1\0\2\7\1\0\15\7\1\212\4\7\12\0"+ "\10\7\1\213\7\7\1\0\2\7\1\0\22\7\12\0"+ "\12\7\1\214\5\7\1\0\2\7\1\0\22\7\12\0"+ "\20\7\1\0\2\7\1\0\7\7\1\215\1\7\1\216"+ "\10\7\12\0\20\7\1\0\2\7\1\0\1\7\1\217"+ "\20\7\12\0\6\7\1\220\11\7\1\0\2\7\1\0"+ "\11\7\1\221\10\7\12\0\20\7\1\0\2\7\1\0"+ "\11\7\1\222\10\7\12\0\20\7\1\0\2\7\1\0"+ "\3\7\1\223\16\7\11\0\47\132\2\41\1\134\6\132"+ "\47\0\1\224\10\0\50\132\1\41\7\132\50\135\1\41"+ "\7\135\55\0\1\225\2\0\50\140\1\44\7\140\47\0"+ "\1\226\11\0\20\146\1\0\2\146\1\0\22\146\12\0"+ "\1\147\4\0\1\147\6\0\1\147\3\41\40\0\1\147"+ "\4\0\1\147\6\0\1\147\43\0\1\151\1\0\1\51"+ "\1\0\1\51\1\151\1\0\1\51\1\0\1\51\1\0"+ "\1\51\1\151\1\41\1\52\1\41\2\0\1\51\35\0"+ "\20\7\1\0\2\7\1\0\20\7\1\227\1\7\12\0"+ "\20\7\1\0\2\7\1\0\2\7\1\204\17\7\12\0"+ "\20\7\1\0\1\120\1\7\1\0\22\7\12\0\12\7"+ "\1\230\5\7\1\0\2\7\1\0\22\7\12\0\20\7"+ "\1\0\2\7\1\0\4\7\1\227\15\7\12\0\20\7"+ "\1\0\2\7\1\0\2\7\1\231\1\232\16\7\12\0"+ "\20\7\1\0\2\7\1\0\1\233\21\7\12\0\20\7"+ "\1\0\2\7\1\0\2\7\1\202\17\7\12\0\20\7"+ "\1\0\2\7\1\0\1\234\21\7\12\0\20\7\1\0"+ "\2\7\1\0\1\235\21\7\12\0\20\7\1\0\2\7"+ "\1\0\1\7\1\236\20\7\12\0\20\7\1\0\1\237"+ "\1\7\1\0\22\7\12\0\20\7\1\0\2\7\1\0"+ "\3\7\1\240\16\7\12\0\20\7\1\0\1\241\1\7"+ "\1\0\22\7\12\0\20\7\1\0\2\7\1\0\1\242"+ "\21\7\12\0\6\7\1\243\11\7\1\0\2\7\1\0"+ "\22\7\12\0\20\7\1\0\1\227\1\7\1\0\22\7"+ "\12\0\20\7\1\0\2\7\1\0\3\7\1\244\16\7"+ "\12\0\20\7\1\0\2\7\1\0\11\7\1\245\10\7"+ "\12\0\20\7\1\0\2\7\1\0\4\7\1\233\15\7"+ "\12\0\20\7\1\0\1\72\1\7\1\0\22\7\12\0"+ "\12\7\1\246\5\7\1\0\2\7\1\0\22\7\12\0"+ "\20\7\1\0\2\7\1\0\3\7\1\155\16\7\12\0"+ "\20\7\1\0\2\7\1\0\10\7\1\247\11\7\12\0"+ "\20\7\1\0\1\250\1\7\1\0\22\7\12\0\20\7"+ "\1\0\2\7\1\0\7\7\1\251\12\7\12\0\20\7"+ "\1\0\2\7\1\0\2\7\1\120\17\7\12\0\20\7"+ "\1\0\2\7\1\0\12\7\1\252\7\7\12\0\20\7"+ "\1\0\2\7\1\0\11\7\1\253\10\7\12\0\6\7"+ "\1\250\11\7\1\0\2\7\1\0\22\7\12\0\20\7"+ "\1\0\2\7\1\0\3\7\1\254\16\7\12\0\20\7"+ "\1\0\1\255\1\7\1\0\22\7\12\0\6\7\1\256"+ "\11\7\1\0\2\7\1\0\7\7\1\241\12\7\12\0"+ "\20\7\1\0\2\7\1\0\11\7\1\257\10\7\12\0"+ "\20\7\1\0\2\7\1\0\5\7\1\260\14\7\12\0"+ "\20\7\1\0\2\7\1\0\3\7\1\261\16\7\12\0"+ "\20\7\1\0\2\7\1\0\16\7\1\262\3\7\12\0"+ "\6\7\1\244\11\7\1\0\2\7\1\0\22\7\12\0"+ "\20\7\1\0\2\7\1\0\1\263\21\7\12\0\17\7"+ "\1\227\1\0\2\7\1\0\22\7\12\0\6\7\1\154"+ "\11\7\1\0\2\7\1\0\22\7\12\0\20\7\1\0"+ "\2\7\1\0\7\7\1\120\12\7\67\0\1\44\2\0"+ "\20\7\1\0\2\7\1\0\6\7\1\120\13\7\12\0"+ "\20\7\1\0\2\7\1\0\3\7\1\120\16\7\12\0"+ "\20\7\1\0\2\7\1\0\11\7\1\264\10\7\12\0"+ "\20\7\1\0\2\7\1\0\3\7\1\227\16\7\12\0"+ "\6\7\1\265\11\7\1\0\2\7\1\0\22\7\12\0"+ "\20\7\1\0\2\7\1\0\12\7\1\266\7\7\12\0"+ "\6\7\1\172\11\7\1\0\2\7\1\0\22\7\12\0"+ "\20\7\1\0\2\7\1\0\10\7\1\267\11\7\12\0"+ "\20\7\1\0\2\7\1\0\4\7\1\270\15\7\12\0"+ "\20\7\1\0\2\7\1\0\4\7\1\231\15\7\12\0"+ "\20\7\1\0\2\7\1\0\5\7\1\120\14\7\12\0"+ "\20\7\1\0\1\271\1\7\1\0\22\7\12\0\20\7"+ "\1\0\2\7\1\0\11\7\1\272\10\7\12\0\12\7"+ "\1\273\5\7\1\0\2\7\1\0\22\7\12\0\20\7"+ "\1\0\2\7\1\0\6\7\1\274\13\7\12\0\20\7"+ "\1\0\2\7\1\0\2\7\1\275\17\7\12\0\20\7"+ "\1\0\2\7\1\0\17\7\1\276\2\7\12\0\20\7"+ "\1\0\2\7\1\0\4\7\1\257\15\7\12\0\20\7"+ "\1\0\2\7\1\0\16\7\1\154\3\7\12\0\20\7"+ "\1\0\2\7\1\0\1\277\21\7\12\0\20\7\1\0"+ "\2\7\1\0\4\7\1\300\15\7\12\0\20\7\1\0"+ "\1\301\1\7\1\0\22\7\12\0\20\7\1\0\2\7"+ "\1\0\10\7\1\120\11\7\12\0\20\7\1\0\2\7"+ "\1\0\1\302\21\7\12\0\20\7\1\0\1\303\1\7"+ "\1\0\22\7\12\0\20\7\1\0\2\7\1\0\1\304"+ "\21\7\12\0\20\7\1\0\2\7\1\0\3\7\1\130"+ "\16\7\12\0\20\7\1\0\2\7\1\0\10\7\1\305"+ "\11\7\12\0\6\7\1\306\11\7\1\0\2\7\1\0"+ "\22\7\12\0\6\7\1\231\11\7\1\0\2\7\1\0"+ "\22\7\12\0\17\7\1\204\1\0\2\7\1\0\22\7"+ "\12\0\20\7\1\0\2\7\1\0\1\307\21\7\12\0"+ "\20\7\1\0\2\7\1\0\1\310\21\7\12\0\12\7"+ "\1\120\5\7\1\0\2\7\1\0\22\7\12\0\20\7"+ "\1\0\2\7\1\0\3\7\1\311\16\7\12\0\20\7"+ "\1\0\2\7\1\0\4\7\1\312\15\7\12\0\20\7"+ "\1\0\2\7\1\0\11\7\1\313\10\7\12\0\20\7"+ "\1\0\2\7\1\0\10\7\1\314\11\7\12\0\15\7"+ "\1\315\2\7\1\0\2\7\1\0\22\7\12\0\20\7"+ "\1\0\2\7\1\0\14\7\1\316\5\7\12\0\20\7"+ "\1\0\2\7\1\0\20\7\1\154\1\7\12\0\12\7"+ "\1\317\5\7\1\0\2\7\1\0\22\7\12\0\20\7"+ "\1\0\2\7\1\0\3\7\1\154\16\7\12\0\20\7"+ "\1\0\2\7\1\0\12\7\1\154\7\7\12\0\20\7"+ "\1\0\2\7\1\0\13\7\1\120\6\7\12\0\12\7"+ "\1\231\5\7\1\0\2\7\1\0\22\7\12\0\20\7"+ "\1\0\2\7\1\0\10\7\1\227\11\7\12\0\15\7"+ "\1\320\2\7\1\0\2\7\1\0\22\7\12\0\20\7"+ "\1\0\2\7\1\0\7\7\1\321\12\7\12\0\20\7"+ "\1\0\1\322\1\7\1\0\22\7\12\0\12\7\1\323"+ "\5\7\1\0\2\7\1\0\22\7\12\0\20\7\1\0"+ "\2\7\1\0\1\324\21\7\12\0\20\7\1\0\1\325"+ "\1\7\1\0\22\7\12\0\20\7\1\0\2\7\1\0"+ "\3\7\1\326\16\7\12\0\20\7\1\0\2\7\1\0"+ "\15\7\1\120\4\7\12\0\20\7\1\0\2\7\1\0"+ "\10\7\1\327\11\7\12\0\20\7\1\0\2\7\1\0"+ "\10\7\1\231\11\7\12\0\20\7\1\0\1\330\1\7"+ "\1\0\22\7\12\0\12\7\1\154\5\7\1\0\2\7"+ "\1\0\22\7\12\0\20\7\1\0\2\7\1\0\10\7"+ "\1\331\11\7\12\0\20\7\1\0\1\332\1\7\1\0"+ "\22\7\12\0\20\7\1\0\2\7\1\0\11\7\1\333"+ "\10\7\12\0\20\7\1\0\2\7\1\0\7\7\1\334"+ "\12\7\12\0\20\7\1\0\2\7\1\0\3\7\1\204"+ "\16\7\12\0\17\7\1\120\1\0\2\7\1\0\22\7"+ "\12\0\20\7\1\0\2\7\1\0\21\7\1\326\12\0"+ "\15\7\1\120\2\7\1\0\2\7\1\0\22\7\11\0"; private static int [] zzUnpackTrans() { int [] result = new int[9744]; 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[] = { "Unkown internal scanner error", "Error: could not match input", "Error: pushback value was too large" }; /** * ZZ_ATTRIBUTE[aState] contains the attributes of state <code>aState</code> */ private static final int [] ZZ_ATTRIBUTE = zzUnpackAttribute(); private static final String ZZ_ATTRIBUTE_PACKED_0 = "\4\0\1\11\12\1\1\11\16\1\1\11\1\1\1\11"+ "\2\1\1\11\1\1\1\11\5\1\1\0\55\1\1\0"+ "\1\1\3\0\1\1\4\0\2\11\2\1\1\0\53\1"+ "\1\11\1\1\1\11\106\1"; private static int [] zzUnpackAttribute() { int [] result = new int[220]; 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 char zzBuffer[] = new char[ZZ_BUFFERSIZE]; /** the textposition at the last accepting state */ private int zzMarkedPos; /** the textposition at the last state to be included in yytext */ private int zzPushbackPos; /** the current text position in the buffer */ private int zzCurrentPos; /** startRead marks the beginning of the yytext() string in the buffer */ private int zzStartRead; /** endRead marks the last character in the buffer, that has been read from input */ private int zzEndRead; /** number of newlines encountered up to the start of the matched text */ private int yyline; /** the number of characters up to the start of the matched text */ private int yychar; /** * the number of characters from the last newline up to the start of the * matched text */ private int yycolumn; /** * 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; /* user code: */ /* styles */ public static final byte PLAIN_STYLE = 1; public static final byte KEYWORD_STYLE = 2; public static final byte TYPE_STYLE = 3; public static final byte OPERATOR_STYLE = 4; public static final byte SEPARATOR_STYLE = 5; public static final byte LITERAL_STYLE = 6; public static final byte JAVA_COMMENT_STYLE = 7; public static final byte JAVADOC_COMMENT_STYLE = 8; public static final byte JAVADOC_TAG_STYLE = 9; /* Highlighter implementation */ public int getStyleCount() { return 9; } public byte getStartState() { return YYINITIAL+1; } public byte getCurrentState() { return (byte) (yystate()+1); } public void setState(byte newState) { yybegin(newState-1); } public byte getNextToken() throws IOException { return (byte) yylex(); } public int getTokenLength() { return yylength(); } public void setReader(Reader r) { this.zzReader = r; } public GroovyHighlighter() { } /** * Creates a new scanner * There is also a java.io.InputStream version of this constructor. * * @param in the java.io.Reader to read input from. */ public GroovyHighlighter(java.io.Reader in) { this.zzReader = in; } /** * Creates a new scanner. * There is also java.io.Reader version of this constructor. * * @param in the java.io.Inputstream to read input from. */ public GroovyHighlighter(java.io.InputStream in) { this(new java.io.InputStreamReader(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) { char [] map = new char[0x10000]; int i = 0; /* index in packed string */ int j = 0; /* index in unpacked array */ while (i < 1656) { int count = packed.charAt(i++); char value = packed.charAt(i++); do map[j++] = value; while (--count > 0); } return map; } /** * Refills the input buffer. * * @return <code>false</code>, iff there was new input. * * @exception java.io.IOException if any I/O-Error occurs */ private boolean zzRefill() throws java.io.IOException { /* first: make room (if you can) */ if (zzStartRead > 0) { System.arraycopy(zzBuffer, zzStartRead, zzBuffer, 0, zzEndRead-zzStartRead); /* translate stored positions */ zzEndRead-= zzStartRead; zzCurrentPos-= zzStartRead; zzMarkedPos-= zzStartRead; zzPushbackPos-= zzStartRead; zzStartRead = 0; } /* is the buffer big enough? */ if (zzCurrentPos >= zzBuffer.length) { /* if not: blow it up */ char newBuffer[] = new char[zzCurrentPos*2]; System.arraycopy(zzBuffer, 0, newBuffer, 0, zzBuffer.length); zzBuffer = newBuffer; } /* finally: fill the buffer with new input */ int numRead = zzReader.read(zzBuffer, zzEndRead, zzBuffer.length-zzEndRead); if (numRead < 0) { return true; } else { zzEndRead+= numRead; return false; } } /** * Closes the input stream. */ public final void yyclose() throws java.io.IOException { zzAtEOF = true; /* indicate end of file */ zzEndRead = zzStartRead; /* invalidate buffer */ if (zzReader != null) zzReader.close(); } /** * Resets the scanner to read from a new input stream. * Does not close the old reader. * * All internal variables are reset, the old input stream * <b>cannot</b> be reused (internal buffer is discarded and lost). * Lexical state is set to <tt>ZZ_INITIAL</tt>. * * @param reader the new input stream */ public final void yyreset(java.io.Reader reader) { zzReader = reader; zzAtBOL = true; zzAtEOF = false; zzEndRead = zzStartRead = 0; zzCurrentPos = zzMarkedPos = zzPushbackPos = 0; yyline = yychar = yycolumn = 0; zzLexicalState = YYINITIAL; } /** * 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 String yytext() { return new String( zzBuffer, zzStartRead, zzMarkedPos-zzStartRead ); } /** * Returns the character at position <tt>pos</tt> 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[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; } /** * 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 int yylex() throws java.io.IOException { int zzInput; int zzAction; // cached fields: int zzCurrentPosL; int zzMarkedPosL; int zzEndReadL = zzEndRead; char [] zzBufferL = zzBuffer; char [] zzCMapL = ZZ_CMAP; int [] zzTransL = ZZ_TRANS; int [] zzRowMapL = ZZ_ROWMAP; int [] zzAttrL = ZZ_ATTRIBUTE; while (true) { zzMarkedPosL = zzMarkedPos; zzAction = -1; zzCurrentPosL = zzCurrentPos = zzStartRead = zzMarkedPosL; zzState = zzLexicalState; zzForAction: { while (true) { if (zzCurrentPosL < zzEndReadL) zzInput = zzBufferL[zzCurrentPosL++]; else if (zzAtEOF) { zzInput = YYEOF; break zzForAction; } else { // store back cached positions zzCurrentPos = zzCurrentPosL; zzMarkedPos = zzMarkedPosL; boolean eof = zzRefill(); // get translated positions and possibly new buffer zzCurrentPosL = zzCurrentPos; zzMarkedPosL = zzMarkedPos; zzBufferL = zzBuffer; zzEndReadL = zzEndRead; if (eof) { zzInput = YYEOF; break zzForAction; } else { zzInput = zzBufferL[zzCurrentPosL++]; } } int zzNext = zzTransL[ zzRowMapL[zzState] + zzCMapL[zzInput] ]; if (zzNext == -1) break zzForAction; zzState = zzNext; int zzAttributes = zzAttrL[zzState]; if ( (zzAttributes & 1) == 1 ) { zzAction = zzState; zzMarkedPosL = zzCurrentPosL; if ( (zzAttributes & 8) == 8 ) break zzForAction; } } } // store back cached position zzMarkedPos = zzMarkedPosL; switch (zzAction < 0 ? zzAction : ZZ_ACTION[zzAction]) { case 5: { return JAVA_COMMENT_STYLE; } case 16: break; case 1: { return PLAIN_STYLE; } case 17: break; case 8: { return KEYWORD_STYLE; } case 18: break; case 4: { return OPERATOR_STYLE; } case 19: break; case 2: { return LITERAL_STYLE; } case 20: break; case 11: { yybegin(YYINITIAL); return JAVADOC_COMMENT_STYLE; } case 21: break; case 10: { yybegin(YYINITIAL); return JAVA_COMMENT_STYLE; } case 22: break; case 3: { return SEPARATOR_STYLE; } case 23: break; case 7: { return TYPE_STYLE; } case 24: break; case 9: { yybegin(IN_COMMENT); return JAVA_COMMENT_STYLE; } case 25: break; case 15: { yybegin(YYINITIAL); return LITERAL_STYLE; } case 26: break; case 14: { yybegin(IN_JAVA_DOC_COMMENT); return JAVADOC_COMMENT_STYLE; } case 27: break; case 12: { return JAVADOC_TAG_STYLE; } case 28: break; case 13: { yybegin(IN_HEREDOC); return LITERAL_STYLE; } case 29: break; case 6: { return JAVADOC_COMMENT_STYLE; } case 30: break; default: if (zzInput == YYEOF && zzStartRead == zzCurrentPos) { zzAtEOF = true; return YYEOF; } else { zzScanError(ZZ_NO_MATCH); } } } } }