001 /* The following code was generated by JFlex 1.4.1 on 3/13/06 6:15 PM */
002
003 /*
004 * Copyright 2000-2006 Omnicore Software, Hans Kratz & Dennis Strein GbR,
005 * Geert Bevin <gbevin[remove] at uwyn dot com>.
006 * Distributed under the terms of the GNU Lesser General Public License, v2.1 or later
007 * $Id: GroovyHighlighter.java 3108 2006-03-13 18:03:00Z gbevin $
008 */
009 package com.uwyn.jhighlight.highlighter;
010
011 import java.io.Reader;
012 import java.io.IOException;
013
014
015 /**
016 * This class is a scanner generated by
017 * <a href="http://www.jflex.de/">JFlex</a> 1.4.1
018 * on 3/13/06 6:15 PM from the specification file
019 * <tt>com/uwyn/jhighlight/highlighter/GroovyHighlighter.flex</tt>
020 */
021 public class GroovyHighlighter implements ExplicitStateHighlighter {
022
023 /** This character denotes the end of file */
024 public static final int YYEOF = -1;
025
026 /** initial size of the lookahead buffer */
027 private static final int ZZ_BUFFERSIZE = 128;
028
029 /** lexical states */
030 public static final int IN_HEREDOC = 1;
031 public static final int YYINITIAL = 0;
032 public static final int IN_COMMENT = 2;
033 public static final int IN_JAVA_DOC_COMMENT = 3;
034
035 /**
036 * Translates characters to character classes
037 */
038 private static final String ZZ_CMAP_PACKED =
039 "\11\4\1\0\1\50\1\0\1\0\1\0\16\4\4\0\1\0\1\54"+
040 "\1\47\1\0\1\2\1\54\1\54\1\52\1\53\1\53\1\55\1\24"+
041 "\1\53\1\24\1\21\1\56\1\6\7\15\2\1\1\54\1\53\1\54"+
042 "\1\54\1\54\1\54\1\57\3\14\1\17\1\23\1\17\5\5\1\10"+
043 "\13\5\1\12\2\5\1\53\1\51\1\53\1\54\1\3\1\0\1\25"+
044 "\1\26\1\13\1\20\1\22\1\16\1\45\1\33\1\36\1\2\1\32"+
045 "\1\7\1\41\1\35\1\34\1\42\1\2\1\31\1\27\1\30\1\37"+
046 "\1\43\1\44\1\11\1\40\1\46\1\53\1\54\1\53\1\54\41\4"+
047 "\2\0\4\2\4\0\1\2\12\0\1\2\4\0\1\2\5\0\27\2"+
048 "\1\0\37\2\1\0\u0128\2\2\0\22\2\34\0\136\2\2\0\11\2"+
049 "\2\0\7\2\16\0\2\2\16\0\5\2\11\0\1\2\21\0\117\4"+
050 "\21\0\3\4\27\0\1\2\13\0\1\2\1\0\3\2\1\0\1\2"+
051 "\1\0\24\2\1\0\54\2\1\0\10\2\2\0\32\2\14\0\202\2"+
052 "\1\0\4\4\5\0\71\2\2\0\2\2\2\0\2\2\3\0\46\2"+
053 "\2\0\2\2\67\0\46\2\2\0\1\2\7\0\47\2\11\0\21\4"+
054 "\1\0\27\4\1\0\3\4\1\0\1\4\1\0\2\4\1\0\1\4"+
055 "\13\0\33\2\5\0\3\2\56\0\32\2\5\0\13\2\13\4\12\0"+
056 "\12\4\6\0\1\4\143\2\1\0\1\2\7\4\2\0\6\4\2\2"+
057 "\2\4\1\0\4\4\2\0\12\4\3\2\22\0\1\4\1\2\1\4"+
058 "\33\2\3\0\33\4\65\0\46\2\13\4\u0150\0\3\4\1\0\65\2"+
059 "\2\0\1\4\1\2\20\4\2\0\1\2\4\4\3\0\12\2\2\4"+
060 "\2\0\12\4\21\0\3\4\1\0\10\2\2\0\2\2\2\0\26\2"+
061 "\1\0\7\2\1\0\1\2\3\0\4\2\2\0\1\4\1\0\7\4"+
062 "\2\0\2\4\2\0\3\4\11\0\1\4\4\0\2\2\1\0\3\2"+
063 "\2\4\2\0\12\4\4\2\16\0\1\4\2\0\6\2\4\0\2\2"+
064 "\2\0\26\2\1\0\7\2\1\0\2\2\1\0\2\2\1\0\2\2"+
065 "\2\0\1\4\1\0\5\4\4\0\2\4\2\0\3\4\13\0\4\2"+
066 "\1\0\1\2\7\0\14\4\3\2\14\0\3\4\1\0\7\2\1\0"+
067 "\1\2\1\0\3\2\1\0\26\2\1\0\7\2\1\0\2\2\1\0"+
068 "\5\2\2\0\1\4\1\2\10\4\1\0\3\4\1\0\3\4\2\0"+
069 "\1\2\17\0\1\2\5\0\12\4\21\0\3\4\1\0\10\2\2\0"+
070 "\2\2\2\0\26\2\1\0\7\2\1\0\2\2\2\0\4\2\2\0"+
071 "\1\4\1\2\6\4\3\0\2\4\2\0\3\4\10\0\2\4\4\0"+
072 "\2\2\1\0\3\2\4\0\12\4\22\0\2\4\1\0\6\2\3\0"+
073 "\3\2\1\0\4\2\3\0\2\2\1\0\1\2\1\0\2\2\3\0"+
074 "\2\2\3\0\3\2\3\0\10\2\1\0\3\2\4\0\5\4\3\0"+
075 "\3\4\1\0\4\4\11\0\1\4\17\0\11\4\21\0\3\4\1\0"+
076 "\10\2\1\0\3\2\1\0\27\2\1\0\12\2\1\0\5\2\4\0"+
077 "\7\4\1\0\3\4\1\0\4\4\7\0\2\4\11\0\2\2\4\0"+
078 "\12\4\22\0\2\4\1\0\10\2\1\0\3\2\1\0\27\2\1\0"+
079 "\12\2\1\0\5\2\4\0\7\4\1\0\3\4\1\0\4\4\7\0"+
080 "\2\4\7\0\1\2\1\0\2\2\4\0\12\4\22\0\2\4\1\0"+
081 "\10\2\1\0\3\2\1\0\27\2\1\0\20\2\4\0\6\4\2\0"+
082 "\3\4\1\0\4\4\11\0\1\4\10\0\2\2\4\0\12\4\22\0"+
083 "\2\4\1\0\22\2\3\0\30\2\1\0\11\2\1\0\1\2\2\0"+
084 "\7\2\3\0\1\4\4\0\6\4\1\0\1\4\1\0\10\4\22\0"+
085 "\2\4\15\0\60\2\1\4\2\2\7\4\4\0\10\2\10\4\1\0"+
086 "\12\4\47\0\2\2\1\0\1\2\2\0\2\2\1\0\1\2\2\0"+
087 "\1\2\6\0\4\2\1\0\7\2\1\0\3\2\1\0\1\2\1\0"+
088 "\1\2\2\0\2\2\1\0\4\2\1\4\2\2\6\4\1\0\2\4"+
089 "\1\2\2\0\5\2\1\0\1\2\1\0\6\4\2\0\12\4\2\0"+
090 "\2\2\42\0\1\2\27\0\2\4\6\0\12\4\13\0\1\4\1\0"+
091 "\1\4\1\0\1\4\4\0\2\4\10\2\1\0\42\2\6\0\24\4"+
092 "\1\0\2\4\4\2\4\0\10\4\1\0\44\4\11\0\1\4\71\0"+
093 "\42\2\1\0\5\2\1\0\2\2\1\0\7\4\3\0\4\4\6\0"+
094 "\12\4\6\0\6\2\4\4\106\0\46\2\12\0\47\2\11\0\132\2"+
095 "\5\0\104\2\5\0\122\2\6\0\7\2\1\0\77\2\1\0\1\2"+
096 "\1\0\4\2\2\0\7\2\1\0\1\2\1\0\4\2\2\0\47\2"+
097 "\1\0\1\2\1\0\4\2\2\0\37\2\1\0\1\2\1\0\4\2"+
098 "\2\0\7\2\1\0\1\2\1\0\4\2\2\0\7\2\1\0\7\2"+
099 "\1\0\27\2\1\0\37\2\1\0\1\2\1\0\4\2\2\0\7\2"+
100 "\1\0\47\2\1\0\23\2\16\0\11\4\56\0\125\2\14\0\u026c\2"+
101 "\2\0\10\2\12\0\32\2\5\0\113\2\225\0\64\2\40\4\7\0"+
102 "\1\2\4\0\12\4\41\0\4\4\1\0\12\4\6\0\130\2\10\0"+
103 "\51\2\1\4\u0556\0\234\2\4\0\132\2\6\0\26\2\2\0\6\2"+
104 "\2\0\46\2\2\0\6\2\2\0\10\2\1\0\1\2\1\0\1\2"+
105 "\1\0\1\2\1\0\37\2\2\0\65\2\1\0\7\2\1\0\1\2"+
106 "\3\0\3\2\1\0\7\2\3\0\4\2\2\0\6\2\4\0\15\2"+
107 "\5\0\3\2\1\0\7\2\17\0\4\4\32\0\5\4\20\0\2\2"+
108 "\51\0\6\4\17\0\1\2\40\0\20\2\40\0\15\4\4\0\1\4"+
109 "\40\0\1\2\4\0\1\2\2\0\12\2\1\0\1\2\3\0\5\2"+
110 "\6\0\1\2\1\0\1\2\1\0\1\2\1\0\4\2\1\0\3\2"+
111 "\1\0\7\2\46\0\44\2\u0e81\0\3\2\31\0\11\2\6\4\1\0"+
112 "\5\2\2\0\3\2\6\0\124\2\4\0\2\4\2\0\2\2\2\0"+
113 "\136\2\6\0\50\2\4\0\136\2\21\0\30\2\u0248\0\u19b6\2\112\0"+
114 "\u51a6\2\132\0\u048d\2\u0773\0\u2ba4\2\u215c\0\u012e\2\322\0\7\2\14\0"+
115 "\5\2\5\0\1\2\1\4\12\2\1\0\15\2\1\0\5\2\1\0"+
116 "\1\2\1\0\2\2\1\0\2\2\1\0\154\2\41\0\u016b\2\22\0"+
117 "\100\2\2\0\66\2\50\0\14\2\44\0\4\4\17\0\2\2\30\0"+
118 "\3\2\31\0\1\2\6\0\3\2\1\0\1\2\1\0\207\2\2\0"+
119 "\1\4\4\0\1\2\13\0\12\4\7\0\32\2\4\0\1\2\1\0"+
120 "\32\2\12\0\132\2\3\0\6\2\2\0\6\2\2\0\6\2\2\0"+
121 "\3\2\3\0\2\2\3\0\2\2\22\0\3\4\4\0";
122
123 /**
124 * Translates characters to character classes
125 */
126 private static final char [] ZZ_CMAP = zzUnpackCMap(ZZ_CMAP_PACKED);
127
128 /**
129 * Translates DFA states to action switch labels.
130 */
131 private static final int [] ZZ_ACTION = zzUnpackAction();
132
133 private static final String ZZ_ACTION_PACKED_0 =
134 "\4\0\1\1\1\2\2\1\1\2\4\1\1\3\1\1"+
135 "\1\4\16\1\1\3\1\4\2\2\1\1\1\5\1\1"+
136 "\3\6\1\1\2\2\1\0\1\1\1\7\4\2\12\1"+
137 "\1\10\3\1\1\10\16\1\2\10\10\1\1\0\1\2"+
138 "\3\0\1\11\4\0\1\12\1\13\1\14\1\2\1\0"+
139 "\1\2\11\1\1\10\25\1\1\7\12\1\1\15\1\16"+
140 "\1\17\1\7\20\1\1\2\14\1\1\10\10\1\1\10"+
141 "\36\1";
142
143 private static int [] zzUnpackAction() {
144 int [] result = new int[220];
145 int offset = 0;
146 offset = zzUnpackAction(ZZ_ACTION_PACKED_0, offset, result);
147 return result;
148 }
149
150 private static int zzUnpackAction(String packed, int offset, int [] result) {
151 int i = 0; /* index in packed string */
152 int j = offset; /* index in unpacked array */
153 int l = packed.length();
154 while (i < l) {
155 int count = packed.charAt(i++);
156 int value = packed.charAt(i++);
157 do result[j++] = value; while (--count > 0);
158 }
159 return j;
160 }
161
162
163 /**
164 * Translates a state to a row index in the transition table
165 */
166 private static final int [] ZZ_ROWMAP = zzUnpackRowMap();
167
168 private static final String ZZ_ROWMAP_PACKED_0 =
169 "\0\0\0\60\0\140\0\220\0\300\0\360\0\u0120\0\u0150"+
170 "\0\u0180\0\u01b0\0\u01e0\0\u0210\0\u0240\0\u0270\0\u02a0\0\300"+
171 "\0\u02d0\0\u0300\0\u0330\0\u0360\0\u0390\0\u03c0\0\u03f0\0\u0420"+
172 "\0\u0450\0\u0480\0\u04b0\0\u04e0\0\u0510\0\u0540\0\300\0\u0570"+
173 "\0\300\0\u05a0\0\u05d0\0\300\0\u0600\0\300\0\u0630\0\u0660"+
174 "\0\u0690\0\u0690\0\u06c0\0\u06f0\0\u0720\0\u0750\0\u0780\0\u07b0"+
175 "\0\u07e0\0\u0810\0\u0840\0\u0870\0\u08a0\0\u08d0\0\u0900\0\u0930"+
176 "\0\u0960\0\u0990\0\u09c0\0\u09f0\0\u0a20\0\u0a50\0\u0a80\0\u0ab0"+
177 "\0\u0ae0\0\u0b10\0\u0b40\0\u0b70\0\u0ba0\0\u0bd0\0\u0c00\0\u0c30"+
178 "\0\u0c60\0\u0c90\0\u0cc0\0\u0cf0\0\u0d20\0\u0d50\0\u0d80\0\u0120"+
179 "\0\u0db0\0\u0de0\0\u0e10\0\u0e40\0\u0e70\0\u0ea0\0\u0ed0\0\u0f00"+
180 "\0\u0f30\0\u0f60\0\u0f90\0\u0fc0\0\u0540\0\u0ff0\0\u1020\0\u1050"+
181 "\0\u1080\0\u05d0\0\u0600\0\300\0\300\0\u10b0\0\u10e0\0\u1110"+
182 "\0\u1140\0\u1170\0\u11a0\0\u11d0\0\u1200\0\u1230\0\u1260\0\u1290"+
183 "\0\u12c0\0\u12f0\0\u1320\0\u1350\0\u1380\0\u13b0\0\u13e0\0\u1410"+
184 "\0\u1440\0\u1470\0\u14a0\0\u14d0\0\u1500\0\u1530\0\u1560\0\u1590"+
185 "\0\u15c0\0\u15f0\0\u1620\0\u1650\0\u1680\0\u16b0\0\u16e0\0\u1710"+
186 "\0\u1740\0\u1770\0\u17a0\0\u17d0\0\u1800\0\u1830\0\u1860\0\u1890"+
187 "\0\u18c0\0\u18f0\0\u1920\0\300\0\u1950\0\300\0\u0120\0\u1980"+
188 "\0\u19b0\0\u19e0\0\u1a10\0\u1a40\0\u1a70\0\u1aa0\0\u1ad0\0\u1b00"+
189 "\0\u1b30\0\u1b60\0\u1b90\0\u1bc0\0\u1bf0\0\u1c20\0\u1c50\0\u0120"+
190 "\0\u1c80\0\u1cb0\0\u1ce0\0\u1d10\0\u1d40\0\u1d70\0\u1da0\0\u1dd0"+
191 "\0\u1e00\0\u1e30\0\u1e60\0\u1e90\0\u1ec0\0\u1ef0\0\u1f20\0\u1f50"+
192 "\0\u1f80\0\u1fb0\0\u1fe0\0\u2010\0\u2040\0\u1650\0\u2070\0\u20a0"+
193 "\0\u20d0\0\u2100\0\u2130\0\u2160\0\u2190\0\u21c0\0\u21f0\0\u2220"+
194 "\0\u2250\0\u2280\0\u22b0\0\u22e0\0\u2310\0\u2340\0\u2370\0\u23a0"+
195 "\0\u23d0\0\u2400\0\u2430\0\u2460\0\u2490\0\u24c0\0\u24f0\0\u2520"+
196 "\0\u2550\0\u2580\0\u25b0\0\u25e0";
197
198 private static int [] zzUnpackRowMap() {
199 int [] result = new int[220];
200 int offset = 0;
201 offset = zzUnpackRowMap(ZZ_ROWMAP_PACKED_0, offset, result);
202 return result;
203 }
204
205 private static int zzUnpackRowMap(String packed, int offset, int [] result) {
206 int i = 0; /* index in packed string */
207 int j = offset; /* index in unpacked array */
208 int l = packed.length();
209 while (i < l) {
210 int high = packed.charAt(i++) << 16;
211 result[j++] = high | packed.charAt(i++);
212 }
213 return j;
214 }
215
216 /**
217 * The transition table of the DFA
218 */
219 private static final int [] ZZ_TRANS = zzUnpackTrans();
220
221 private static final String ZZ_TRANS_PACKED_0 =
222 "\1\5\1\6\2\7\1\5\1\10\1\11\1\12\1\10"+
223 "\1\7\1\10\1\13\1\10\1\6\1\14\1\10\1\15"+
224 "\1\16\1\17\1\10\1\20\1\21\1\22\1\23\1\24"+
225 "\1\25\3\7\1\26\1\27\2\7\1\30\1\31\1\32"+
226 "\1\33\1\34\1\7\1\35\2\5\1\36\1\37\2\20"+
227 "\1\40\1\5\47\41\1\42\10\41\50\43\1\44\4\43"+
228 "\1\45\2\43\55\46\1\47\1\46\1\50\61\0\1\6"+
229 "\1\0\1\51\1\0\1\51\1\6\1\41\1\52\1\0"+
230 "\1\51\1\0\1\51\1\6\1\41\1\52\1\41\1\53"+
231 "\1\54\1\55\35\0\20\7\1\0\2\7\1\0\22\7"+
232 "\12\0\1\10\1\56\1\10\1\56\2\10\1\56\1\10"+
233 "\1\56\1\10\1\56\2\10\1\56\1\10\1\56\1\0"+
234 "\1\56\1\10\1\0\22\56\12\0\1\57\1\0\1\51"+
235 "\1\0\1\51\1\60\1\41\1\52\1\61\1\62\1\0"+
236 "\1\51\1\60\1\41\1\52\1\41\1\53\1\54\1\55"+
237 "\35\0\20\7\1\0\2\7\1\0\7\7\1\63\12\7"+
238 "\12\0\6\7\1\64\11\7\1\0\2\7\1\0\1\65"+
239 "\5\7\1\66\1\67\12\7\12\0\6\7\1\70\11\7"+
240 "\1\0\2\7\1\0\1\71\6\7\1\72\1\7\1\73"+
241 "\10\7\12\0\20\7\1\0\1\74\1\7\1\0\7\7"+
242 "\1\75\12\7\12\0\1\53\4\0\1\53\6\0\1\53"+
243 "\43\0\6\7\1\76\1\7\1\77\7\7\1\0\2\7"+
244 "\1\0\22\7\12\0\20\7\1\0\2\7\1\0\1\7"+
245 "\1\100\1\101\17\7\12\0\20\7\1\0\2\7\1\0"+
246 "\4\7\1\102\2\7\1\103\3\7\1\104\6\7\12\0"+
247 "\20\7\1\0\2\7\1\0\3\7\1\105\2\7\1\106"+
248 "\3\7\1\107\1\110\3\7\1\111\2\7\12\0\20\7"+
249 "\1\0\2\7\1\0\4\7\1\112\1\7\1\113\13\7"+
250 "\12\0\20\7\1\0\1\114\1\7\1\0\22\7\12\0"+
251 "\20\7\1\0\1\115\1\7\1\0\1\116\11\7\1\117"+
252 "\7\7\12\0\15\7\1\120\2\7\1\0\2\7\1\0"+
253 "\10\7\1\121\3\7\1\122\5\7\12\0\20\7\1\0"+
254 "\2\7\1\0\11\7\1\123\10\7\12\0\20\7\1\0"+
255 "\2\7\1\0\1\124\3\7\1\125\5\7\1\126\7\7"+
256 "\12\0\20\7\1\0\2\7\1\0\7\7\1\127\12\7"+
257 "\12\0\20\7\1\0\2\7\1\0\6\7\1\130\13\7"+
258 "\12\0\20\7\1\0\2\7\1\0\7\7\1\131\12\7"+
259 "\11\0\47\132\1\133\1\41\1\134\6\132\50\135\1\41"+
260 "\1\136\1\41\5\135\55\0\1\137\1\140\50\0\1\141"+
261 "\10\0\50\142\1\44\4\142\1\143\52\142\1\44\4\142"+
262 "\1\143\1\144\1\142\56\0\1\145\3\0\2\146\1\0"+
263 "\1\146\1\0\6\146\1\0\3\146\1\0\2\146\1\0"+
264 "\22\146\12\0\1\51\1\0\1\51\1\0\2\51\1\0"+
265 "\1\51\1\0\1\51\1\0\2\51\1\0\1\51\3\0"+
266 "\1\51\35\0\1\53\4\0\1\53\6\0\1\53\3\41"+
267 "\1\0\2\54\35\0\1\147\4\0\1\147\6\0\1\147"+
268 "\6\0\1\150\34\0\1\151\1\0\1\51\1\0\1\51"+
269 "\1\151\1\0\1\51\1\0\1\51\1\0\1\51\1\151"+
270 "\1\0\1\51\3\0\1\51\1\150\34\0\20\56\1\0"+
271 "\2\56\1\0\22\56\12\0\1\57\1\0\1\51\1\0"+
272 "\1\51\1\57\1\0\1\51\1\0\1\51\1\0\1\51"+
273 "\1\57\1\41\1\52\1\41\1\53\1\54\1\55\35\0"+
274 "\1\57\1\0\1\51\1\0\1\51\1\60\1\41\1\52"+
275 "\1\0\1\51\1\0\1\51\1\60\1\41\1\52\1\41"+
276 "\1\53\1\54\1\55\35\0\1\61\4\0\1\61\2\41"+
277 "\2\0\6\61\1\0\2\61\1\0\2\61\32\0\1\62"+
278 "\1\0\1\51\1\0\1\51\1\62\1\41\1\52\1\0"+
279 "\1\51\1\61\2\62\1\61\1\62\1\61\1\0\1\61"+
280 "\1\62\1\0\2\61\32\0\20\7\1\0\2\7\1\0"+
281 "\10\7\1\152\11\7\12\0\20\7\1\0\2\7\1\0"+
282 "\1\153\21\7\12\0\20\7\1\0\2\7\1\0\2\7"+
283 "\1\154\1\155\16\7\12\0\20\7\1\0\2\7\1\0"+
284 "\1\156\21\7\12\0\20\7\1\0\2\7\1\0\10\7"+
285 "\1\157\11\7\12\0\20\7\1\0\2\7\1\0\7\7"+
286 "\1\160\12\7\12\0\6\7\1\161\11\7\1\0\2\7"+
287 "\1\0\22\7\12\0\20\7\1\0\2\7\1\0\4\7"+
288 "\1\120\15\7\12\0\20\7\1\0\2\7\1\0\10\7"+
289 "\1\162\11\7\12\0\15\7\1\163\2\7\1\0\2\7"+
290 "\1\0\22\7\12\0\20\7\1\0\2\7\1\0\12\7"+
291 "\1\164\7\7\12\0\20\7\1\0\2\7\1\0\2\7"+
292 "\1\154\17\7\12\0\20\7\1\0\2\7\1\0\3\7"+
293 "\1\165\16\7\12\0\20\7\1\0\2\7\1\0\2\7"+
294 "\1\166\17\7\12\0\20\7\1\0\2\7\1\0\2\7"+
295 "\1\167\17\7\12\0\20\7\1\0\1\170\1\7\1\0"+
296 "\22\7\12\0\20\7\1\0\2\7\1\0\7\7\1\171"+
297 "\12\7\12\0\20\7\1\0\2\7\1\0\3\7\1\172"+
298 "\16\7\12\0\20\7\1\0\2\7\1\0\1\173\3\7"+
299 "\1\174\15\7\12\0\20\7\1\0\2\7\1\0\7\7"+
300 "\1\175\12\7\12\0\20\7\1\0\2\7\1\0\15\7"+
301 "\1\176\4\7\12\0\20\7\1\0\2\7\1\0\10\7"+
302 "\1\177\11\7\12\0\20\7\1\0\2\7\1\0\11\7"+
303 "\1\200\10\7\12\0\20\7\1\0\2\7\1\0\1\201"+
304 "\11\7\1\202\1\120\6\7\12\0\20\7\1\0\2\7"+
305 "\1\0\4\7\1\203\4\7\1\204\10\7\12\0\20\7"+
306 "\1\0\2\7\1\0\3\7\1\205\16\7\12\0\20\7"+
307 "\1\0\2\7\1\0\17\7\1\120\2\7\12\0\20\7"+
308 "\1\0\2\7\1\0\3\7\1\206\16\7\12\0\6\7"+
309 "\1\207\11\7\1\0\2\7\1\0\22\7\12\0\20\7"+
310 "\1\0\2\7\1\0\2\7\1\210\1\211\16\7\12\0"+
311 "\20\7\1\0\2\7\1\0\15\7\1\212\4\7\12\0"+
312 "\10\7\1\213\7\7\1\0\2\7\1\0\22\7\12\0"+
313 "\12\7\1\214\5\7\1\0\2\7\1\0\22\7\12\0"+
314 "\20\7\1\0\2\7\1\0\7\7\1\215\1\7\1\216"+
315 "\10\7\12\0\20\7\1\0\2\7\1\0\1\7\1\217"+
316 "\20\7\12\0\6\7\1\220\11\7\1\0\2\7\1\0"+
317 "\11\7\1\221\10\7\12\0\20\7\1\0\2\7\1\0"+
318 "\11\7\1\222\10\7\12\0\20\7\1\0\2\7\1\0"+
319 "\3\7\1\223\16\7\11\0\47\132\2\41\1\134\6\132"+
320 "\47\0\1\224\10\0\50\132\1\41\7\132\50\135\1\41"+
321 "\7\135\55\0\1\225\2\0\50\140\1\44\7\140\47\0"+
322 "\1\226\11\0\20\146\1\0\2\146\1\0\22\146\12\0"+
323 "\1\147\4\0\1\147\6\0\1\147\3\41\40\0\1\147"+
324 "\4\0\1\147\6\0\1\147\43\0\1\151\1\0\1\51"+
325 "\1\0\1\51\1\151\1\0\1\51\1\0\1\51\1\0"+
326 "\1\51\1\151\1\41\1\52\1\41\2\0\1\51\35\0"+
327 "\20\7\1\0\2\7\1\0\20\7\1\227\1\7\12\0"+
328 "\20\7\1\0\2\7\1\0\2\7\1\204\17\7\12\0"+
329 "\20\7\1\0\1\120\1\7\1\0\22\7\12\0\12\7"+
330 "\1\230\5\7\1\0\2\7\1\0\22\7\12\0\20\7"+
331 "\1\0\2\7\1\0\4\7\1\227\15\7\12\0\20\7"+
332 "\1\0\2\7\1\0\2\7\1\231\1\232\16\7\12\0"+
333 "\20\7\1\0\2\7\1\0\1\233\21\7\12\0\20\7"+
334 "\1\0\2\7\1\0\2\7\1\202\17\7\12\0\20\7"+
335 "\1\0\2\7\1\0\1\234\21\7\12\0\20\7\1\0"+
336 "\2\7\1\0\1\235\21\7\12\0\20\7\1\0\2\7"+
337 "\1\0\1\7\1\236\20\7\12\0\20\7\1\0\1\237"+
338 "\1\7\1\0\22\7\12\0\20\7\1\0\2\7\1\0"+
339 "\3\7\1\240\16\7\12\0\20\7\1\0\1\241\1\7"+
340 "\1\0\22\7\12\0\20\7\1\0\2\7\1\0\1\242"+
341 "\21\7\12\0\6\7\1\243\11\7\1\0\2\7\1\0"+
342 "\22\7\12\0\20\7\1\0\1\227\1\7\1\0\22\7"+
343 "\12\0\20\7\1\0\2\7\1\0\3\7\1\244\16\7"+
344 "\12\0\20\7\1\0\2\7\1\0\11\7\1\245\10\7"+
345 "\12\0\20\7\1\0\2\7\1\0\4\7\1\233\15\7"+
346 "\12\0\20\7\1\0\1\72\1\7\1\0\22\7\12\0"+
347 "\12\7\1\246\5\7\1\0\2\7\1\0\22\7\12\0"+
348 "\20\7\1\0\2\7\1\0\3\7\1\155\16\7\12\0"+
349 "\20\7\1\0\2\7\1\0\10\7\1\247\11\7\12\0"+
350 "\20\7\1\0\1\250\1\7\1\0\22\7\12\0\20\7"+
351 "\1\0\2\7\1\0\7\7\1\251\12\7\12\0\20\7"+
352 "\1\0\2\7\1\0\2\7\1\120\17\7\12\0\20\7"+
353 "\1\0\2\7\1\0\12\7\1\252\7\7\12\0\20\7"+
354 "\1\0\2\7\1\0\11\7\1\253\10\7\12\0\6\7"+
355 "\1\250\11\7\1\0\2\7\1\0\22\7\12\0\20\7"+
356 "\1\0\2\7\1\0\3\7\1\254\16\7\12\0\20\7"+
357 "\1\0\1\255\1\7\1\0\22\7\12\0\6\7\1\256"+
358 "\11\7\1\0\2\7\1\0\7\7\1\241\12\7\12\0"+
359 "\20\7\1\0\2\7\1\0\11\7\1\257\10\7\12\0"+
360 "\20\7\1\0\2\7\1\0\5\7\1\260\14\7\12\0"+
361 "\20\7\1\0\2\7\1\0\3\7\1\261\16\7\12\0"+
362 "\20\7\1\0\2\7\1\0\16\7\1\262\3\7\12\0"+
363 "\6\7\1\244\11\7\1\0\2\7\1\0\22\7\12\0"+
364 "\20\7\1\0\2\7\1\0\1\263\21\7\12\0\17\7"+
365 "\1\227\1\0\2\7\1\0\22\7\12\0\6\7\1\154"+
366 "\11\7\1\0\2\7\1\0\22\7\12\0\20\7\1\0"+
367 "\2\7\1\0\7\7\1\120\12\7\67\0\1\44\2\0"+
368 "\20\7\1\0\2\7\1\0\6\7\1\120\13\7\12\0"+
369 "\20\7\1\0\2\7\1\0\3\7\1\120\16\7\12\0"+
370 "\20\7\1\0\2\7\1\0\11\7\1\264\10\7\12\0"+
371 "\20\7\1\0\2\7\1\0\3\7\1\227\16\7\12\0"+
372 "\6\7\1\265\11\7\1\0\2\7\1\0\22\7\12\0"+
373 "\20\7\1\0\2\7\1\0\12\7\1\266\7\7\12\0"+
374 "\6\7\1\172\11\7\1\0\2\7\1\0\22\7\12\0"+
375 "\20\7\1\0\2\7\1\0\10\7\1\267\11\7\12\0"+
376 "\20\7\1\0\2\7\1\0\4\7\1\270\15\7\12\0"+
377 "\20\7\1\0\2\7\1\0\4\7\1\231\15\7\12\0"+
378 "\20\7\1\0\2\7\1\0\5\7\1\120\14\7\12\0"+
379 "\20\7\1\0\1\271\1\7\1\0\22\7\12\0\20\7"+
380 "\1\0\2\7\1\0\11\7\1\272\10\7\12\0\12\7"+
381 "\1\273\5\7\1\0\2\7\1\0\22\7\12\0\20\7"+
382 "\1\0\2\7\1\0\6\7\1\274\13\7\12\0\20\7"+
383 "\1\0\2\7\1\0\2\7\1\275\17\7\12\0\20\7"+
384 "\1\0\2\7\1\0\17\7\1\276\2\7\12\0\20\7"+
385 "\1\0\2\7\1\0\4\7\1\257\15\7\12\0\20\7"+
386 "\1\0\2\7\1\0\16\7\1\154\3\7\12\0\20\7"+
387 "\1\0\2\7\1\0\1\277\21\7\12\0\20\7\1\0"+
388 "\2\7\1\0\4\7\1\300\15\7\12\0\20\7\1\0"+
389 "\1\301\1\7\1\0\22\7\12\0\20\7\1\0\2\7"+
390 "\1\0\10\7\1\120\11\7\12\0\20\7\1\0\2\7"+
391 "\1\0\1\302\21\7\12\0\20\7\1\0\1\303\1\7"+
392 "\1\0\22\7\12\0\20\7\1\0\2\7\1\0\1\304"+
393 "\21\7\12\0\20\7\1\0\2\7\1\0\3\7\1\130"+
394 "\16\7\12\0\20\7\1\0\2\7\1\0\10\7\1\305"+
395 "\11\7\12\0\6\7\1\306\11\7\1\0\2\7\1\0"+
396 "\22\7\12\0\6\7\1\231\11\7\1\0\2\7\1\0"+
397 "\22\7\12\0\17\7\1\204\1\0\2\7\1\0\22\7"+
398 "\12\0\20\7\1\0\2\7\1\0\1\307\21\7\12\0"+
399 "\20\7\1\0\2\7\1\0\1\310\21\7\12\0\12\7"+
400 "\1\120\5\7\1\0\2\7\1\0\22\7\12\0\20\7"+
401 "\1\0\2\7\1\0\3\7\1\311\16\7\12\0\20\7"+
402 "\1\0\2\7\1\0\4\7\1\312\15\7\12\0\20\7"+
403 "\1\0\2\7\1\0\11\7\1\313\10\7\12\0\20\7"+
404 "\1\0\2\7\1\0\10\7\1\314\11\7\12\0\15\7"+
405 "\1\315\2\7\1\0\2\7\1\0\22\7\12\0\20\7"+
406 "\1\0\2\7\1\0\14\7\1\316\5\7\12\0\20\7"+
407 "\1\0\2\7\1\0\20\7\1\154\1\7\12\0\12\7"+
408 "\1\317\5\7\1\0\2\7\1\0\22\7\12\0\20\7"+
409 "\1\0\2\7\1\0\3\7\1\154\16\7\12\0\20\7"+
410 "\1\0\2\7\1\0\12\7\1\154\7\7\12\0\20\7"+
411 "\1\0\2\7\1\0\13\7\1\120\6\7\12\0\12\7"+
412 "\1\231\5\7\1\0\2\7\1\0\22\7\12\0\20\7"+
413 "\1\0\2\7\1\0\10\7\1\227\11\7\12\0\15\7"+
414 "\1\320\2\7\1\0\2\7\1\0\22\7\12\0\20\7"+
415 "\1\0\2\7\1\0\7\7\1\321\12\7\12\0\20\7"+
416 "\1\0\1\322\1\7\1\0\22\7\12\0\12\7\1\323"+
417 "\5\7\1\0\2\7\1\0\22\7\12\0\20\7\1\0"+
418 "\2\7\1\0\1\324\21\7\12\0\20\7\1\0\1\325"+
419 "\1\7\1\0\22\7\12\0\20\7\1\0\2\7\1\0"+
420 "\3\7\1\326\16\7\12\0\20\7\1\0\2\7\1\0"+
421 "\15\7\1\120\4\7\12\0\20\7\1\0\2\7\1\0"+
422 "\10\7\1\327\11\7\12\0\20\7\1\0\2\7\1\0"+
423 "\10\7\1\231\11\7\12\0\20\7\1\0\1\330\1\7"+
424 "\1\0\22\7\12\0\12\7\1\154\5\7\1\0\2\7"+
425 "\1\0\22\7\12\0\20\7\1\0\2\7\1\0\10\7"+
426 "\1\331\11\7\12\0\20\7\1\0\1\332\1\7\1\0"+
427 "\22\7\12\0\20\7\1\0\2\7\1\0\11\7\1\333"+
428 "\10\7\12\0\20\7\1\0\2\7\1\0\7\7\1\334"+
429 "\12\7\12\0\20\7\1\0\2\7\1\0\3\7\1\204"+
430 "\16\7\12\0\17\7\1\120\1\0\2\7\1\0\22\7"+
431 "\12\0\20\7\1\0\2\7\1\0\21\7\1\326\12\0"+
432 "\15\7\1\120\2\7\1\0\2\7\1\0\22\7\11\0";
433
434 private static int [] zzUnpackTrans() {
435 int [] result = new int[9744];
436 int offset = 0;
437 offset = zzUnpackTrans(ZZ_TRANS_PACKED_0, offset, result);
438 return result;
439 }
440
441 private static int zzUnpackTrans(String packed, int offset, int [] result) {
442 int i = 0; /* index in packed string */
443 int j = offset; /* index in unpacked array */
444 int l = packed.length();
445 while (i < l) {
446 int count = packed.charAt(i++);
447 int value = packed.charAt(i++);
448 value--;
449 do result[j++] = value; while (--count > 0);
450 }
451 return j;
452 }
453
454
455 /* error codes */
456 private static final int ZZ_UNKNOWN_ERROR = 0;
457 private static final int ZZ_NO_MATCH = 1;
458 private static final int ZZ_PUSHBACK_2BIG = 2;
459
460 /* error messages for the codes above */
461 private static final String ZZ_ERROR_MSG[] = {
462 "Unkown internal scanner error",
463 "Error: could not match input",
464 "Error: pushback value was too large"
465 };
466
467 /**
468 * ZZ_ATTRIBUTE[aState] contains the attributes of state <code>aState</code>
469 */
470 private static final int [] ZZ_ATTRIBUTE = zzUnpackAttribute();
471
472 private static final String ZZ_ATTRIBUTE_PACKED_0 =
473 "\4\0\1\11\12\1\1\11\16\1\1\11\1\1\1\11"+
474 "\2\1\1\11\1\1\1\11\5\1\1\0\55\1\1\0"+
475 "\1\1\3\0\1\1\4\0\2\11\2\1\1\0\53\1"+
476 "\1\11\1\1\1\11\106\1";
477
478 private static int [] zzUnpackAttribute() {
479 int [] result = new int[220];
480 int offset = 0;
481 offset = zzUnpackAttribute(ZZ_ATTRIBUTE_PACKED_0, offset, result);
482 return result;
483 }
484
485 private static int zzUnpackAttribute(String packed, int offset, int [] result) {
486 int i = 0; /* index in packed string */
487 int j = offset; /* index in unpacked array */
488 int l = packed.length();
489 while (i < l) {
490 int count = packed.charAt(i++);
491 int value = packed.charAt(i++);
492 do result[j++] = value; while (--count > 0);
493 }
494 return j;
495 }
496
497 /** the input device */
498 private java.io.Reader zzReader;
499
500 /** the current state of the DFA */
501 private int zzState;
502
503 /** the current lexical state */
504 private int zzLexicalState = YYINITIAL;
505
506 /** this buffer contains the current text to be matched and is
507 the source of the yytext() string */
508 private char zzBuffer[] = new char[ZZ_BUFFERSIZE];
509
510 /** the textposition at the last accepting state */
511 private int zzMarkedPos;
512
513 /** the textposition at the last state to be included in yytext */
514 private int zzPushbackPos;
515
516 /** the current text position in the buffer */
517 private int zzCurrentPos;
518
519 /** startRead marks the beginning of the yytext() string in the buffer */
520 private int zzStartRead;
521
522 /** endRead marks the last character in the buffer, that has been read
523 from input */
524 private int zzEndRead;
525
526 /** number of newlines encountered up to the start of the matched text */
527 private int yyline;
528
529 /** the number of characters up to the start of the matched text */
530 private int yychar;
531
532 /**
533 * the number of characters from the last newline up to the start of the
534 * matched text
535 */
536 private int yycolumn;
537
538 /**
539 * zzAtBOL == true <=> the scanner is currently at the beginning of a line
540 */
541 private boolean zzAtBOL = true;
542
543 /** zzAtEOF == true <=> the scanner is at the EOF */
544 private boolean zzAtEOF;
545
546 /* user code: */
547 /* styles */
548
549 public static final byte PLAIN_STYLE = 1;
550 public static final byte KEYWORD_STYLE = 2;
551 public static final byte TYPE_STYLE = 3;
552 public static final byte OPERATOR_STYLE = 4;
553 public static final byte SEPARATOR_STYLE = 5;
554 public static final byte LITERAL_STYLE = 6;
555 public static final byte JAVA_COMMENT_STYLE = 7;
556 public static final byte JAVADOC_COMMENT_STYLE = 8;
557 public static final byte JAVADOC_TAG_STYLE = 9;
558
559 /* Highlighter implementation */
560
561 public int getStyleCount()
562 {
563 return 9;
564 }
565
566 public byte getStartState()
567 {
568 return YYINITIAL+1;
569 }
570
571 public byte getCurrentState()
572 {
573 return (byte) (yystate()+1);
574 }
575
576 public void setState(byte newState)
577 {
578 yybegin(newState-1);
579 }
580
581 public byte getNextToken()
582 throws IOException
583 {
584 return (byte) yylex();
585 }
586
587 public int getTokenLength()
588 {
589 return yylength();
590 }
591
592 public void setReader(Reader r)
593 {
594 this.zzReader = r;
595 }
596
597 public GroovyHighlighter()
598 {
599 }
600
601
602 /**
603 * Creates a new scanner
604 * There is also a java.io.InputStream version of this constructor.
605 *
606 * @param in the java.io.Reader to read input from.
607 */
608 public GroovyHighlighter(java.io.Reader in) {
609 this.zzReader = in;
610 }
611
612 /**
613 * Creates a new scanner.
614 * There is also java.io.Reader version of this constructor.
615 *
616 * @param in the java.io.Inputstream to read input from.
617 */
618 public GroovyHighlighter(java.io.InputStream in) {
619 this(new java.io.InputStreamReader(in));
620 }
621
622 /**
623 * Unpacks the compressed character translation table.
624 *
625 * @param packed the packed character translation table
626 * @return the unpacked character translation table
627 */
628 private static char [] zzUnpackCMap(String packed) {
629 char [] map = new char[0x10000];
630 int i = 0; /* index in packed string */
631 int j = 0; /* index in unpacked array */
632 while (i < 1656) {
633 int count = packed.charAt(i++);
634 char value = packed.charAt(i++);
635 do map[j++] = value; while (--count > 0);
636 }
637 return map;
638 }
639
640
641 /**
642 * Refills the input buffer.
643 *
644 * @return <code>false</code>, iff there was new input.
645 *
646 * @exception java.io.IOException if any I/O-Error occurs
647 */
648 private boolean zzRefill() throws java.io.IOException {
649
650 /* first: make room (if you can) */
651 if (zzStartRead > 0) {
652 System.arraycopy(zzBuffer, zzStartRead,
653 zzBuffer, 0,
654 zzEndRead-zzStartRead);
655
656 /* translate stored positions */
657 zzEndRead-= zzStartRead;
658 zzCurrentPos-= zzStartRead;
659 zzMarkedPos-= zzStartRead;
660 zzPushbackPos-= zzStartRead;
661 zzStartRead = 0;
662 }
663
664 /* is the buffer big enough? */
665 if (zzCurrentPos >= zzBuffer.length) {
666 /* if not: blow it up */
667 char newBuffer[] = new char[zzCurrentPos*2];
668 System.arraycopy(zzBuffer, 0, newBuffer, 0, zzBuffer.length);
669 zzBuffer = newBuffer;
670 }
671
672 /* finally: fill the buffer with new input */
673 int numRead = zzReader.read(zzBuffer, zzEndRead,
674 zzBuffer.length-zzEndRead);
675
676 if (numRead < 0) {
677 return true;
678 }
679 else {
680 zzEndRead+= numRead;
681 return false;
682 }
683 }
684
685
686 /**
687 * Closes the input stream.
688 */
689 public final void yyclose() throws java.io.IOException {
690 zzAtEOF = true; /* indicate end of file */
691 zzEndRead = zzStartRead; /* invalidate buffer */
692
693 if (zzReader != null)
694 zzReader.close();
695 }
696
697
698 /**
699 * Resets the scanner to read from a new input stream.
700 * Does not close the old reader.
701 *
702 * All internal variables are reset, the old input stream
703 * <b>cannot</b> be reused (internal buffer is discarded and lost).
704 * Lexical state is set to <tt>ZZ_INITIAL</tt>.
705 *
706 * @param reader the new input stream
707 */
708 public final void yyreset(java.io.Reader reader) {
709 zzReader = reader;
710 zzAtBOL = true;
711 zzAtEOF = false;
712 zzEndRead = zzStartRead = 0;
713 zzCurrentPos = zzMarkedPos = zzPushbackPos = 0;
714 yyline = yychar = yycolumn = 0;
715 zzLexicalState = YYINITIAL;
716 }
717
718
719 /**
720 * Returns the current lexical state.
721 */
722 public final int yystate() {
723 return zzLexicalState;
724 }
725
726
727 /**
728 * Enters a new lexical state
729 *
730 * @param newState the new lexical state
731 */
732 public final void yybegin(int newState) {
733 zzLexicalState = newState;
734 }
735
736
737 /**
738 * Returns the text matched by the current regular expression.
739 */
740 public final String yytext() {
741 return new String( zzBuffer, zzStartRead, zzMarkedPos-zzStartRead );
742 }
743
744
745 /**
746 * Returns the character at position <tt>pos</tt> from the
747 * matched text.
748 *
749 * It is equivalent to yytext().charAt(pos), but faster
750 *
751 * @param pos the position of the character to fetch.
752 * A value from 0 to yylength()-1.
753 *
754 * @return the character at position pos
755 */
756 public final char yycharat(int pos) {
757 return zzBuffer[zzStartRead+pos];
758 }
759
760
761 /**
762 * Returns the length of the matched text region.
763 */
764 public final int yylength() {
765 return zzMarkedPos-zzStartRead;
766 }
767
768
769 /**
770 * Reports an error that occured while scanning.
771 *
772 * In a wellformed scanner (no or only correct usage of
773 * yypushback(int) and a match-all fallback rule) this method
774 * will only be called with things that "Can't Possibly Happen".
775 * If this method is called, something is seriously wrong
776 * (e.g. a JFlex bug producing a faulty scanner etc.).
777 *
778 * Usual syntax/scanner level error handling should be done
779 * in error fallback rules.
780 *
781 * @param errorCode the code of the errormessage to display
782 */
783 private void zzScanError(int errorCode) {
784 String message;
785 try {
786 message = ZZ_ERROR_MSG[errorCode];
787 }
788 catch (ArrayIndexOutOfBoundsException e) {
789 message = ZZ_ERROR_MSG[ZZ_UNKNOWN_ERROR];
790 }
791
792 throw new Error(message);
793 }
794
795
796 /**
797 * Pushes the specified amount of characters back into the input stream.
798 *
799 * They will be read again by then next call of the scanning method
800 *
801 * @param number the number of characters to be read again.
802 * This number must not be greater than yylength()!
803 */
804 public void yypushback(int number) {
805 if ( number > yylength() )
806 zzScanError(ZZ_PUSHBACK_2BIG);
807
808 zzMarkedPos -= number;
809 }
810
811
812 /**
813 * Resumes scanning until the next regular expression is matched,
814 * the end of input is encountered or an I/O-Error occurs.
815 *
816 * @return the next token
817 * @exception java.io.IOException if any I/O-Error occurs
818 */
819 public int yylex() throws java.io.IOException {
820 int zzInput;
821 int zzAction;
822
823 // cached fields:
824 int zzCurrentPosL;
825 int zzMarkedPosL;
826 int zzEndReadL = zzEndRead;
827 char [] zzBufferL = zzBuffer;
828 char [] zzCMapL = ZZ_CMAP;
829
830 int [] zzTransL = ZZ_TRANS;
831 int [] zzRowMapL = ZZ_ROWMAP;
832 int [] zzAttrL = ZZ_ATTRIBUTE;
833
834 while (true) {
835 zzMarkedPosL = zzMarkedPos;
836
837 zzAction = -1;
838
839 zzCurrentPosL = zzCurrentPos = zzStartRead = zzMarkedPosL;
840
841 zzState = zzLexicalState;
842
843
844 zzForAction: {
845 while (true) {
846
847 if (zzCurrentPosL < zzEndReadL)
848 zzInput = zzBufferL[zzCurrentPosL++];
849 else if (zzAtEOF) {
850 zzInput = YYEOF;
851 break zzForAction;
852 }
853 else {
854 // store back cached positions
855 zzCurrentPos = zzCurrentPosL;
856 zzMarkedPos = zzMarkedPosL;
857 boolean eof = zzRefill();
858 // get translated positions and possibly new buffer
859 zzCurrentPosL = zzCurrentPos;
860 zzMarkedPosL = zzMarkedPos;
861 zzBufferL = zzBuffer;
862 zzEndReadL = zzEndRead;
863 if (eof) {
864 zzInput = YYEOF;
865 break zzForAction;
866 }
867 else {
868 zzInput = zzBufferL[zzCurrentPosL++];
869 }
870 }
871 int zzNext = zzTransL[ zzRowMapL[zzState] + zzCMapL[zzInput] ];
872 if (zzNext == -1) break zzForAction;
873 zzState = zzNext;
874
875 int zzAttributes = zzAttrL[zzState];
876 if ( (zzAttributes & 1) == 1 ) {
877 zzAction = zzState;
878 zzMarkedPosL = zzCurrentPosL;
879 if ( (zzAttributes & 8) == 8 ) break zzForAction;
880 }
881
882 }
883 }
884
885 // store back cached position
886 zzMarkedPos = zzMarkedPosL;
887
888 switch (zzAction < 0 ? zzAction : ZZ_ACTION[zzAction]) {
889 case 5:
890 { return JAVA_COMMENT_STYLE;
891 }
892 case 16: break;
893 case 1:
894 { return PLAIN_STYLE;
895 }
896 case 17: break;
897 case 8:
898 { return KEYWORD_STYLE;
899 }
900 case 18: break;
901 case 4:
902 { return OPERATOR_STYLE;
903 }
904 case 19: break;
905 case 2:
906 { return LITERAL_STYLE;
907 }
908 case 20: break;
909 case 11:
910 { yybegin(YYINITIAL); return JAVADOC_COMMENT_STYLE;
911 }
912 case 21: break;
913 case 10:
914 { yybegin(YYINITIAL); return JAVA_COMMENT_STYLE;
915 }
916 case 22: break;
917 case 3:
918 { return SEPARATOR_STYLE;
919 }
920 case 23: break;
921 case 7:
922 { return TYPE_STYLE;
923 }
924 case 24: break;
925 case 9:
926 { yybegin(IN_COMMENT); return JAVA_COMMENT_STYLE;
927 }
928 case 25: break;
929 case 15:
930 { yybegin(YYINITIAL); return LITERAL_STYLE;
931 }
932 case 26: break;
933 case 14:
934 { yybegin(IN_JAVA_DOC_COMMENT); return JAVADOC_COMMENT_STYLE;
935 }
936 case 27: break;
937 case 12:
938 { return JAVADOC_TAG_STYLE;
939 }
940 case 28: break;
941 case 13:
942 { yybegin(IN_HEREDOC); return LITERAL_STYLE;
943 }
944 case 29: break;
945 case 6:
946 { return JAVADOC_COMMENT_STYLE;
947 }
948 case 30: break;
949 default:
950 if (zzInput == YYEOF && zzStartRead == zzCurrentPos) {
951 zzAtEOF = true;
952 return YYEOF;
953 }
954 else {
955 zzScanError(ZZ_NO_MATCH);
956 }
957 }
958 }
959 }
960
961
962 }