hpricot 0.6.164 → 0.7

Sign up to get free protection for your applications and to get access to all the features.
data/CHANGELOG CHANGED
@@ -1,3 +1,9 @@
1
+ = 0.7
2
+ === 17th March, 2009
3
+ * Rewritten parser routine, much lighter on memory, quite a bit faster.
4
+ * Friendlier with Ruby 1.9.
5
+ * Fixes to nth-child and text() selectors.
6
+
1
7
  = 0.6
2
8
  === 15th June, 2007
3
9
  * Hpricot for JRuby -- nice work Ola Bini!
data/Rakefile CHANGED
@@ -10,18 +10,17 @@ RbConfig = Config unless defined?(RbConfig)
10
10
 
11
11
  NAME = "hpricot"
12
12
  REV = (`#{ENV['GIT'] || "git"} rev-list HEAD`.split.length + 1).to_s
13
- VERS = ENV['VERSION'] || "0.6" + (REV ? ".#{REV}" : "")
13
+ VERS = ENV['VERSION'] || "0.7" + (REV ? ".#{REV}" : "")
14
14
  PKG = "#{NAME}-#{VERS}"
15
- BIN = "*.{bundle,jar,so,obj,pdb,lib,def,exp,class}"
16
- ARCHLIB = "lib/#{::Config::CONFIG['arch']}"
17
- CLEAN.include ["ext/hpricot_scan/#{BIN}", "ext/fast_xs/#{BIN}", "lib/**/#{BIN}", ARCHLIB,
15
+ BIN = "*.{bundle,jar,so,o,obj,pdb,lib,def,exp,class}"
16
+ CLEAN.include ["ext/hpricot_scan/#{BIN}", "ext/fast_xs/#{BIN}", "lib/**/#{BIN}",
18
17
  'ext/fast_xs/Makefile', 'ext/hpricot_scan/Makefile',
19
18
  '**/.*.sw?', '*.gem', '.config', 'pkg']
20
19
  RDOC_OPTS = ['--quiet', '--title', 'The Hpricot Reference', '--main', 'README', '--inline-source']
21
20
  PKG_FILES = %w(CHANGELOG COPYING README Rakefile) +
22
21
  Dir.glob("{bin,doc,test,lib,extras}/**/*") +
23
22
  Dir.glob("ext/**/*.{h,java,c,rb,rl}") +
24
- %w[ext/hpricot_scan/hpricot_scan.c ext/hpricot_scan/HpricotScanService.java] # needed because they are generated later
23
+ %w[ext/hpricot_scan/hpricot_scan.c ext/hpricot_scan/hpricot_css.c ext/hpricot_scan/HpricotScanService.java] # needed because they are generated later
25
24
  RAGEL_C_CODE_GENERATION_STYLES = {
26
25
  "table_driven" => 'T0',
27
26
  "faster_table_driven" => 'T1',
@@ -46,12 +45,20 @@ SPEC =
46
45
  s.author = "why the lucky stiff"
47
46
  s.email = 'why@ruby-lang.org'
48
47
  s.homepage = 'http://code.whytheluckystiff.net/hpricot/'
48
+ s.rubyforge_project = 'hobix'
49
49
  s.files = PKG_FILES
50
- s.require_paths = [ARCHLIB, "lib"]
50
+ s.require_paths = ["lib"]
51
51
  s.extensions = FileList["ext/**/extconf.rb"].to_a
52
52
  s.bindir = "bin"
53
53
  end
54
54
 
55
+ Win32Spec = SPEC.dup
56
+ Win32Spec.platform = 'x86-mswin32'
57
+ Win32Spec.files = PKG_FILES + ["lib/hpricot_scan.so", "lib/fast_xs.so"]
58
+ Win32Spec.extensions = []
59
+
60
+ WIN32_PKG_DIR = "#{PKG}-mswin32"
61
+
55
62
  desc "Does a full compile, test run"
56
63
  task :default => [:compile, :test]
57
64
 
@@ -63,7 +70,7 @@ task :release => [:package, :package_win32, :package_jruby]
63
70
 
64
71
  desc "Run all the tests"
65
72
  Rake::TestTask.new do |t|
66
- t.libs << "test" << ARCHLIB
73
+ t.libs << "test"
67
74
  t.test_files = FileList['test/test_*.rb']
68
75
  t.verbose = true
69
76
  end
@@ -93,7 +100,7 @@ end
93
100
  ]
94
101
 
95
102
  desc "Builds just the #{extension} extension"
96
- task extension.to_sym => ["#{ext}/Makefile", ext_so ]
103
+ task extension.to_sym => [:ragel, "#{ext}/Makefile", ext_so ]
97
104
 
98
105
  file "#{ext}/Makefile" => ["#{ext}/extconf.rb"] do
99
106
  Dir.chdir(ext) do ruby "extconf.rb" end
@@ -101,10 +108,16 @@ end
101
108
 
102
109
  file ext_so => ext_files do
103
110
  Dir.chdir(ext) do
104
- sh(RUBY_PLATFORM =~ /win32/ ? 'nmake' : 'make')
111
+ sh(RUBY_PLATFORM =~ /mswin/ ? 'nmake' : 'make')
105
112
  end
106
- mkdir_p ARCHLIB
107
- cp ext_so, ARCHLIB
113
+ cp ext_so, "lib"
114
+ end
115
+
116
+ desc "Cross-compile the #{extension} extension for win32"
117
+ file "#{extension}_win32" => [WIN32_PKG_DIR] do
118
+ cp "extras/mingw-rbconfig.rb", "#{WIN32_PKG_DIR}/ext/#{extension}/rbconfig.rb"
119
+ sh "cd #{WIN32_PKG_DIR}/ext/#{extension}/ && ruby -I. extconf.rb && make"
120
+ mv "#{WIN32_PKG_DIR}/ext/#{extension}/#{extension}.so", "#{WIN32_PKG_DIR}/lib"
108
121
  end
109
122
  end
110
123
 
@@ -114,7 +127,7 @@ end
114
127
 
115
128
  desc "Compiles the Ruby extension"
116
129
  task :compile => [:hpricot_scan, :fast_xs] do
117
- if Dir.glob(File.join(ARCHLIB,"hpricot_scan.*")).length == 0
130
+ if Dir.glob(File.join("lib","hpricot_scan.*")).length == 0
118
131
  STDERR.puts "!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!"
119
132
  STDERR.puts "Gem actually failed to build. Your system is"
120
133
  STDERR.puts "NOT configured properly to build hpricot."
@@ -122,7 +135,6 @@ task :compile => [:hpricot_scan, :fast_xs] do
122
135
  exit(1)
123
136
  end
124
137
  end
125
- task :hpricot_scan => [:ragel]
126
138
 
127
139
  desc "Determines the Ragel version and displays it on the console along with the location of the Ragel binary."
128
140
  task :ragel_version do
@@ -135,7 +147,8 @@ desc "Generates the C scanner code with Ragel."
135
147
  task :ragel => [:ragel_version] do
136
148
  if @ragel_v >= 6.1
137
149
  @ragel_c_code_generation_style = RAGEL_C_CODE_GENERATION_STYLES[DEFAULT_RAGEL_C_CODE_GENERATION]
138
- sh %{cd ext/hpricot_scan; ragel hpricot_scan.rl -#{@ragel_c_code_generation_style} -o hpricot_scan.c}
150
+ console_sep = (ENV['COMSPEC'] =~ /cmd\.exe/) ? '&' : ';'
151
+ sh %{cd ext/hpricot_scan #{console_sep} ragel hpricot_scan.rl -#{@ragel_c_code_generation_style} -o hpricot_scan.c && ragel hpricot_css.rl -#{@ragel_c_code_generation_style} -o hpricot_css.c}
139
152
  else
140
153
  STDERR.puts "Ragel 6.1 or greater is required."
141
154
  exit(1)
@@ -157,32 +170,18 @@ end
157
170
 
158
171
  ### Win32 Packages ###
159
172
 
160
- Win32Spec = SPEC.dup
161
- Win32Spec.platform = Gem::Platform::CURRENT
162
- Win32Spec.files = PKG_FILES + ["#{ARCHLIB}/hpricot_scan.so", "#{ARCHLIB}/fast_xs.so"]
163
- Win32Spec.extensions = []
164
-
165
- WIN32_PKG_DIR = "#{PKG}-mswin32"
166
-
167
173
  desc "Package up the Win32 distribution."
168
174
  file WIN32_PKG_DIR => [:package] do
169
175
  sh "tar zxf pkg/#{PKG}.tgz"
170
176
  mv PKG, WIN32_PKG_DIR
171
177
  end
172
178
 
173
- desc "Cross-compile the hpricot_scan extension for win32"
174
- file "hpricot_scan_win32" => [WIN32_PKG_DIR] do
175
- cp "extras/mingw-rbconfig.rb", "#{WIN32_PKG_DIR}/ext/hpricot_scan/rbconfig.rb"
176
- sh "cd #{WIN32_PKG_DIR}/ext/hpricot_scan/ && ruby -I. extconf.rb && make"
177
- mv "#{WIN32_PKG_DIR}/ext/hpricot_scan/hpricot_scan.so", "#{WIN32_PKG_DIR}/#{ARCHLIB}"
178
- end
179
-
180
179
  desc "Build the binary RubyGems package for win32"
181
- task :package_win32 => ["hpricot_scan_win32"] do
180
+ task :package_win32 => ["fast_xs_win32", "hpricot_scan_win32"] do
182
181
  Dir.chdir("#{WIN32_PKG_DIR}") do
183
182
  Gem::Builder.new(Win32Spec).build
184
183
  verbose(true) {
185
- mv Dir["*.gem"].first, "../pkg/#{WIN32_PKG_DIR}.gem"
184
+ mv Dir["*.gem"].first, "../pkg/"
186
185
  }
187
186
  end
188
187
  end
@@ -222,13 +221,12 @@ end
222
221
 
223
222
  desc "Compiles the JRuby extensions"
224
223
  task :hpricot_java => [:hpricot_scan_java, :fast_xs_java] do
225
- mkdir_p "#{ARCHLIB}"
226
- %w(hpricot_scan fast_xs).each {|ext| mv "ext/#{ext}/#{ext}.jar", "#{ARCHLIB}"}
224
+ %w(hpricot_scan fast_xs).each {|ext| mv "ext/#{ext}/#{ext}.jar", "lib"}
227
225
  end
228
226
 
229
227
  JRubySpec = SPEC.dup
230
228
  JRubySpec.platform = 'jruby'
231
- JRubySpec.files = PKG_FILES + ["#{ARCHLIB}/hpricot_scan.jar", "#{ARCHLIB}/fast_xs.jar"]
229
+ JRubySpec.files = PKG_FILES + ["lib/hpricot_scan.jar", "lib/fast_xs.jar"]
232
230
  JRubySpec.extensions = []
233
231
 
234
232
  JRUBY_PKG_DIR = "#{PKG}-jruby"
@@ -4,6 +4,12 @@
4
4
  #include <assert.h>
5
5
  /* #include <stdio.h> */
6
6
 
7
+ #ifndef RARRAY_LEN
8
+ #define RARRAY_LEN(arr) RARRAY(arr)->len
9
+ #define RSTRING_LEN(str) RSTRING(str)->len
10
+ #define RSTRING_PTR(str) RSTRING(str)->ptr
11
+ #endif
12
+
7
13
  static ID unpack_id;
8
14
  static VALUE U_fmt, C_fmt;
9
15
 
@@ -109,7 +115,7 @@ static long escape(char *buf, int n)
109
115
 
110
116
  if (VALID_VALUE(n)) {
111
117
  /* return snprintf(buf, sizeof("&#1114111;"), "&#%i;", n); */
112
- extern const char ruby_digitmap[];
118
+ RUBY_EXTERN const char ruby_digitmap[];
113
119
  int rv = 3; /* &#; */
114
120
  buf += bytes_for(n);
115
121
  *--buf = ';';
@@ -166,14 +172,14 @@ VALUE fast_xs(VALUE self)
166
172
 
167
173
  array = RARRAY(rb_rescue(unpack_utf8, self, unpack_uchar, self));
168
174
 
169
- tmp = array->ptr;
170
- for (i = array->len; --i >= 0; tmp++)
175
+ tmp = RARRAY_PTR(array);
176
+ for (i = RARRAY_LEN(array); --i >= 0; tmp++)
171
177
  s_len += escaped_len(NUM2INT(*tmp));
172
178
 
173
179
  c = s = alloca(s_len + 1);
174
180
 
175
- tmp = array->ptr;
176
- for (i = array->len; --i >= 0; tmp++)
181
+ tmp = RARRAY_PTR(array);
182
+ for (i = RARRAY_LEN(array); --i >= 0; tmp++)
177
183
  c += escape(c, NUM2INT(*tmp));
178
184
 
179
185
  *c = '\0';
@@ -836,7 +836,11 @@ IRubyObject hpricot_scan(IRubyObject recv, IRubyObject port) {
836
836
  /* We've used up the entire buffer storing an already-parsed token
837
837
  * prefix that must be preserved. Likely caused by super-long attributes.
838
838
  * See ticket #13. */
839
- rb_raise(rb_eHpricotParseError, "ran out of buffer space on element <" + tag.toString() + ">, starting on line "+curline+".");
839
+ buffer_size += BUFSIZE;
840
+ char[] new_buf = new char[buffer_size];
841
+ System.arraycopy(buf, 0, new_buf, 0, buf.length);
842
+ buf = new_buf;
843
+ space = buffer_size - have;
840
844
  }
841
845
 
842
846
  if (port.respondsTo("read")) {
@@ -862,7 +866,7 @@ IRubyObject hpricot_scan(IRubyObject recv, IRubyObject port) {
862
866
  char[] data = buf;
863
867
 
864
868
 
865
- // line 866 "ext/hpricot_scan/HpricotScanService.java"
869
+ // line 870 "ext/hpricot_scan/HpricotScanService.java"
866
870
  {
867
871
  int _klen;
868
872
  int _trans = 0;
@@ -887,7 +891,7 @@ case 1:
887
891
  // line 1 "ext/hpricot_scan/hpricot_scan.java.rl"
888
892
  {ts = p;}
889
893
  break;
890
- // line 891 "ext/hpricot_scan/HpricotScanService.java"
894
+ // line 895 "ext/hpricot_scan/HpricotScanService.java"
891
895
  }
892
896
  }
893
897
 
@@ -1185,7 +1189,7 @@ case 3:
1185
1189
  }
1186
1190
  }
1187
1191
  break;
1188
- // line 1189 "ext/hpricot_scan/HpricotScanService.java"
1192
+ // line 1193 "ext/hpricot_scan/HpricotScanService.java"
1189
1193
  }
1190
1194
  }
1191
1195
  }
@@ -1199,7 +1203,7 @@ case 2:
1199
1203
  // line 1 "ext/hpricot_scan/hpricot_scan.java.rl"
1200
1204
  {ts = -1;}
1201
1205
  break;
1202
- // line 1203 "ext/hpricot_scan/HpricotScanService.java"
1206
+ // line 1207 "ext/hpricot_scan/HpricotScanService.java"
1203
1207
  }
1204
1208
  }
1205
1209
 
@@ -1221,7 +1225,7 @@ case 5:
1221
1225
  }
1222
1226
  break; }
1223
1227
  }
1224
- // line 293 "ext/hpricot_scan/hpricot_scan.java.rl"
1228
+ // line 297 "ext/hpricot_scan/hpricot_scan.java.rl"
1225
1229
 
1226
1230
  if ( cs == hpricot_scan_error ) {
1227
1231
  if(!tag[0].isNil()) {
@@ -0,0 +1,3502 @@
1
+ #line 1 "hpricot_css.rl"
2
+ /*
3
+ * hpricot_css.rl
4
+ * ragel -C hpricot_css.rl -o hpricot_css.c
5
+ *
6
+ * Copyright (C) 2008 why the lucky stiff
7
+ */
8
+ #include <ruby.h>
9
+
10
+ #define FILTER(id) \
11
+ rb_funcall2(mod, rb_intern("" # id), fargs, fvals); \
12
+ rb_ary_clear(tmpt); \
13
+ fargs = 1
14
+ #define FILTERAUTO() \
15
+ char filt[10]; \
16
+ sprintf(filt, "%.*s", te - ts, ts); \
17
+ rb_funcall2(mod, rb_intern(filt), fargs, fvals); \
18
+ rb_ary_clear(tmpt); \
19
+ fargs = 1
20
+ #define PUSH(aps, ape) rb_ary_push(tmpt, fvals[fargs++] = rb_str_new(aps, ape - aps))
21
+ #define P(id) printf(id ": %.*s\n", te - ts, ts);
22
+
23
+
24
+ #line 25 "hpricot_css.c"
25
+ static const int hpricot_css_start = 87;
26
+ static const int hpricot_css_error = 0;
27
+
28
+ static const int hpricot_css_en_main = 87;
29
+
30
+ #line 87 "hpricot_css.rl"
31
+
32
+
33
+ VALUE hpricot_css(VALUE self, VALUE mod, VALUE str, VALUE node)
34
+ {
35
+ int cs, act, eof;
36
+ char *p, *pe, *ts, *te, *aps, *ape, *aps2, *ape2;
37
+
38
+ int fargs = 1;
39
+ VALUE fvals[6];
40
+ VALUE focus = rb_ary_new3(1, node);
41
+ VALUE tmpt = rb_ary_new();
42
+ rb_gc_register_address(&focus);
43
+ rb_gc_register_address(&tmpt);
44
+ fvals[0] = focus;
45
+
46
+ if (TYPE(str) != T_STRING)
47
+ rb_raise(rb_eArgError, "bad CSS selector, String only please.");
48
+
49
+ StringValue(str);
50
+ p = RSTRING_PTR(str);
51
+ pe = p + RSTRING_LEN(str);
52
+
53
+
54
+ #line 55 "hpricot_css.c"
55
+ {
56
+ cs = hpricot_css_start;
57
+ ts = 0;
58
+ te = 0;
59
+ act = 0;
60
+ }
61
+ #line 110 "hpricot_css.rl"
62
+
63
+ #line 64 "hpricot_css.c"
64
+ {
65
+ if ( p == pe )
66
+ goto _test_eof;
67
+ switch ( cs )
68
+ {
69
+ tr0:
70
+ #line 1 "hpricot_css.rl"
71
+ { switch( act ) {
72
+ case 0:
73
+ {{goto st0;}}
74
+ break;
75
+ case 1:
76
+ {{p = ((te))-1;} FILTER(ID); }
77
+ break;
78
+ case 2:
79
+ {{p = ((te))-1;} FILTER(CLASS); }
80
+ break;
81
+ case 5:
82
+ {{p = ((te))-1;} FILTER(TAG); }
83
+ break;
84
+ case 7:
85
+ {{p = ((te))-1;} FILTER(CHILD); }
86
+ break;
87
+ case 8:
88
+ {{p = ((te))-1;} FILTER(POS); }
89
+ break;
90
+ case 9:
91
+ {{p = ((te))-1;} FILTER(PSUEDO); }
92
+ break;
93
+ }
94
+ }
95
+ goto st87;
96
+ tr4:
97
+ #line 83 "hpricot_css.rl"
98
+ {{p = ((te))-1;}}
99
+ goto st87;
100
+ tr41:
101
+ #line 80 "hpricot_css.rl"
102
+ {{p = ((te))-1;}{ FILTER(PSUEDO); }}
103
+ goto st87;
104
+ tr46:
105
+ #line 25 "hpricot_css.rl"
106
+ {
107
+ aps = p;
108
+ }
109
+ #line 29 "hpricot_css.rl"
110
+ {
111
+ ape = p;
112
+ PUSH(aps, ape);
113
+ }
114
+ #line 80 "hpricot_css.rl"
115
+ {te = p+1;{ FILTER(PSUEDO); }}
116
+ goto st87;
117
+ tr48:
118
+ #line 29 "hpricot_css.rl"
119
+ {
120
+ ape = p;
121
+ PUSH(aps, ape);
122
+ }
123
+ #line 80 "hpricot_css.rl"
124
+ {te = p+1;{ FILTER(PSUEDO); }}
125
+ goto st87;
126
+ tr62:
127
+ #line 79 "hpricot_css.rl"
128
+ {{p = ((te))-1;}{ FILTER(POS); }}
129
+ goto st87;
130
+ tr64:
131
+ #line 29 "hpricot_css.rl"
132
+ {
133
+ ape = p;
134
+ PUSH(aps, ape);
135
+ }
136
+ #line 79 "hpricot_css.rl"
137
+ {te = p+1;{ FILTER(POS); }}
138
+ goto st87;
139
+ tr66:
140
+ #line 78 "hpricot_css.rl"
141
+ {{p = ((te))-1;}{ FILTER(CHILD); }}
142
+ goto st87;
143
+ tr67:
144
+ #line 25 "hpricot_css.rl"
145
+ {
146
+ aps = p;
147
+ }
148
+ #line 29 "hpricot_css.rl"
149
+ {
150
+ ape = p;
151
+ PUSH(aps, ape);
152
+ }
153
+ #line 78 "hpricot_css.rl"
154
+ {te = p+1;{ FILTER(CHILD); }}
155
+ goto st87;
156
+ tr71:
157
+ #line 29 "hpricot_css.rl"
158
+ {
159
+ ape = p;
160
+ PUSH(aps, ape);
161
+ }
162
+ #line 78 "hpricot_css.rl"
163
+ {te = p+1;{ FILTER(CHILD); }}
164
+ goto st87;
165
+ tr100:
166
+ #line 75 "hpricot_css.rl"
167
+ {te = p+1;{ FILTER(ATTR); }}
168
+ goto st87;
169
+ tr105:
170
+ #line 75 "hpricot_css.rl"
171
+ {{p = ((te))-1;}{ FILTER(ATTR); }}
172
+ goto st87;
173
+ tr132:
174
+ #line 29 "hpricot_css.rl"
175
+ {
176
+ ape = p;
177
+ PUSH(aps, ape);
178
+ }
179
+ #line 74 "hpricot_css.rl"
180
+ {te = p+1;{ FILTER(NAME); }}
181
+ goto st87;
182
+ tr143:
183
+ #line 82 "hpricot_css.rl"
184
+ {te = p+1;{ FILTERAUTO(); }}
185
+ goto st87;
186
+ tr149:
187
+ #line 29 "hpricot_css.rl"
188
+ {
189
+ ape = p;
190
+ PUSH(aps, ape);
191
+ }
192
+ #line 76 "hpricot_css.rl"
193
+ {te = p;p--;{ FILTER(TAG); }}
194
+ goto st87;
195
+ tr153:
196
+ #line 83 "hpricot_css.rl"
197
+ {te = p;p--;}
198
+ goto st87;
199
+ tr154:
200
+ #line 81 "hpricot_css.rl"
201
+ {te = p;p--;{ focus = rb_ary_new3(1, node); }}
202
+ goto st87;
203
+ tr155:
204
+ #line 29 "hpricot_css.rl"
205
+ {
206
+ ape = p;
207
+ PUSH(aps, ape);
208
+ }
209
+ #line 72 "hpricot_css.rl"
210
+ {te = p;p--;{ FILTER(ID); }}
211
+ goto st87;
212
+ tr159:
213
+ #line 77 "hpricot_css.rl"
214
+ {te = p;p--;{ FILTER(MOD); }}
215
+ goto st87;
216
+ tr162:
217
+ #line 29 "hpricot_css.rl"
218
+ {
219
+ ape = p;
220
+ PUSH(aps, ape);
221
+ }
222
+ #line 73 "hpricot_css.rl"
223
+ {te = p;p--;{ FILTER(CLASS); }}
224
+ goto st87;
225
+ tr166:
226
+ #line 29 "hpricot_css.rl"
227
+ {
228
+ ape = p;
229
+ PUSH(aps, ape);
230
+ }
231
+ #line 80 "hpricot_css.rl"
232
+ {te = p;p--;{ FILTER(PSUEDO); }}
233
+ goto st87;
234
+ tr173:
235
+ #line 29 "hpricot_css.rl"
236
+ {
237
+ ape = p;
238
+ PUSH(aps, ape);
239
+ }
240
+ #line 79 "hpricot_css.rl"
241
+ {te = p;p--;{ FILTER(POS); }}
242
+ goto st87;
243
+ tr192:
244
+ #line 29 "hpricot_css.rl"
245
+ {
246
+ ape = p;
247
+ PUSH(aps, ape);
248
+ }
249
+ #line 78 "hpricot_css.rl"
250
+ {te = p;p--;{ FILTER(CHILD); }}
251
+ goto st87;
252
+ tr200:
253
+ #line 75 "hpricot_css.rl"
254
+ {te = p;p--;{ FILTER(ATTR); }}
255
+ goto st87;
256
+ st87:
257
+ #line 1 "hpricot_css.rl"
258
+ {ts = 0;}
259
+ #line 1 "hpricot_css.rl"
260
+ {act = 0;}
261
+ if ( ++p == pe )
262
+ goto _test_eof87;
263
+ case 87:
264
+ #line 1 "hpricot_css.rl"
265
+ {ts = p;}
266
+ #line 267 "hpricot_css.c"
267
+ switch( (*p) ) {
268
+ case -60: goto tr133;
269
+ case 32: goto tr137;
270
+ case 35: goto st7;
271
+ case 43: goto st92;
272
+ case 44: goto st90;
273
+ case 45: goto tr140;
274
+ case 46: goto st13;
275
+ case 58: goto st19;
276
+ case 62: goto tr143;
277
+ case 91: goto st52;
278
+ case 92: goto tr146;
279
+ case 95: goto tr144;
280
+ case 101: goto tr147;
281
+ case 110: goto tr140;
282
+ case 111: goto tr148;
283
+ case 126: goto tr143;
284
+ }
285
+ if ( (*p) < 9 ) {
286
+ if ( (*p) < -32 ) {
287
+ if ( -59 <= (*p) && (*p) <= -33 )
288
+ goto tr134;
289
+ } else if ( (*p) > -17 ) {
290
+ if ( -16 <= (*p) && (*p) <= -12 )
291
+ goto tr136;
292
+ } else
293
+ goto tr135;
294
+ } else if ( (*p) > 13 ) {
295
+ if ( (*p) < 65 ) {
296
+ if ( 48 <= (*p) && (*p) <= 57 )
297
+ goto tr140;
298
+ } else if ( (*p) > 90 ) {
299
+ if ( 97 <= (*p) && (*p) <= 122 )
300
+ goto tr144;
301
+ } else
302
+ goto tr144;
303
+ } else
304
+ goto tr137;
305
+ goto st0;
306
+ st0:
307
+ cs = 0;
308
+ goto _out;
309
+ tr133:
310
+ #line 25 "hpricot_css.rl"
311
+ {
312
+ aps = p;
313
+ }
314
+ goto st1;
315
+ st1:
316
+ if ( ++p == pe )
317
+ goto _test_eof1;
318
+ case 1:
319
+ #line 320 "hpricot_css.c"
320
+ if ( -88 <= (*p) && (*p) <= -65 )
321
+ goto tr1;
322
+ goto tr0;
323
+ tr1:
324
+ #line 1 "hpricot_css.rl"
325
+ {te = p+1;}
326
+ #line 76 "hpricot_css.rl"
327
+ {act = 5;}
328
+ goto st88;
329
+ tr144:
330
+ #line 1 "hpricot_css.rl"
331
+ {te = p+1;}
332
+ #line 25 "hpricot_css.rl"
333
+ {
334
+ aps = p;
335
+ }
336
+ #line 76 "hpricot_css.rl"
337
+ {act = 5;}
338
+ goto st88;
339
+ st88:
340
+ if ( ++p == pe )
341
+ goto _test_eof88;
342
+ case 88:
343
+ #line 344 "hpricot_css.c"
344
+ switch( (*p) ) {
345
+ case -60: goto st1;
346
+ case 45: goto tr1;
347
+ case 92: goto st5;
348
+ case 95: goto tr1;
349
+ }
350
+ if ( (*p) < -16 ) {
351
+ if ( (*p) > -33 ) {
352
+ if ( -32 <= (*p) && (*p) <= -17 )
353
+ goto st3;
354
+ } else if ( (*p) >= -59 )
355
+ goto st2;
356
+ } else if ( (*p) > -12 ) {
357
+ if ( (*p) < 65 ) {
358
+ if ( 48 <= (*p) && (*p) <= 57 )
359
+ goto tr1;
360
+ } else if ( (*p) > 90 ) {
361
+ if ( 97 <= (*p) && (*p) <= 122 )
362
+ goto tr1;
363
+ } else
364
+ goto tr1;
365
+ } else
366
+ goto st4;
367
+ goto tr149;
368
+ tr134:
369
+ #line 25 "hpricot_css.rl"
370
+ {
371
+ aps = p;
372
+ }
373
+ goto st2;
374
+ st2:
375
+ if ( ++p == pe )
376
+ goto _test_eof2;
377
+ case 2:
378
+ #line 379 "hpricot_css.c"
379
+ if ( (*p) <= -65 )
380
+ goto tr1;
381
+ goto tr0;
382
+ tr135:
383
+ #line 25 "hpricot_css.rl"
384
+ {
385
+ aps = p;
386
+ }
387
+ goto st3;
388
+ st3:
389
+ if ( ++p == pe )
390
+ goto _test_eof3;
391
+ case 3:
392
+ #line 393 "hpricot_css.c"
393
+ if ( (*p) <= -65 )
394
+ goto st2;
395
+ goto tr0;
396
+ tr136:
397
+ #line 25 "hpricot_css.rl"
398
+ {
399
+ aps = p;
400
+ }
401
+ goto st4;
402
+ st4:
403
+ if ( ++p == pe )
404
+ goto _test_eof4;
405
+ case 4:
406
+ #line 407 "hpricot_css.c"
407
+ if ( (*p) <= -65 )
408
+ goto st3;
409
+ goto tr0;
410
+ tr146:
411
+ #line 25 "hpricot_css.rl"
412
+ {
413
+ aps = p;
414
+ }
415
+ goto st5;
416
+ st5:
417
+ if ( ++p == pe )
418
+ goto _test_eof5;
419
+ case 5:
420
+ #line 421 "hpricot_css.c"
421
+ if ( (*p) == 46 )
422
+ goto tr1;
423
+ goto tr0;
424
+ tr137:
425
+ #line 1 "hpricot_css.rl"
426
+ {te = p+1;}
427
+ goto st89;
428
+ st89:
429
+ if ( ++p == pe )
430
+ goto _test_eof89;
431
+ case 89:
432
+ #line 433 "hpricot_css.c"
433
+ switch( (*p) ) {
434
+ case 32: goto st6;
435
+ case 44: goto st90;
436
+ }
437
+ if ( 9 <= (*p) && (*p) <= 13 )
438
+ goto st6;
439
+ goto tr153;
440
+ st6:
441
+ if ( ++p == pe )
442
+ goto _test_eof6;
443
+ case 6:
444
+ switch( (*p) ) {
445
+ case 32: goto st6;
446
+ case 44: goto st90;
447
+ }
448
+ if ( 9 <= (*p) && (*p) <= 13 )
449
+ goto st6;
450
+ goto tr4;
451
+ st90:
452
+ if ( ++p == pe )
453
+ goto _test_eof90;
454
+ case 90:
455
+ if ( (*p) == 32 )
456
+ goto st90;
457
+ if ( 9 <= (*p) && (*p) <= 13 )
458
+ goto st90;
459
+ goto tr154;
460
+ st7:
461
+ if ( ++p == pe )
462
+ goto _test_eof7;
463
+ case 7:
464
+ switch( (*p) ) {
465
+ case -60: goto tr7;
466
+ case 45: goto tr12;
467
+ case 92: goto tr13;
468
+ case 95: goto tr12;
469
+ }
470
+ if ( (*p) < -16 ) {
471
+ if ( (*p) > -33 ) {
472
+ if ( -32 <= (*p) && (*p) <= -17 )
473
+ goto tr10;
474
+ } else if ( (*p) >= -59 )
475
+ goto tr9;
476
+ } else if ( (*p) > -12 ) {
477
+ if ( (*p) < 65 ) {
478
+ if ( 48 <= (*p) && (*p) <= 57 )
479
+ goto tr12;
480
+ } else if ( (*p) > 90 ) {
481
+ if ( 97 <= (*p) && (*p) <= 122 )
482
+ goto tr12;
483
+ } else
484
+ goto tr12;
485
+ } else
486
+ goto tr11;
487
+ goto st0;
488
+ tr7:
489
+ #line 25 "hpricot_css.rl"
490
+ {
491
+ aps = p;
492
+ }
493
+ goto st8;
494
+ st8:
495
+ if ( ++p == pe )
496
+ goto _test_eof8;
497
+ case 8:
498
+ #line 499 "hpricot_css.c"
499
+ if ( -88 <= (*p) && (*p) <= -65 )
500
+ goto tr14;
501
+ goto tr0;
502
+ tr12:
503
+ #line 1 "hpricot_css.rl"
504
+ {te = p+1;}
505
+ #line 25 "hpricot_css.rl"
506
+ {
507
+ aps = p;
508
+ }
509
+ #line 72 "hpricot_css.rl"
510
+ {act = 1;}
511
+ goto st91;
512
+ tr14:
513
+ #line 1 "hpricot_css.rl"
514
+ {te = p+1;}
515
+ #line 72 "hpricot_css.rl"
516
+ {act = 1;}
517
+ goto st91;
518
+ st91:
519
+ if ( ++p == pe )
520
+ goto _test_eof91;
521
+ case 91:
522
+ #line 523 "hpricot_css.c"
523
+ switch( (*p) ) {
524
+ case -60: goto st8;
525
+ case 45: goto tr14;
526
+ case 92: goto st12;
527
+ case 95: goto tr14;
528
+ }
529
+ if ( (*p) < -16 ) {
530
+ if ( (*p) > -33 ) {
531
+ if ( -32 <= (*p) && (*p) <= -17 )
532
+ goto st10;
533
+ } else if ( (*p) >= -59 )
534
+ goto st9;
535
+ } else if ( (*p) > -12 ) {
536
+ if ( (*p) < 65 ) {
537
+ if ( 48 <= (*p) && (*p) <= 57 )
538
+ goto tr14;
539
+ } else if ( (*p) > 90 ) {
540
+ if ( 97 <= (*p) && (*p) <= 122 )
541
+ goto tr14;
542
+ } else
543
+ goto tr14;
544
+ } else
545
+ goto st11;
546
+ goto tr155;
547
+ tr9:
548
+ #line 25 "hpricot_css.rl"
549
+ {
550
+ aps = p;
551
+ }
552
+ goto st9;
553
+ st9:
554
+ if ( ++p == pe )
555
+ goto _test_eof9;
556
+ case 9:
557
+ #line 558 "hpricot_css.c"
558
+ if ( (*p) <= -65 )
559
+ goto tr14;
560
+ goto tr0;
561
+ tr10:
562
+ #line 25 "hpricot_css.rl"
563
+ {
564
+ aps = p;
565
+ }
566
+ goto st10;
567
+ st10:
568
+ if ( ++p == pe )
569
+ goto _test_eof10;
570
+ case 10:
571
+ #line 572 "hpricot_css.c"
572
+ if ( (*p) <= -65 )
573
+ goto st9;
574
+ goto tr0;
575
+ tr11:
576
+ #line 25 "hpricot_css.rl"
577
+ {
578
+ aps = p;
579
+ }
580
+ goto st11;
581
+ st11:
582
+ if ( ++p == pe )
583
+ goto _test_eof11;
584
+ case 11:
585
+ #line 586 "hpricot_css.c"
586
+ if ( (*p) <= -65 )
587
+ goto st10;
588
+ goto tr0;
589
+ tr13:
590
+ #line 25 "hpricot_css.rl"
591
+ {
592
+ aps = p;
593
+ }
594
+ goto st12;
595
+ st12:
596
+ if ( ++p == pe )
597
+ goto _test_eof12;
598
+ case 12:
599
+ #line 600 "hpricot_css.c"
600
+ if ( (*p) == 46 )
601
+ goto tr14;
602
+ goto tr0;
603
+ tr160:
604
+ #line 29 "hpricot_css.rl"
605
+ {
606
+ ape = p;
607
+ PUSH(aps, ape);
608
+ }
609
+ goto st92;
610
+ st92:
611
+ if ( ++p == pe )
612
+ goto _test_eof92;
613
+ case 92:
614
+ #line 615 "hpricot_css.c"
615
+ switch( (*p) ) {
616
+ case 43: goto st92;
617
+ case 45: goto st92;
618
+ case 110: goto st92;
619
+ }
620
+ if ( 48 <= (*p) && (*p) <= 57 )
621
+ goto st92;
622
+ goto tr159;
623
+ tr161:
624
+ #line 1 "hpricot_css.rl"
625
+ {te = p+1;}
626
+ #line 76 "hpricot_css.rl"
627
+ {act = 5;}
628
+ goto st93;
629
+ tr140:
630
+ #line 1 "hpricot_css.rl"
631
+ {te = p+1;}
632
+ #line 25 "hpricot_css.rl"
633
+ {
634
+ aps = p;
635
+ }
636
+ #line 76 "hpricot_css.rl"
637
+ {act = 5;}
638
+ goto st93;
639
+ st93:
640
+ if ( ++p == pe )
641
+ goto _test_eof93;
642
+ case 93:
643
+ #line 644 "hpricot_css.c"
644
+ switch( (*p) ) {
645
+ case -60: goto st1;
646
+ case 43: goto tr160;
647
+ case 45: goto tr161;
648
+ case 92: goto st5;
649
+ case 95: goto tr1;
650
+ case 110: goto tr161;
651
+ }
652
+ if ( (*p) < -16 ) {
653
+ if ( (*p) > -33 ) {
654
+ if ( -32 <= (*p) && (*p) <= -17 )
655
+ goto st3;
656
+ } else if ( (*p) >= -59 )
657
+ goto st2;
658
+ } else if ( (*p) > -12 ) {
659
+ if ( (*p) < 65 ) {
660
+ if ( 48 <= (*p) && (*p) <= 57 )
661
+ goto tr161;
662
+ } else if ( (*p) > 90 ) {
663
+ if ( 97 <= (*p) && (*p) <= 122 )
664
+ goto tr1;
665
+ } else
666
+ goto tr1;
667
+ } else
668
+ goto st4;
669
+ goto tr149;
670
+ st13:
671
+ if ( ++p == pe )
672
+ goto _test_eof13;
673
+ case 13:
674
+ switch( (*p) ) {
675
+ case -60: goto tr17;
676
+ case 45: goto tr21;
677
+ case 92: goto tr22;
678
+ case 95: goto tr21;
679
+ }
680
+ if ( (*p) < -16 ) {
681
+ if ( (*p) > -33 ) {
682
+ if ( -32 <= (*p) && (*p) <= -17 )
683
+ goto tr19;
684
+ } else if ( (*p) >= -59 )
685
+ goto tr18;
686
+ } else if ( (*p) > -12 ) {
687
+ if ( (*p) < 65 ) {
688
+ if ( 48 <= (*p) && (*p) <= 57 )
689
+ goto tr21;
690
+ } else if ( (*p) > 90 ) {
691
+ if ( 97 <= (*p) && (*p) <= 122 )
692
+ goto tr21;
693
+ } else
694
+ goto tr21;
695
+ } else
696
+ goto tr20;
697
+ goto st0;
698
+ tr17:
699
+ #line 25 "hpricot_css.rl"
700
+ {
701
+ aps = p;
702
+ }
703
+ goto st14;
704
+ st14:
705
+ if ( ++p == pe )
706
+ goto _test_eof14;
707
+ case 14:
708
+ #line 709 "hpricot_css.c"
709
+ if ( -88 <= (*p) && (*p) <= -65 )
710
+ goto tr23;
711
+ goto tr0;
712
+ tr21:
713
+ #line 1 "hpricot_css.rl"
714
+ {te = p+1;}
715
+ #line 25 "hpricot_css.rl"
716
+ {
717
+ aps = p;
718
+ }
719
+ #line 73 "hpricot_css.rl"
720
+ {act = 2;}
721
+ goto st94;
722
+ tr23:
723
+ #line 1 "hpricot_css.rl"
724
+ {te = p+1;}
725
+ #line 73 "hpricot_css.rl"
726
+ {act = 2;}
727
+ goto st94;
728
+ st94:
729
+ if ( ++p == pe )
730
+ goto _test_eof94;
731
+ case 94:
732
+ #line 733 "hpricot_css.c"
733
+ switch( (*p) ) {
734
+ case -60: goto st14;
735
+ case 45: goto tr23;
736
+ case 92: goto st18;
737
+ case 95: goto tr23;
738
+ }
739
+ if ( (*p) < -16 ) {
740
+ if ( (*p) > -33 ) {
741
+ if ( -32 <= (*p) && (*p) <= -17 )
742
+ goto st16;
743
+ } else if ( (*p) >= -59 )
744
+ goto st15;
745
+ } else if ( (*p) > -12 ) {
746
+ if ( (*p) < 65 ) {
747
+ if ( 48 <= (*p) && (*p) <= 57 )
748
+ goto tr23;
749
+ } else if ( (*p) > 90 ) {
750
+ if ( 97 <= (*p) && (*p) <= 122 )
751
+ goto tr23;
752
+ } else
753
+ goto tr23;
754
+ } else
755
+ goto st17;
756
+ goto tr162;
757
+ tr18:
758
+ #line 25 "hpricot_css.rl"
759
+ {
760
+ aps = p;
761
+ }
762
+ goto st15;
763
+ st15:
764
+ if ( ++p == pe )
765
+ goto _test_eof15;
766
+ case 15:
767
+ #line 768 "hpricot_css.c"
768
+ if ( (*p) <= -65 )
769
+ goto tr23;
770
+ goto tr0;
771
+ tr19:
772
+ #line 25 "hpricot_css.rl"
773
+ {
774
+ aps = p;
775
+ }
776
+ goto st16;
777
+ st16:
778
+ if ( ++p == pe )
779
+ goto _test_eof16;
780
+ case 16:
781
+ #line 782 "hpricot_css.c"
782
+ if ( (*p) <= -65 )
783
+ goto st15;
784
+ goto tr0;
785
+ tr20:
786
+ #line 25 "hpricot_css.rl"
787
+ {
788
+ aps = p;
789
+ }
790
+ goto st17;
791
+ st17:
792
+ if ( ++p == pe )
793
+ goto _test_eof17;
794
+ case 17:
795
+ #line 796 "hpricot_css.c"
796
+ if ( (*p) <= -65 )
797
+ goto st16;
798
+ goto tr0;
799
+ tr22:
800
+ #line 25 "hpricot_css.rl"
801
+ {
802
+ aps = p;
803
+ }
804
+ goto st18;
805
+ st18:
806
+ if ( ++p == pe )
807
+ goto _test_eof18;
808
+ case 18:
809
+ #line 810 "hpricot_css.c"
810
+ if ( (*p) == 46 )
811
+ goto tr23;
812
+ goto tr0;
813
+ st19:
814
+ if ( ++p == pe )
815
+ goto _test_eof19;
816
+ case 19:
817
+ switch( (*p) ) {
818
+ case -60: goto tr26;
819
+ case 45: goto tr30;
820
+ case 92: goto tr31;
821
+ case 95: goto tr30;
822
+ case 101: goto tr32;
823
+ case 102: goto tr33;
824
+ case 103: goto tr34;
825
+ case 108: goto tr35;
826
+ case 110: goto tr36;
827
+ case 111: goto tr37;
828
+ }
829
+ if ( (*p) < -16 ) {
830
+ if ( (*p) > -33 ) {
831
+ if ( -32 <= (*p) && (*p) <= -17 )
832
+ goto tr28;
833
+ } else if ( (*p) >= -59 )
834
+ goto tr27;
835
+ } else if ( (*p) > -12 ) {
836
+ if ( (*p) < 65 ) {
837
+ if ( 48 <= (*p) && (*p) <= 57 )
838
+ goto tr30;
839
+ } else if ( (*p) > 90 ) {
840
+ if ( 97 <= (*p) && (*p) <= 122 )
841
+ goto tr30;
842
+ } else
843
+ goto tr30;
844
+ } else
845
+ goto tr29;
846
+ goto st0;
847
+ tr26:
848
+ #line 25 "hpricot_css.rl"
849
+ {
850
+ aps = p;
851
+ }
852
+ goto st20;
853
+ tr174:
854
+ #line 29 "hpricot_css.rl"
855
+ {
856
+ ape = p;
857
+ PUSH(aps, ape);
858
+ }
859
+ goto st20;
860
+ st20:
861
+ if ( ++p == pe )
862
+ goto _test_eof20;
863
+ case 20:
864
+ #line 865 "hpricot_css.c"
865
+ if ( -88 <= (*p) && (*p) <= -65 )
866
+ goto tr38;
867
+ goto tr0;
868
+ tr30:
869
+ #line 1 "hpricot_css.rl"
870
+ {te = p+1;}
871
+ #line 25 "hpricot_css.rl"
872
+ {
873
+ aps = p;
874
+ }
875
+ #line 80 "hpricot_css.rl"
876
+ {act = 9;}
877
+ goto st95;
878
+ tr38:
879
+ #line 1 "hpricot_css.rl"
880
+ {te = p+1;}
881
+ #line 80 "hpricot_css.rl"
882
+ {act = 9;}
883
+ goto st95;
884
+ tr179:
885
+ #line 1 "hpricot_css.rl"
886
+ {te = p+1;}
887
+ #line 29 "hpricot_css.rl"
888
+ {
889
+ ape = p;
890
+ PUSH(aps, ape);
891
+ }
892
+ #line 80 "hpricot_css.rl"
893
+ {act = 9;}
894
+ goto st95;
895
+ st95:
896
+ if ( ++p == pe )
897
+ goto _test_eof95;
898
+ case 95:
899
+ #line 900 "hpricot_css.c"
900
+ switch( (*p) ) {
901
+ case -60: goto st20;
902
+ case 40: goto tr169;
903
+ case 45: goto tr38;
904
+ case 92: goto st41;
905
+ case 95: goto tr38;
906
+ }
907
+ if ( (*p) < -16 ) {
908
+ if ( (*p) > -33 ) {
909
+ if ( -32 <= (*p) && (*p) <= -17 )
910
+ goto st22;
911
+ } else if ( (*p) >= -59 )
912
+ goto st21;
913
+ } else if ( (*p) > -12 ) {
914
+ if ( (*p) < 65 ) {
915
+ if ( 48 <= (*p) && (*p) <= 57 )
916
+ goto tr38;
917
+ } else if ( (*p) > 90 ) {
918
+ if ( 97 <= (*p) && (*p) <= 122 )
919
+ goto tr38;
920
+ } else
921
+ goto tr38;
922
+ } else
923
+ goto st23;
924
+ goto tr166;
925
+ tr27:
926
+ #line 25 "hpricot_css.rl"
927
+ {
928
+ aps = p;
929
+ }
930
+ goto st21;
931
+ tr175:
932
+ #line 29 "hpricot_css.rl"
933
+ {
934
+ ape = p;
935
+ PUSH(aps, ape);
936
+ }
937
+ goto st21;
938
+ st21:
939
+ if ( ++p == pe )
940
+ goto _test_eof21;
941
+ case 21:
942
+ #line 943 "hpricot_css.c"
943
+ if ( (*p) <= -65 )
944
+ goto tr38;
945
+ goto tr0;
946
+ tr28:
947
+ #line 25 "hpricot_css.rl"
948
+ {
949
+ aps = p;
950
+ }
951
+ goto st22;
952
+ tr176:
953
+ #line 29 "hpricot_css.rl"
954
+ {
955
+ ape = p;
956
+ PUSH(aps, ape);
957
+ }
958
+ goto st22;
959
+ st22:
960
+ if ( ++p == pe )
961
+ goto _test_eof22;
962
+ case 22:
963
+ #line 964 "hpricot_css.c"
964
+ if ( (*p) <= -65 )
965
+ goto st21;
966
+ goto tr0;
967
+ tr29:
968
+ #line 25 "hpricot_css.rl"
969
+ {
970
+ aps = p;
971
+ }
972
+ goto st23;
973
+ tr177:
974
+ #line 29 "hpricot_css.rl"
975
+ {
976
+ ape = p;
977
+ PUSH(aps, ape);
978
+ }
979
+ goto st23;
980
+ st23:
981
+ if ( ++p == pe )
982
+ goto _test_eof23;
983
+ case 23:
984
+ #line 985 "hpricot_css.c"
985
+ if ( (*p) <= -65 )
986
+ goto st22;
987
+ goto tr0;
988
+ tr169:
989
+ #line 29 "hpricot_css.rl"
990
+ {
991
+ ape = p;
992
+ PUSH(aps, ape);
993
+ }
994
+ goto st24;
995
+ st24:
996
+ if ( ++p == pe )
997
+ goto _test_eof24;
998
+ case 24:
999
+ #line 1000 "hpricot_css.c"
1000
+ switch( (*p) ) {
1001
+ case 34: goto tr43;
1002
+ case 39: goto tr44;
1003
+ case 40: goto tr45;
1004
+ case 41: goto tr46;
1005
+ }
1006
+ goto tr42;
1007
+ tr42:
1008
+ #line 25 "hpricot_css.rl"
1009
+ {
1010
+ aps = p;
1011
+ }
1012
+ goto st25;
1013
+ st25:
1014
+ if ( ++p == pe )
1015
+ goto _test_eof25;
1016
+ case 25:
1017
+ #line 1018 "hpricot_css.c"
1018
+ switch( (*p) ) {
1019
+ case 34: goto tr0;
1020
+ case 40: goto tr0;
1021
+ case 41: goto tr48;
1022
+ }
1023
+ goto st25;
1024
+ tr43:
1025
+ #line 25 "hpricot_css.rl"
1026
+ {
1027
+ aps = p;
1028
+ }
1029
+ goto st26;
1030
+ st26:
1031
+ if ( ++p == pe )
1032
+ goto _test_eof26;
1033
+ case 26:
1034
+ #line 1035 "hpricot_css.c"
1035
+ switch( (*p) ) {
1036
+ case 34: goto st28;
1037
+ case 40: goto st29;
1038
+ case 41: goto tr0;
1039
+ }
1040
+ goto st27;
1041
+ st27:
1042
+ if ( ++p == pe )
1043
+ goto _test_eof27;
1044
+ case 27:
1045
+ if ( (*p) == 34 )
1046
+ goto st28;
1047
+ if ( 40 <= (*p) && (*p) <= 41 )
1048
+ goto tr0;
1049
+ goto st27;
1050
+ st28:
1051
+ if ( ++p == pe )
1052
+ goto _test_eof28;
1053
+ case 28:
1054
+ if ( (*p) == 41 )
1055
+ goto tr48;
1056
+ goto tr0;
1057
+ st29:
1058
+ if ( ++p == pe )
1059
+ goto _test_eof29;
1060
+ case 29:
1061
+ if ( (*p) == 41 )
1062
+ goto tr0;
1063
+ goto st30;
1064
+ st30:
1065
+ if ( ++p == pe )
1066
+ goto _test_eof30;
1067
+ case 30:
1068
+ if ( (*p) == 41 )
1069
+ goto st31;
1070
+ goto st30;
1071
+ st31:
1072
+ if ( ++p == pe )
1073
+ goto _test_eof31;
1074
+ case 31:
1075
+ switch( (*p) ) {
1076
+ case 34: goto st28;
1077
+ case 40: goto st29;
1078
+ }
1079
+ goto tr0;
1080
+ tr44:
1081
+ #line 25 "hpricot_css.rl"
1082
+ {
1083
+ aps = p;
1084
+ }
1085
+ goto st32;
1086
+ st32:
1087
+ if ( ++p == pe )
1088
+ goto _test_eof32;
1089
+ case 32:
1090
+ #line 1091 "hpricot_css.c"
1091
+ switch( (*p) ) {
1092
+ case 34: goto st34;
1093
+ case 39: goto st25;
1094
+ case 40: goto st35;
1095
+ case 41: goto tr48;
1096
+ }
1097
+ goto st33;
1098
+ st33:
1099
+ if ( ++p == pe )
1100
+ goto _test_eof33;
1101
+ case 33:
1102
+ switch( (*p) ) {
1103
+ case 34: goto st34;
1104
+ case 39: goto st25;
1105
+ case 40: goto tr0;
1106
+ case 41: goto tr48;
1107
+ }
1108
+ goto st33;
1109
+ st34:
1110
+ if ( ++p == pe )
1111
+ goto _test_eof34;
1112
+ case 34:
1113
+ if ( (*p) == 39 )
1114
+ goto st28;
1115
+ if ( 40 <= (*p) && (*p) <= 41 )
1116
+ goto tr0;
1117
+ goto st34;
1118
+ st35:
1119
+ if ( ++p == pe )
1120
+ goto _test_eof35;
1121
+ case 35:
1122
+ if ( (*p) == 41 )
1123
+ goto tr0;
1124
+ goto st36;
1125
+ st36:
1126
+ if ( ++p == pe )
1127
+ goto _test_eof36;
1128
+ case 36:
1129
+ if ( (*p) == 41 )
1130
+ goto st37;
1131
+ goto st36;
1132
+ st37:
1133
+ if ( ++p == pe )
1134
+ goto _test_eof37;
1135
+ case 37:
1136
+ switch( (*p) ) {
1137
+ case 39: goto st28;
1138
+ case 40: goto st35;
1139
+ }
1140
+ goto tr0;
1141
+ tr45:
1142
+ #line 25 "hpricot_css.rl"
1143
+ {
1144
+ aps = p;
1145
+ }
1146
+ goto st38;
1147
+ st38:
1148
+ if ( ++p == pe )
1149
+ goto _test_eof38;
1150
+ case 38:
1151
+ #line 1152 "hpricot_css.c"
1152
+ if ( (*p) == 41 )
1153
+ goto tr0;
1154
+ goto st39;
1155
+ st39:
1156
+ if ( ++p == pe )
1157
+ goto _test_eof39;
1158
+ case 39:
1159
+ if ( (*p) == 41 )
1160
+ goto st40;
1161
+ goto st39;
1162
+ st40:
1163
+ if ( ++p == pe )
1164
+ goto _test_eof40;
1165
+ case 40:
1166
+ switch( (*p) ) {
1167
+ case 40: goto st38;
1168
+ case 41: goto tr48;
1169
+ }
1170
+ goto tr0;
1171
+ tr31:
1172
+ #line 25 "hpricot_css.rl"
1173
+ {
1174
+ aps = p;
1175
+ }
1176
+ goto st41;
1177
+ tr180:
1178
+ #line 29 "hpricot_css.rl"
1179
+ {
1180
+ ape = p;
1181
+ PUSH(aps, ape);
1182
+ }
1183
+ goto st41;
1184
+ st41:
1185
+ if ( ++p == pe )
1186
+ goto _test_eof41;
1187
+ case 41:
1188
+ #line 1189 "hpricot_css.c"
1189
+ if ( (*p) == 46 )
1190
+ goto tr38;
1191
+ goto tr0;
1192
+ tr32:
1193
+ #line 1 "hpricot_css.rl"
1194
+ {te = p+1;}
1195
+ #line 25 "hpricot_css.rl"
1196
+ {
1197
+ aps = p;
1198
+ }
1199
+ #line 80 "hpricot_css.rl"
1200
+ {act = 9;}
1201
+ goto st96;
1202
+ st96:
1203
+ if ( ++p == pe )
1204
+ goto _test_eof96;
1205
+ case 96:
1206
+ #line 1207 "hpricot_css.c"
1207
+ switch( (*p) ) {
1208
+ case -60: goto st20;
1209
+ case 40: goto tr169;
1210
+ case 45: goto tr38;
1211
+ case 92: goto st41;
1212
+ case 95: goto tr38;
1213
+ case 113: goto tr171;
1214
+ case 118: goto tr172;
1215
+ }
1216
+ if ( (*p) < -16 ) {
1217
+ if ( (*p) > -33 ) {
1218
+ if ( -32 <= (*p) && (*p) <= -17 )
1219
+ goto st22;
1220
+ } else if ( (*p) >= -59 )
1221
+ goto st21;
1222
+ } else if ( (*p) > -12 ) {
1223
+ if ( (*p) < 65 ) {
1224
+ if ( 48 <= (*p) && (*p) <= 57 )
1225
+ goto tr38;
1226
+ } else if ( (*p) > 90 ) {
1227
+ if ( 97 <= (*p) && (*p) <= 122 )
1228
+ goto tr38;
1229
+ } else
1230
+ goto tr38;
1231
+ } else
1232
+ goto st23;
1233
+ goto tr166;
1234
+ tr171:
1235
+ #line 1 "hpricot_css.rl"
1236
+ {te = p+1;}
1237
+ #line 79 "hpricot_css.rl"
1238
+ {act = 8;}
1239
+ goto st97;
1240
+ st97:
1241
+ if ( ++p == pe )
1242
+ goto _test_eof97;
1243
+ case 97:
1244
+ #line 1245 "hpricot_css.c"
1245
+ switch( (*p) ) {
1246
+ case -60: goto tr174;
1247
+ case 40: goto tr178;
1248
+ case 45: goto tr179;
1249
+ case 92: goto tr180;
1250
+ case 95: goto tr179;
1251
+ }
1252
+ if ( (*p) < -16 ) {
1253
+ if ( (*p) > -33 ) {
1254
+ if ( -32 <= (*p) && (*p) <= -17 )
1255
+ goto tr176;
1256
+ } else if ( (*p) >= -59 )
1257
+ goto tr175;
1258
+ } else if ( (*p) > -12 ) {
1259
+ if ( (*p) < 65 ) {
1260
+ if ( 48 <= (*p) && (*p) <= 57 )
1261
+ goto tr179;
1262
+ } else if ( (*p) > 90 ) {
1263
+ if ( 97 <= (*p) && (*p) <= 122 )
1264
+ goto tr179;
1265
+ } else
1266
+ goto tr179;
1267
+ } else
1268
+ goto tr177;
1269
+ goto tr173;
1270
+ tr178:
1271
+ #line 29 "hpricot_css.rl"
1272
+ {
1273
+ ape = p;
1274
+ PUSH(aps, ape);
1275
+ }
1276
+ goto st42;
1277
+ st42:
1278
+ if ( ++p == pe )
1279
+ goto _test_eof42;
1280
+ case 42:
1281
+ #line 1282 "hpricot_css.c"
1282
+ switch( (*p) ) {
1283
+ case 34: goto tr43;
1284
+ case 39: goto tr44;
1285
+ case 40: goto tr45;
1286
+ case 41: goto tr46;
1287
+ }
1288
+ if ( 48 <= (*p) && (*p) <= 57 )
1289
+ goto tr63;
1290
+ goto tr42;
1291
+ tr63:
1292
+ #line 25 "hpricot_css.rl"
1293
+ {
1294
+ aps = p;
1295
+ }
1296
+ goto st43;
1297
+ st43:
1298
+ if ( ++p == pe )
1299
+ goto _test_eof43;
1300
+ case 43:
1301
+ #line 1302 "hpricot_css.c"
1302
+ switch( (*p) ) {
1303
+ case 34: goto tr62;
1304
+ case 40: goto tr62;
1305
+ case 41: goto tr64;
1306
+ }
1307
+ if ( 48 <= (*p) && (*p) <= 57 )
1308
+ goto st43;
1309
+ goto st25;
1310
+ tr172:
1311
+ #line 1 "hpricot_css.rl"
1312
+ {te = p+1;}
1313
+ #line 80 "hpricot_css.rl"
1314
+ {act = 9;}
1315
+ goto st98;
1316
+ st98:
1317
+ if ( ++p == pe )
1318
+ goto _test_eof98;
1319
+ case 98:
1320
+ #line 1321 "hpricot_css.c"
1321
+ switch( (*p) ) {
1322
+ case -60: goto st20;
1323
+ case 40: goto tr169;
1324
+ case 45: goto tr38;
1325
+ case 92: goto st41;
1326
+ case 95: goto tr38;
1327
+ case 101: goto tr181;
1328
+ }
1329
+ if ( (*p) < -16 ) {
1330
+ if ( (*p) > -33 ) {
1331
+ if ( -32 <= (*p) && (*p) <= -17 )
1332
+ goto st22;
1333
+ } else if ( (*p) >= -59 )
1334
+ goto st21;
1335
+ } else if ( (*p) > -12 ) {
1336
+ if ( (*p) < 65 ) {
1337
+ if ( 48 <= (*p) && (*p) <= 57 )
1338
+ goto tr38;
1339
+ } else if ( (*p) > 90 ) {
1340
+ if ( 97 <= (*p) && (*p) <= 122 )
1341
+ goto tr38;
1342
+ } else
1343
+ goto tr38;
1344
+ } else
1345
+ goto st23;
1346
+ goto tr166;
1347
+ tr181:
1348
+ #line 1 "hpricot_css.rl"
1349
+ {te = p+1;}
1350
+ #line 80 "hpricot_css.rl"
1351
+ {act = 9;}
1352
+ goto st99;
1353
+ st99:
1354
+ if ( ++p == pe )
1355
+ goto _test_eof99;
1356
+ case 99:
1357
+ #line 1358 "hpricot_css.c"
1358
+ switch( (*p) ) {
1359
+ case -60: goto st20;
1360
+ case 40: goto tr169;
1361
+ case 45: goto tr38;
1362
+ case 92: goto st41;
1363
+ case 95: goto tr38;
1364
+ case 110: goto tr171;
1365
+ }
1366
+ if ( (*p) < -16 ) {
1367
+ if ( (*p) > -33 ) {
1368
+ if ( -32 <= (*p) && (*p) <= -17 )
1369
+ goto st22;
1370
+ } else if ( (*p) >= -59 )
1371
+ goto st21;
1372
+ } else if ( (*p) > -12 ) {
1373
+ if ( (*p) < 65 ) {
1374
+ if ( 48 <= (*p) && (*p) <= 57 )
1375
+ goto tr38;
1376
+ } else if ( (*p) > 90 ) {
1377
+ if ( 97 <= (*p) && (*p) <= 122 )
1378
+ goto tr38;
1379
+ } else
1380
+ goto tr38;
1381
+ } else
1382
+ goto st23;
1383
+ goto tr166;
1384
+ tr33:
1385
+ #line 1 "hpricot_css.rl"
1386
+ {te = p+1;}
1387
+ #line 25 "hpricot_css.rl"
1388
+ {
1389
+ aps = p;
1390
+ }
1391
+ #line 80 "hpricot_css.rl"
1392
+ {act = 9;}
1393
+ goto st100;
1394
+ st100:
1395
+ if ( ++p == pe )
1396
+ goto _test_eof100;
1397
+ case 100:
1398
+ #line 1399 "hpricot_css.c"
1399
+ switch( (*p) ) {
1400
+ case -60: goto st20;
1401
+ case 40: goto tr169;
1402
+ case 45: goto tr38;
1403
+ case 92: goto st41;
1404
+ case 95: goto tr38;
1405
+ case 105: goto tr182;
1406
+ }
1407
+ if ( (*p) < -16 ) {
1408
+ if ( (*p) > -33 ) {
1409
+ if ( -32 <= (*p) && (*p) <= -17 )
1410
+ goto st22;
1411
+ } else if ( (*p) >= -59 )
1412
+ goto st21;
1413
+ } else if ( (*p) > -12 ) {
1414
+ if ( (*p) < 65 ) {
1415
+ if ( 48 <= (*p) && (*p) <= 57 )
1416
+ goto tr38;
1417
+ } else if ( (*p) > 90 ) {
1418
+ if ( 97 <= (*p) && (*p) <= 122 )
1419
+ goto tr38;
1420
+ } else
1421
+ goto tr38;
1422
+ } else
1423
+ goto st23;
1424
+ goto tr166;
1425
+ tr182:
1426
+ #line 1 "hpricot_css.rl"
1427
+ {te = p+1;}
1428
+ #line 80 "hpricot_css.rl"
1429
+ {act = 9;}
1430
+ goto st101;
1431
+ st101:
1432
+ if ( ++p == pe )
1433
+ goto _test_eof101;
1434
+ case 101:
1435
+ #line 1436 "hpricot_css.c"
1436
+ switch( (*p) ) {
1437
+ case -60: goto st20;
1438
+ case 40: goto tr169;
1439
+ case 45: goto tr38;
1440
+ case 92: goto st41;
1441
+ case 95: goto tr38;
1442
+ case 114: goto tr183;
1443
+ }
1444
+ if ( (*p) < -16 ) {
1445
+ if ( (*p) > -33 ) {
1446
+ if ( -32 <= (*p) && (*p) <= -17 )
1447
+ goto st22;
1448
+ } else if ( (*p) >= -59 )
1449
+ goto st21;
1450
+ } else if ( (*p) > -12 ) {
1451
+ if ( (*p) < 65 ) {
1452
+ if ( 48 <= (*p) && (*p) <= 57 )
1453
+ goto tr38;
1454
+ } else if ( (*p) > 90 ) {
1455
+ if ( 97 <= (*p) && (*p) <= 122 )
1456
+ goto tr38;
1457
+ } else
1458
+ goto tr38;
1459
+ } else
1460
+ goto st23;
1461
+ goto tr166;
1462
+ tr183:
1463
+ #line 1 "hpricot_css.rl"
1464
+ {te = p+1;}
1465
+ #line 80 "hpricot_css.rl"
1466
+ {act = 9;}
1467
+ goto st102;
1468
+ st102:
1469
+ if ( ++p == pe )
1470
+ goto _test_eof102;
1471
+ case 102:
1472
+ #line 1473 "hpricot_css.c"
1473
+ switch( (*p) ) {
1474
+ case -60: goto st20;
1475
+ case 40: goto tr169;
1476
+ case 45: goto tr38;
1477
+ case 92: goto st41;
1478
+ case 95: goto tr38;
1479
+ case 115: goto tr184;
1480
+ }
1481
+ if ( (*p) < -16 ) {
1482
+ if ( (*p) > -33 ) {
1483
+ if ( -32 <= (*p) && (*p) <= -17 )
1484
+ goto st22;
1485
+ } else if ( (*p) >= -59 )
1486
+ goto st21;
1487
+ } else if ( (*p) > -12 ) {
1488
+ if ( (*p) < 65 ) {
1489
+ if ( 48 <= (*p) && (*p) <= 57 )
1490
+ goto tr38;
1491
+ } else if ( (*p) > 90 ) {
1492
+ if ( 97 <= (*p) && (*p) <= 122 )
1493
+ goto tr38;
1494
+ } else
1495
+ goto tr38;
1496
+ } else
1497
+ goto st23;
1498
+ goto tr166;
1499
+ tr184:
1500
+ #line 1 "hpricot_css.rl"
1501
+ {te = p+1;}
1502
+ #line 80 "hpricot_css.rl"
1503
+ {act = 9;}
1504
+ goto st103;
1505
+ st103:
1506
+ if ( ++p == pe )
1507
+ goto _test_eof103;
1508
+ case 103:
1509
+ #line 1510 "hpricot_css.c"
1510
+ switch( (*p) ) {
1511
+ case -60: goto st20;
1512
+ case 40: goto tr169;
1513
+ case 45: goto tr38;
1514
+ case 92: goto st41;
1515
+ case 95: goto tr38;
1516
+ case 116: goto tr185;
1517
+ }
1518
+ if ( (*p) < -16 ) {
1519
+ if ( (*p) > -33 ) {
1520
+ if ( -32 <= (*p) && (*p) <= -17 )
1521
+ goto st22;
1522
+ } else if ( (*p) >= -59 )
1523
+ goto st21;
1524
+ } else if ( (*p) > -12 ) {
1525
+ if ( (*p) < 65 ) {
1526
+ if ( 48 <= (*p) && (*p) <= 57 )
1527
+ goto tr38;
1528
+ } else if ( (*p) > 90 ) {
1529
+ if ( 97 <= (*p) && (*p) <= 122 )
1530
+ goto tr38;
1531
+ } else
1532
+ goto tr38;
1533
+ } else
1534
+ goto st23;
1535
+ goto tr166;
1536
+ tr185:
1537
+ #line 1 "hpricot_css.rl"
1538
+ {te = p+1;}
1539
+ #line 79 "hpricot_css.rl"
1540
+ {act = 8;}
1541
+ goto st104;
1542
+ st104:
1543
+ if ( ++p == pe )
1544
+ goto _test_eof104;
1545
+ case 104:
1546
+ #line 1547 "hpricot_css.c"
1547
+ switch( (*p) ) {
1548
+ case -60: goto tr174;
1549
+ case 40: goto tr178;
1550
+ case 45: goto tr186;
1551
+ case 92: goto tr180;
1552
+ case 95: goto tr179;
1553
+ }
1554
+ if ( (*p) < -16 ) {
1555
+ if ( (*p) > -33 ) {
1556
+ if ( -32 <= (*p) && (*p) <= -17 )
1557
+ goto tr176;
1558
+ } else if ( (*p) >= -59 )
1559
+ goto tr175;
1560
+ } else if ( (*p) > -12 ) {
1561
+ if ( (*p) < 65 ) {
1562
+ if ( 48 <= (*p) && (*p) <= 57 )
1563
+ goto tr179;
1564
+ } else if ( (*p) > 90 ) {
1565
+ if ( 97 <= (*p) && (*p) <= 122 )
1566
+ goto tr179;
1567
+ } else
1568
+ goto tr179;
1569
+ } else
1570
+ goto tr177;
1571
+ goto tr173;
1572
+ tr199:
1573
+ #line 1 "hpricot_css.rl"
1574
+ {te = p+1;}
1575
+ #line 80 "hpricot_css.rl"
1576
+ {act = 9;}
1577
+ goto st105;
1578
+ tr186:
1579
+ #line 1 "hpricot_css.rl"
1580
+ {te = p+1;}
1581
+ #line 29 "hpricot_css.rl"
1582
+ {
1583
+ ape = p;
1584
+ PUSH(aps, ape);
1585
+ }
1586
+ #line 80 "hpricot_css.rl"
1587
+ {act = 9;}
1588
+ goto st105;
1589
+ st105:
1590
+ if ( ++p == pe )
1591
+ goto _test_eof105;
1592
+ case 105:
1593
+ #line 1594 "hpricot_css.c"
1594
+ switch( (*p) ) {
1595
+ case -60: goto st20;
1596
+ case 40: goto tr169;
1597
+ case 45: goto tr38;
1598
+ case 92: goto st41;
1599
+ case 95: goto tr38;
1600
+ case 99: goto tr187;
1601
+ }
1602
+ if ( (*p) < -16 ) {
1603
+ if ( (*p) > -33 ) {
1604
+ if ( -32 <= (*p) && (*p) <= -17 )
1605
+ goto st22;
1606
+ } else if ( (*p) >= -59 )
1607
+ goto st21;
1608
+ } else if ( (*p) > -12 ) {
1609
+ if ( (*p) < 65 ) {
1610
+ if ( 48 <= (*p) && (*p) <= 57 )
1611
+ goto tr38;
1612
+ } else if ( (*p) > 90 ) {
1613
+ if ( 97 <= (*p) && (*p) <= 122 )
1614
+ goto tr38;
1615
+ } else
1616
+ goto tr38;
1617
+ } else
1618
+ goto st23;
1619
+ goto tr166;
1620
+ tr187:
1621
+ #line 1 "hpricot_css.rl"
1622
+ {te = p+1;}
1623
+ #line 80 "hpricot_css.rl"
1624
+ {act = 9;}
1625
+ goto st106;
1626
+ st106:
1627
+ if ( ++p == pe )
1628
+ goto _test_eof106;
1629
+ case 106:
1630
+ #line 1631 "hpricot_css.c"
1631
+ switch( (*p) ) {
1632
+ case -60: goto st20;
1633
+ case 40: goto tr169;
1634
+ case 45: goto tr38;
1635
+ case 92: goto st41;
1636
+ case 95: goto tr38;
1637
+ case 104: goto tr188;
1638
+ }
1639
+ if ( (*p) < -16 ) {
1640
+ if ( (*p) > -33 ) {
1641
+ if ( -32 <= (*p) && (*p) <= -17 )
1642
+ goto st22;
1643
+ } else if ( (*p) >= -59 )
1644
+ goto st21;
1645
+ } else if ( (*p) > -12 ) {
1646
+ if ( (*p) < 65 ) {
1647
+ if ( 48 <= (*p) && (*p) <= 57 )
1648
+ goto tr38;
1649
+ } else if ( (*p) > 90 ) {
1650
+ if ( 97 <= (*p) && (*p) <= 122 )
1651
+ goto tr38;
1652
+ } else
1653
+ goto tr38;
1654
+ } else
1655
+ goto st23;
1656
+ goto tr166;
1657
+ tr188:
1658
+ #line 1 "hpricot_css.rl"
1659
+ {te = p+1;}
1660
+ #line 80 "hpricot_css.rl"
1661
+ {act = 9;}
1662
+ goto st107;
1663
+ st107:
1664
+ if ( ++p == pe )
1665
+ goto _test_eof107;
1666
+ case 107:
1667
+ #line 1668 "hpricot_css.c"
1668
+ switch( (*p) ) {
1669
+ case -60: goto st20;
1670
+ case 40: goto tr169;
1671
+ case 45: goto tr38;
1672
+ case 92: goto st41;
1673
+ case 95: goto tr38;
1674
+ case 105: goto tr189;
1675
+ }
1676
+ if ( (*p) < -16 ) {
1677
+ if ( (*p) > -33 ) {
1678
+ if ( -32 <= (*p) && (*p) <= -17 )
1679
+ goto st22;
1680
+ } else if ( (*p) >= -59 )
1681
+ goto st21;
1682
+ } else if ( (*p) > -12 ) {
1683
+ if ( (*p) < 65 ) {
1684
+ if ( 48 <= (*p) && (*p) <= 57 )
1685
+ goto tr38;
1686
+ } else if ( (*p) > 90 ) {
1687
+ if ( 97 <= (*p) && (*p) <= 122 )
1688
+ goto tr38;
1689
+ } else
1690
+ goto tr38;
1691
+ } else
1692
+ goto st23;
1693
+ goto tr166;
1694
+ tr189:
1695
+ #line 1 "hpricot_css.rl"
1696
+ {te = p+1;}
1697
+ #line 80 "hpricot_css.rl"
1698
+ {act = 9;}
1699
+ goto st108;
1700
+ st108:
1701
+ if ( ++p == pe )
1702
+ goto _test_eof108;
1703
+ case 108:
1704
+ #line 1705 "hpricot_css.c"
1705
+ switch( (*p) ) {
1706
+ case -60: goto st20;
1707
+ case 40: goto tr169;
1708
+ case 45: goto tr38;
1709
+ case 92: goto st41;
1710
+ case 95: goto tr38;
1711
+ case 108: goto tr190;
1712
+ }
1713
+ if ( (*p) < -16 ) {
1714
+ if ( (*p) > -33 ) {
1715
+ if ( -32 <= (*p) && (*p) <= -17 )
1716
+ goto st22;
1717
+ } else if ( (*p) >= -59 )
1718
+ goto st21;
1719
+ } else if ( (*p) > -12 ) {
1720
+ if ( (*p) < 65 ) {
1721
+ if ( 48 <= (*p) && (*p) <= 57 )
1722
+ goto tr38;
1723
+ } else if ( (*p) > 90 ) {
1724
+ if ( 97 <= (*p) && (*p) <= 122 )
1725
+ goto tr38;
1726
+ } else
1727
+ goto tr38;
1728
+ } else
1729
+ goto st23;
1730
+ goto tr166;
1731
+ tr190:
1732
+ #line 1 "hpricot_css.rl"
1733
+ {te = p+1;}
1734
+ #line 80 "hpricot_css.rl"
1735
+ {act = 9;}
1736
+ goto st109;
1737
+ st109:
1738
+ if ( ++p == pe )
1739
+ goto _test_eof109;
1740
+ case 109:
1741
+ #line 1742 "hpricot_css.c"
1742
+ switch( (*p) ) {
1743
+ case -60: goto st20;
1744
+ case 40: goto tr169;
1745
+ case 45: goto tr38;
1746
+ case 92: goto st41;
1747
+ case 95: goto tr38;
1748
+ case 100: goto tr191;
1749
+ }
1750
+ if ( (*p) < -16 ) {
1751
+ if ( (*p) > -33 ) {
1752
+ if ( -32 <= (*p) && (*p) <= -17 )
1753
+ goto st22;
1754
+ } else if ( (*p) >= -59 )
1755
+ goto st21;
1756
+ } else if ( (*p) > -12 ) {
1757
+ if ( (*p) < 65 ) {
1758
+ if ( 48 <= (*p) && (*p) <= 57 )
1759
+ goto tr38;
1760
+ } else if ( (*p) > 90 ) {
1761
+ if ( 97 <= (*p) && (*p) <= 122 )
1762
+ goto tr38;
1763
+ } else
1764
+ goto tr38;
1765
+ } else
1766
+ goto st23;
1767
+ goto tr166;
1768
+ tr191:
1769
+ #line 1 "hpricot_css.rl"
1770
+ {te = p+1;}
1771
+ #line 78 "hpricot_css.rl"
1772
+ {act = 7;}
1773
+ goto st110;
1774
+ st110:
1775
+ if ( ++p == pe )
1776
+ goto _test_eof110;
1777
+ case 110:
1778
+ #line 1779 "hpricot_css.c"
1779
+ switch( (*p) ) {
1780
+ case -60: goto tr174;
1781
+ case 40: goto tr193;
1782
+ case 45: goto tr179;
1783
+ case 92: goto tr180;
1784
+ case 95: goto tr179;
1785
+ }
1786
+ if ( (*p) < -16 ) {
1787
+ if ( (*p) > -33 ) {
1788
+ if ( -32 <= (*p) && (*p) <= -17 )
1789
+ goto tr176;
1790
+ } else if ( (*p) >= -59 )
1791
+ goto tr175;
1792
+ } else if ( (*p) > -12 ) {
1793
+ if ( (*p) < 65 ) {
1794
+ if ( 48 <= (*p) && (*p) <= 57 )
1795
+ goto tr179;
1796
+ } else if ( (*p) > 90 ) {
1797
+ if ( 97 <= (*p) && (*p) <= 122 )
1798
+ goto tr179;
1799
+ } else
1800
+ goto tr179;
1801
+ } else
1802
+ goto tr177;
1803
+ goto tr192;
1804
+ tr193:
1805
+ #line 29 "hpricot_css.rl"
1806
+ {
1807
+ ape = p;
1808
+ PUSH(aps, ape);
1809
+ }
1810
+ goto st44;
1811
+ st44:
1812
+ if ( ++p == pe )
1813
+ goto _test_eof44;
1814
+ case 44:
1815
+ #line 1816 "hpricot_css.c"
1816
+ switch( (*p) ) {
1817
+ case 34: goto tr43;
1818
+ case 39: goto tr44;
1819
+ case 40: goto tr45;
1820
+ case 41: goto tr67;
1821
+ case 43: goto tr68;
1822
+ case 45: goto tr68;
1823
+ case 101: goto tr69;
1824
+ case 110: goto tr68;
1825
+ case 111: goto tr70;
1826
+ }
1827
+ if ( 48 <= (*p) && (*p) <= 57 )
1828
+ goto tr68;
1829
+ goto tr42;
1830
+ tr68:
1831
+ #line 25 "hpricot_css.rl"
1832
+ {
1833
+ aps = p;
1834
+ }
1835
+ goto st45;
1836
+ st45:
1837
+ if ( ++p == pe )
1838
+ goto _test_eof45;
1839
+ case 45:
1840
+ #line 1841 "hpricot_css.c"
1841
+ switch( (*p) ) {
1842
+ case 34: goto tr66;
1843
+ case 40: goto tr66;
1844
+ case 41: goto tr71;
1845
+ case 43: goto st45;
1846
+ case 45: goto st45;
1847
+ case 110: goto st45;
1848
+ }
1849
+ if ( 48 <= (*p) && (*p) <= 57 )
1850
+ goto st45;
1851
+ goto st25;
1852
+ tr69:
1853
+ #line 25 "hpricot_css.rl"
1854
+ {
1855
+ aps = p;
1856
+ }
1857
+ goto st46;
1858
+ st46:
1859
+ if ( ++p == pe )
1860
+ goto _test_eof46;
1861
+ case 46:
1862
+ #line 1863 "hpricot_css.c"
1863
+ switch( (*p) ) {
1864
+ case 34: goto tr66;
1865
+ case 40: goto tr66;
1866
+ case 41: goto tr48;
1867
+ case 118: goto st47;
1868
+ }
1869
+ goto st25;
1870
+ st47:
1871
+ if ( ++p == pe )
1872
+ goto _test_eof47;
1873
+ case 47:
1874
+ switch( (*p) ) {
1875
+ case 34: goto tr66;
1876
+ case 40: goto tr66;
1877
+ case 41: goto tr48;
1878
+ case 101: goto st48;
1879
+ }
1880
+ goto st25;
1881
+ st48:
1882
+ if ( ++p == pe )
1883
+ goto _test_eof48;
1884
+ case 48:
1885
+ switch( (*p) ) {
1886
+ case 34: goto tr66;
1887
+ case 40: goto tr66;
1888
+ case 41: goto tr48;
1889
+ case 110: goto st49;
1890
+ }
1891
+ goto st25;
1892
+ st49:
1893
+ if ( ++p == pe )
1894
+ goto _test_eof49;
1895
+ case 49:
1896
+ switch( (*p) ) {
1897
+ case 34: goto tr66;
1898
+ case 40: goto tr66;
1899
+ case 41: goto tr71;
1900
+ }
1901
+ goto st25;
1902
+ tr70:
1903
+ #line 25 "hpricot_css.rl"
1904
+ {
1905
+ aps = p;
1906
+ }
1907
+ goto st50;
1908
+ st50:
1909
+ if ( ++p == pe )
1910
+ goto _test_eof50;
1911
+ case 50:
1912
+ #line 1913 "hpricot_css.c"
1913
+ switch( (*p) ) {
1914
+ case 34: goto tr66;
1915
+ case 40: goto tr66;
1916
+ case 41: goto tr48;
1917
+ case 100: goto st51;
1918
+ }
1919
+ goto st25;
1920
+ st51:
1921
+ if ( ++p == pe )
1922
+ goto _test_eof51;
1923
+ case 51:
1924
+ switch( (*p) ) {
1925
+ case 34: goto tr66;
1926
+ case 40: goto tr66;
1927
+ case 41: goto tr48;
1928
+ case 100: goto st49;
1929
+ }
1930
+ goto st25;
1931
+ tr34:
1932
+ #line 1 "hpricot_css.rl"
1933
+ {te = p+1;}
1934
+ #line 25 "hpricot_css.rl"
1935
+ {
1936
+ aps = p;
1937
+ }
1938
+ #line 80 "hpricot_css.rl"
1939
+ {act = 9;}
1940
+ goto st111;
1941
+ st111:
1942
+ if ( ++p == pe )
1943
+ goto _test_eof111;
1944
+ case 111:
1945
+ #line 1946 "hpricot_css.c"
1946
+ switch( (*p) ) {
1947
+ case -60: goto st20;
1948
+ case 40: goto tr169;
1949
+ case 45: goto tr38;
1950
+ case 92: goto st41;
1951
+ case 95: goto tr38;
1952
+ case 116: goto tr171;
1953
+ }
1954
+ if ( (*p) < -16 ) {
1955
+ if ( (*p) > -33 ) {
1956
+ if ( -32 <= (*p) && (*p) <= -17 )
1957
+ goto st22;
1958
+ } else if ( (*p) >= -59 )
1959
+ goto st21;
1960
+ } else if ( (*p) > -12 ) {
1961
+ if ( (*p) < 65 ) {
1962
+ if ( 48 <= (*p) && (*p) <= 57 )
1963
+ goto tr38;
1964
+ } else if ( (*p) > 90 ) {
1965
+ if ( 97 <= (*p) && (*p) <= 122 )
1966
+ goto tr38;
1967
+ } else
1968
+ goto tr38;
1969
+ } else
1970
+ goto st23;
1971
+ goto tr166;
1972
+ tr35:
1973
+ #line 1 "hpricot_css.rl"
1974
+ {te = p+1;}
1975
+ #line 25 "hpricot_css.rl"
1976
+ {
1977
+ aps = p;
1978
+ }
1979
+ #line 80 "hpricot_css.rl"
1980
+ {act = 9;}
1981
+ goto st112;
1982
+ st112:
1983
+ if ( ++p == pe )
1984
+ goto _test_eof112;
1985
+ case 112:
1986
+ #line 1987 "hpricot_css.c"
1987
+ switch( (*p) ) {
1988
+ case -60: goto st20;
1989
+ case 40: goto tr169;
1990
+ case 45: goto tr38;
1991
+ case 92: goto st41;
1992
+ case 95: goto tr38;
1993
+ case 97: goto tr183;
1994
+ case 116: goto tr171;
1995
+ }
1996
+ if ( (*p) < -16 ) {
1997
+ if ( (*p) > -33 ) {
1998
+ if ( -32 <= (*p) && (*p) <= -17 )
1999
+ goto st22;
2000
+ } else if ( (*p) >= -59 )
2001
+ goto st21;
2002
+ } else if ( (*p) > -12 ) {
2003
+ if ( (*p) < 65 ) {
2004
+ if ( 48 <= (*p) && (*p) <= 57 )
2005
+ goto tr38;
2006
+ } else if ( (*p) > 90 ) {
2007
+ if ( 98 <= (*p) && (*p) <= 122 )
2008
+ goto tr38;
2009
+ } else
2010
+ goto tr38;
2011
+ } else
2012
+ goto st23;
2013
+ goto tr166;
2014
+ tr36:
2015
+ #line 1 "hpricot_css.rl"
2016
+ {te = p+1;}
2017
+ #line 25 "hpricot_css.rl"
2018
+ {
2019
+ aps = p;
2020
+ }
2021
+ #line 80 "hpricot_css.rl"
2022
+ {act = 9;}
2023
+ goto st113;
2024
+ st113:
2025
+ if ( ++p == pe )
2026
+ goto _test_eof113;
2027
+ case 113:
2028
+ #line 2029 "hpricot_css.c"
2029
+ switch( (*p) ) {
2030
+ case -60: goto st20;
2031
+ case 40: goto tr169;
2032
+ case 45: goto tr38;
2033
+ case 92: goto st41;
2034
+ case 95: goto tr38;
2035
+ case 116: goto tr194;
2036
+ }
2037
+ if ( (*p) < -16 ) {
2038
+ if ( (*p) > -33 ) {
2039
+ if ( -32 <= (*p) && (*p) <= -17 )
2040
+ goto st22;
2041
+ } else if ( (*p) >= -59 )
2042
+ goto st21;
2043
+ } else if ( (*p) > -12 ) {
2044
+ if ( (*p) < 65 ) {
2045
+ if ( 48 <= (*p) && (*p) <= 57 )
2046
+ goto tr38;
2047
+ } else if ( (*p) > 90 ) {
2048
+ if ( 97 <= (*p) && (*p) <= 122 )
2049
+ goto tr38;
2050
+ } else
2051
+ goto tr38;
2052
+ } else
2053
+ goto st23;
2054
+ goto tr166;
2055
+ tr194:
2056
+ #line 1 "hpricot_css.rl"
2057
+ {te = p+1;}
2058
+ #line 80 "hpricot_css.rl"
2059
+ {act = 9;}
2060
+ goto st114;
2061
+ st114:
2062
+ if ( ++p == pe )
2063
+ goto _test_eof114;
2064
+ case 114:
2065
+ #line 2066 "hpricot_css.c"
2066
+ switch( (*p) ) {
2067
+ case -60: goto st20;
2068
+ case 40: goto tr169;
2069
+ case 45: goto tr38;
2070
+ case 92: goto st41;
2071
+ case 95: goto tr38;
2072
+ case 104: goto tr185;
2073
+ }
2074
+ if ( (*p) < -16 ) {
2075
+ if ( (*p) > -33 ) {
2076
+ if ( -32 <= (*p) && (*p) <= -17 )
2077
+ goto st22;
2078
+ } else if ( (*p) >= -59 )
2079
+ goto st21;
2080
+ } else if ( (*p) > -12 ) {
2081
+ if ( (*p) < 65 ) {
2082
+ if ( 48 <= (*p) && (*p) <= 57 )
2083
+ goto tr38;
2084
+ } else if ( (*p) > 90 ) {
2085
+ if ( 97 <= (*p) && (*p) <= 122 )
2086
+ goto tr38;
2087
+ } else
2088
+ goto tr38;
2089
+ } else
2090
+ goto st23;
2091
+ goto tr166;
2092
+ tr37:
2093
+ #line 1 "hpricot_css.rl"
2094
+ {te = p+1;}
2095
+ #line 25 "hpricot_css.rl"
2096
+ {
2097
+ aps = p;
2098
+ }
2099
+ #line 80 "hpricot_css.rl"
2100
+ {act = 9;}
2101
+ goto st115;
2102
+ st115:
2103
+ if ( ++p == pe )
2104
+ goto _test_eof115;
2105
+ case 115:
2106
+ #line 2107 "hpricot_css.c"
2107
+ switch( (*p) ) {
2108
+ case -60: goto st20;
2109
+ case 40: goto tr169;
2110
+ case 45: goto tr38;
2111
+ case 92: goto st41;
2112
+ case 95: goto tr38;
2113
+ case 100: goto tr195;
2114
+ case 110: goto tr196;
2115
+ }
2116
+ if ( (*p) < -16 ) {
2117
+ if ( (*p) > -33 ) {
2118
+ if ( -32 <= (*p) && (*p) <= -17 )
2119
+ goto st22;
2120
+ } else if ( (*p) >= -59 )
2121
+ goto st21;
2122
+ } else if ( (*p) > -12 ) {
2123
+ if ( (*p) < 65 ) {
2124
+ if ( 48 <= (*p) && (*p) <= 57 )
2125
+ goto tr38;
2126
+ } else if ( (*p) > 90 ) {
2127
+ if ( 97 <= (*p) && (*p) <= 122 )
2128
+ goto tr38;
2129
+ } else
2130
+ goto tr38;
2131
+ } else
2132
+ goto st23;
2133
+ goto tr166;
2134
+ tr195:
2135
+ #line 1 "hpricot_css.rl"
2136
+ {te = p+1;}
2137
+ #line 80 "hpricot_css.rl"
2138
+ {act = 9;}
2139
+ goto st116;
2140
+ st116:
2141
+ if ( ++p == pe )
2142
+ goto _test_eof116;
2143
+ case 116:
2144
+ #line 2145 "hpricot_css.c"
2145
+ switch( (*p) ) {
2146
+ case -60: goto st20;
2147
+ case 40: goto tr169;
2148
+ case 45: goto tr38;
2149
+ case 92: goto st41;
2150
+ case 95: goto tr38;
2151
+ case 100: goto tr171;
2152
+ }
2153
+ if ( (*p) < -16 ) {
2154
+ if ( (*p) > -33 ) {
2155
+ if ( -32 <= (*p) && (*p) <= -17 )
2156
+ goto st22;
2157
+ } else if ( (*p) >= -59 )
2158
+ goto st21;
2159
+ } else if ( (*p) > -12 ) {
2160
+ if ( (*p) < 65 ) {
2161
+ if ( 48 <= (*p) && (*p) <= 57 )
2162
+ goto tr38;
2163
+ } else if ( (*p) > 90 ) {
2164
+ if ( 97 <= (*p) && (*p) <= 122 )
2165
+ goto tr38;
2166
+ } else
2167
+ goto tr38;
2168
+ } else
2169
+ goto st23;
2170
+ goto tr166;
2171
+ tr196:
2172
+ #line 1 "hpricot_css.rl"
2173
+ {te = p+1;}
2174
+ #line 80 "hpricot_css.rl"
2175
+ {act = 9;}
2176
+ goto st117;
2177
+ st117:
2178
+ if ( ++p == pe )
2179
+ goto _test_eof117;
2180
+ case 117:
2181
+ #line 2182 "hpricot_css.c"
2182
+ switch( (*p) ) {
2183
+ case -60: goto st20;
2184
+ case 40: goto tr169;
2185
+ case 45: goto tr38;
2186
+ case 92: goto st41;
2187
+ case 95: goto tr38;
2188
+ case 108: goto tr197;
2189
+ }
2190
+ if ( (*p) < -16 ) {
2191
+ if ( (*p) > -33 ) {
2192
+ if ( -32 <= (*p) && (*p) <= -17 )
2193
+ goto st22;
2194
+ } else if ( (*p) >= -59 )
2195
+ goto st21;
2196
+ } else if ( (*p) > -12 ) {
2197
+ if ( (*p) < 65 ) {
2198
+ if ( 48 <= (*p) && (*p) <= 57 )
2199
+ goto tr38;
2200
+ } else if ( (*p) > 90 ) {
2201
+ if ( 97 <= (*p) && (*p) <= 122 )
2202
+ goto tr38;
2203
+ } else
2204
+ goto tr38;
2205
+ } else
2206
+ goto st23;
2207
+ goto tr166;
2208
+ tr197:
2209
+ #line 1 "hpricot_css.rl"
2210
+ {te = p+1;}
2211
+ #line 80 "hpricot_css.rl"
2212
+ {act = 9;}
2213
+ goto st118;
2214
+ st118:
2215
+ if ( ++p == pe )
2216
+ goto _test_eof118;
2217
+ case 118:
2218
+ #line 2219 "hpricot_css.c"
2219
+ switch( (*p) ) {
2220
+ case -60: goto st20;
2221
+ case 40: goto tr169;
2222
+ case 45: goto tr38;
2223
+ case 92: goto st41;
2224
+ case 95: goto tr38;
2225
+ case 121: goto tr198;
2226
+ }
2227
+ if ( (*p) < -16 ) {
2228
+ if ( (*p) > -33 ) {
2229
+ if ( -32 <= (*p) && (*p) <= -17 )
2230
+ goto st22;
2231
+ } else if ( (*p) >= -59 )
2232
+ goto st21;
2233
+ } else if ( (*p) > -12 ) {
2234
+ if ( (*p) < 65 ) {
2235
+ if ( 48 <= (*p) && (*p) <= 57 )
2236
+ goto tr38;
2237
+ } else if ( (*p) > 90 ) {
2238
+ if ( 97 <= (*p) && (*p) <= 122 )
2239
+ goto tr38;
2240
+ } else
2241
+ goto tr38;
2242
+ } else
2243
+ goto st23;
2244
+ goto tr166;
2245
+ tr198:
2246
+ #line 1 "hpricot_css.rl"
2247
+ {te = p+1;}
2248
+ #line 80 "hpricot_css.rl"
2249
+ {act = 9;}
2250
+ goto st119;
2251
+ st119:
2252
+ if ( ++p == pe )
2253
+ goto _test_eof119;
2254
+ case 119:
2255
+ #line 2256 "hpricot_css.c"
2256
+ switch( (*p) ) {
2257
+ case -60: goto st20;
2258
+ case 40: goto tr169;
2259
+ case 45: goto tr199;
2260
+ case 92: goto st41;
2261
+ case 95: goto tr38;
2262
+ }
2263
+ if ( (*p) < -16 ) {
2264
+ if ( (*p) > -33 ) {
2265
+ if ( -32 <= (*p) && (*p) <= -17 )
2266
+ goto st22;
2267
+ } else if ( (*p) >= -59 )
2268
+ goto st21;
2269
+ } else if ( (*p) > -12 ) {
2270
+ if ( (*p) < 65 ) {
2271
+ if ( 48 <= (*p) && (*p) <= 57 )
2272
+ goto tr38;
2273
+ } else if ( (*p) > 90 ) {
2274
+ if ( 97 <= (*p) && (*p) <= 122 )
2275
+ goto tr38;
2276
+ } else
2277
+ goto tr38;
2278
+ } else
2279
+ goto st23;
2280
+ goto tr166;
2281
+ st52:
2282
+ if ( ++p == pe )
2283
+ goto _test_eof52;
2284
+ case 52:
2285
+ switch( (*p) ) {
2286
+ case -60: goto tr77;
2287
+ case 45: goto tr81;
2288
+ case 92: goto tr82;
2289
+ case 95: goto tr81;
2290
+ case 110: goto tr83;
2291
+ }
2292
+ if ( (*p) < -16 ) {
2293
+ if ( (*p) > -33 ) {
2294
+ if ( -32 <= (*p) && (*p) <= -17 )
2295
+ goto tr79;
2296
+ } else if ( (*p) >= -59 )
2297
+ goto tr78;
2298
+ } else if ( (*p) > -12 ) {
2299
+ if ( (*p) < 65 ) {
2300
+ if ( 48 <= (*p) && (*p) <= 57 )
2301
+ goto tr81;
2302
+ } else if ( (*p) > 90 ) {
2303
+ if ( 97 <= (*p) && (*p) <= 122 )
2304
+ goto tr81;
2305
+ } else
2306
+ goto tr81;
2307
+ } else
2308
+ goto tr80;
2309
+ goto st0;
2310
+ tr77:
2311
+ #line 25 "hpricot_css.rl"
2312
+ {
2313
+ aps = p;
2314
+ }
2315
+ goto st53;
2316
+ st53:
2317
+ if ( ++p == pe )
2318
+ goto _test_eof53;
2319
+ case 53:
2320
+ #line 2321 "hpricot_css.c"
2321
+ if ( -88 <= (*p) && (*p) <= -65 )
2322
+ goto st54;
2323
+ goto st0;
2324
+ tr81:
2325
+ #line 25 "hpricot_css.rl"
2326
+ {
2327
+ aps = p;
2328
+ }
2329
+ goto st54;
2330
+ tr91:
2331
+ #line 34 "hpricot_css.rl"
2332
+ {
2333
+ ape = p;
2334
+ aps2 = p;
2335
+ }
2336
+ goto st54;
2337
+ st54:
2338
+ if ( ++p == pe )
2339
+ goto _test_eof54;
2340
+ case 54:
2341
+ #line 2342 "hpricot_css.c"
2342
+ switch( (*p) ) {
2343
+ case -60: goto tr86;
2344
+ case 32: goto tr90;
2345
+ case 45: goto tr91;
2346
+ case 61: goto tr92;
2347
+ case 92: goto tr93;
2348
+ case 95: goto tr91;
2349
+ }
2350
+ if ( (*p) < 9 ) {
2351
+ if ( (*p) < -32 ) {
2352
+ if ( -59 <= (*p) && (*p) <= -33 )
2353
+ goto tr87;
2354
+ } else if ( (*p) > -17 ) {
2355
+ if ( -16 <= (*p) && (*p) <= -12 )
2356
+ goto tr89;
2357
+ } else
2358
+ goto tr88;
2359
+ } else if ( (*p) > 13 ) {
2360
+ if ( (*p) < 65 ) {
2361
+ if ( 48 <= (*p) && (*p) <= 57 )
2362
+ goto tr91;
2363
+ } else if ( (*p) > 90 ) {
2364
+ if ( 97 <= (*p) && (*p) <= 122 )
2365
+ goto tr91;
2366
+ } else
2367
+ goto tr91;
2368
+ } else
2369
+ goto tr90;
2370
+ goto tr85;
2371
+ tr85:
2372
+ #line 34 "hpricot_css.rl"
2373
+ {
2374
+ ape = p;
2375
+ aps2 = p;
2376
+ }
2377
+ goto st55;
2378
+ st55:
2379
+ if ( ++p == pe )
2380
+ goto _test_eof55;
2381
+ case 55:
2382
+ #line 2383 "hpricot_css.c"
2383
+ if ( (*p) == 61 )
2384
+ goto st56;
2385
+ goto st0;
2386
+ st56:
2387
+ if ( ++p == pe )
2388
+ goto _test_eof56;
2389
+ case 56:
2390
+ switch( (*p) ) {
2391
+ case 32: goto tr96;
2392
+ case 34: goto tr97;
2393
+ case 39: goto tr98;
2394
+ case 93: goto st0;
2395
+ }
2396
+ if ( 9 <= (*p) && (*p) <= 13 )
2397
+ goto tr96;
2398
+ goto tr95;
2399
+ tr95:
2400
+ #line 39 "hpricot_css.rl"
2401
+ {
2402
+ ape2 = p;
2403
+ PUSH(aps, ape);
2404
+ PUSH(aps2, ape2);
2405
+ }
2406
+ goto st57;
2407
+ st57:
2408
+ if ( ++p == pe )
2409
+ goto _test_eof57;
2410
+ case 57:
2411
+ #line 2412 "hpricot_css.c"
2412
+ if ( (*p) == 93 )
2413
+ goto tr100;
2414
+ goto st57;
2415
+ tr96:
2416
+ #line 39 "hpricot_css.rl"
2417
+ {
2418
+ ape2 = p;
2419
+ PUSH(aps, ape);
2420
+ PUSH(aps2, ape2);
2421
+ }
2422
+ goto st58;
2423
+ st58:
2424
+ if ( ++p == pe )
2425
+ goto _test_eof58;
2426
+ case 58:
2427
+ #line 2428 "hpricot_css.c"
2428
+ switch( (*p) ) {
2429
+ case 32: goto st58;
2430
+ case 34: goto st59;
2431
+ case 39: goto st62;
2432
+ case 93: goto tr100;
2433
+ }
2434
+ if ( 9 <= (*p) && (*p) <= 13 )
2435
+ goto st58;
2436
+ goto st57;
2437
+ tr97:
2438
+ #line 39 "hpricot_css.rl"
2439
+ {
2440
+ ape2 = p;
2441
+ PUSH(aps, ape);
2442
+ PUSH(aps2, ape2);
2443
+ }
2444
+ goto st59;
2445
+ st59:
2446
+ if ( ++p == pe )
2447
+ goto _test_eof59;
2448
+ case 59:
2449
+ #line 2450 "hpricot_css.c"
2450
+ switch( (*p) ) {
2451
+ case 34: goto st57;
2452
+ case 93: goto tr104;
2453
+ }
2454
+ goto st59;
2455
+ tr104:
2456
+ #line 1 "hpricot_css.rl"
2457
+ {te = p+1;}
2458
+ goto st120;
2459
+ st120:
2460
+ if ( ++p == pe )
2461
+ goto _test_eof120;
2462
+ case 120:
2463
+ #line 2464 "hpricot_css.c"
2464
+ if ( (*p) == 34 )
2465
+ goto st61;
2466
+ goto st60;
2467
+ st60:
2468
+ if ( ++p == pe )
2469
+ goto _test_eof60;
2470
+ case 60:
2471
+ if ( (*p) == 34 )
2472
+ goto st61;
2473
+ goto st60;
2474
+ st61:
2475
+ if ( ++p == pe )
2476
+ goto _test_eof61;
2477
+ case 61:
2478
+ if ( (*p) == 93 )
2479
+ goto tr100;
2480
+ goto tr105;
2481
+ tr98:
2482
+ #line 39 "hpricot_css.rl"
2483
+ {
2484
+ ape2 = p;
2485
+ PUSH(aps, ape);
2486
+ PUSH(aps2, ape2);
2487
+ }
2488
+ goto st62;
2489
+ st62:
2490
+ if ( ++p == pe )
2491
+ goto _test_eof62;
2492
+ case 62:
2493
+ #line 2494 "hpricot_css.c"
2494
+ switch( (*p) ) {
2495
+ case 39: goto st57;
2496
+ case 93: goto tr108;
2497
+ }
2498
+ goto st62;
2499
+ tr108:
2500
+ #line 1 "hpricot_css.rl"
2501
+ {te = p+1;}
2502
+ goto st121;
2503
+ st121:
2504
+ if ( ++p == pe )
2505
+ goto _test_eof121;
2506
+ case 121:
2507
+ #line 2508 "hpricot_css.c"
2508
+ if ( (*p) == 39 )
2509
+ goto st61;
2510
+ goto st63;
2511
+ st63:
2512
+ if ( ++p == pe )
2513
+ goto _test_eof63;
2514
+ case 63:
2515
+ if ( (*p) == 39 )
2516
+ goto st61;
2517
+ goto st63;
2518
+ tr86:
2519
+ #line 34 "hpricot_css.rl"
2520
+ {
2521
+ ape = p;
2522
+ aps2 = p;
2523
+ }
2524
+ goto st64;
2525
+ st64:
2526
+ if ( ++p == pe )
2527
+ goto _test_eof64;
2528
+ case 64:
2529
+ #line 2530 "hpricot_css.c"
2530
+ if ( (*p) == 61 )
2531
+ goto st56;
2532
+ if ( -88 <= (*p) && (*p) <= -65 )
2533
+ goto st54;
2534
+ goto st0;
2535
+ tr87:
2536
+ #line 34 "hpricot_css.rl"
2537
+ {
2538
+ ape = p;
2539
+ aps2 = p;
2540
+ }
2541
+ goto st65;
2542
+ st65:
2543
+ if ( ++p == pe )
2544
+ goto _test_eof65;
2545
+ case 65:
2546
+ #line 2547 "hpricot_css.c"
2547
+ if ( (*p) == 61 )
2548
+ goto st56;
2549
+ if ( (*p) <= -65 )
2550
+ goto st54;
2551
+ goto st0;
2552
+ tr88:
2553
+ #line 34 "hpricot_css.rl"
2554
+ {
2555
+ ape = p;
2556
+ aps2 = p;
2557
+ }
2558
+ goto st66;
2559
+ st66:
2560
+ if ( ++p == pe )
2561
+ goto _test_eof66;
2562
+ case 66:
2563
+ #line 2564 "hpricot_css.c"
2564
+ if ( (*p) == 61 )
2565
+ goto st56;
2566
+ if ( (*p) <= -65 )
2567
+ goto st67;
2568
+ goto st0;
2569
+ tr78:
2570
+ #line 25 "hpricot_css.rl"
2571
+ {
2572
+ aps = p;
2573
+ }
2574
+ goto st67;
2575
+ st67:
2576
+ if ( ++p == pe )
2577
+ goto _test_eof67;
2578
+ case 67:
2579
+ #line 2580 "hpricot_css.c"
2580
+ if ( (*p) <= -65 )
2581
+ goto st54;
2582
+ goto st0;
2583
+ tr89:
2584
+ #line 34 "hpricot_css.rl"
2585
+ {
2586
+ ape = p;
2587
+ aps2 = p;
2588
+ }
2589
+ goto st68;
2590
+ st68:
2591
+ if ( ++p == pe )
2592
+ goto _test_eof68;
2593
+ case 68:
2594
+ #line 2595 "hpricot_css.c"
2595
+ if ( (*p) == 61 )
2596
+ goto st56;
2597
+ if ( (*p) <= -65 )
2598
+ goto st69;
2599
+ goto st0;
2600
+ tr79:
2601
+ #line 25 "hpricot_css.rl"
2602
+ {
2603
+ aps = p;
2604
+ }
2605
+ goto st69;
2606
+ st69:
2607
+ if ( ++p == pe )
2608
+ goto _test_eof69;
2609
+ case 69:
2610
+ #line 2611 "hpricot_css.c"
2611
+ if ( (*p) <= -65 )
2612
+ goto st67;
2613
+ goto st0;
2614
+ tr90:
2615
+ #line 34 "hpricot_css.rl"
2616
+ {
2617
+ ape = p;
2618
+ aps2 = p;
2619
+ }
2620
+ goto st70;
2621
+ st70:
2622
+ if ( ++p == pe )
2623
+ goto _test_eof70;
2624
+ case 70:
2625
+ #line 2626 "hpricot_css.c"
2626
+ switch( (*p) ) {
2627
+ case 32: goto st70;
2628
+ case 61: goto st71;
2629
+ }
2630
+ if ( 9 <= (*p) && (*p) <= 13 )
2631
+ goto st70;
2632
+ goto st55;
2633
+ tr92:
2634
+ #line 34 "hpricot_css.rl"
2635
+ {
2636
+ ape = p;
2637
+ aps2 = p;
2638
+ }
2639
+ goto st71;
2640
+ st71:
2641
+ if ( ++p == pe )
2642
+ goto _test_eof71;
2643
+ case 71:
2644
+ #line 2645 "hpricot_css.c"
2645
+ switch( (*p) ) {
2646
+ case 32: goto tr96;
2647
+ case 34: goto tr97;
2648
+ case 39: goto tr98;
2649
+ case 61: goto tr115;
2650
+ case 93: goto st0;
2651
+ }
2652
+ if ( 9 <= (*p) && (*p) <= 13 )
2653
+ goto tr96;
2654
+ goto tr95;
2655
+ tr115:
2656
+ #line 39 "hpricot_css.rl"
2657
+ {
2658
+ ape2 = p;
2659
+ PUSH(aps, ape);
2660
+ PUSH(aps2, ape2);
2661
+ }
2662
+ goto st72;
2663
+ st72:
2664
+ if ( ++p == pe )
2665
+ goto _test_eof72;
2666
+ case 72:
2667
+ #line 2668 "hpricot_css.c"
2668
+ switch( (*p) ) {
2669
+ case 32: goto tr96;
2670
+ case 34: goto tr97;
2671
+ case 39: goto tr98;
2672
+ case 93: goto tr100;
2673
+ }
2674
+ if ( 9 <= (*p) && (*p) <= 13 )
2675
+ goto tr96;
2676
+ goto tr95;
2677
+ tr93:
2678
+ #line 34 "hpricot_css.rl"
2679
+ {
2680
+ ape = p;
2681
+ aps2 = p;
2682
+ }
2683
+ goto st73;
2684
+ st73:
2685
+ if ( ++p == pe )
2686
+ goto _test_eof73;
2687
+ case 73:
2688
+ #line 2689 "hpricot_css.c"
2689
+ switch( (*p) ) {
2690
+ case 46: goto st54;
2691
+ case 61: goto st56;
2692
+ }
2693
+ goto st0;
2694
+ tr80:
2695
+ #line 25 "hpricot_css.rl"
2696
+ {
2697
+ aps = p;
2698
+ }
2699
+ goto st74;
2700
+ st74:
2701
+ if ( ++p == pe )
2702
+ goto _test_eof74;
2703
+ case 74:
2704
+ #line 2705 "hpricot_css.c"
2705
+ if ( (*p) <= -65 )
2706
+ goto st69;
2707
+ goto st0;
2708
+ tr82:
2709
+ #line 25 "hpricot_css.rl"
2710
+ {
2711
+ aps = p;
2712
+ }
2713
+ goto st75;
2714
+ st75:
2715
+ if ( ++p == pe )
2716
+ goto _test_eof75;
2717
+ case 75:
2718
+ #line 2719 "hpricot_css.c"
2719
+ if ( (*p) == 46 )
2720
+ goto st54;
2721
+ goto st0;
2722
+ tr83:
2723
+ #line 25 "hpricot_css.rl"
2724
+ {
2725
+ aps = p;
2726
+ }
2727
+ goto st76;
2728
+ st76:
2729
+ if ( ++p == pe )
2730
+ goto _test_eof76;
2731
+ case 76:
2732
+ #line 2733 "hpricot_css.c"
2733
+ switch( (*p) ) {
2734
+ case -60: goto tr86;
2735
+ case 32: goto tr90;
2736
+ case 45: goto tr91;
2737
+ case 61: goto tr92;
2738
+ case 92: goto tr93;
2739
+ case 95: goto tr91;
2740
+ case 97: goto tr116;
2741
+ }
2742
+ if ( (*p) < 9 ) {
2743
+ if ( (*p) < -32 ) {
2744
+ if ( -59 <= (*p) && (*p) <= -33 )
2745
+ goto tr87;
2746
+ } else if ( (*p) > -17 ) {
2747
+ if ( -16 <= (*p) && (*p) <= -12 )
2748
+ goto tr89;
2749
+ } else
2750
+ goto tr88;
2751
+ } else if ( (*p) > 13 ) {
2752
+ if ( (*p) < 65 ) {
2753
+ if ( 48 <= (*p) && (*p) <= 57 )
2754
+ goto tr91;
2755
+ } else if ( (*p) > 90 ) {
2756
+ if ( 98 <= (*p) && (*p) <= 122 )
2757
+ goto tr91;
2758
+ } else
2759
+ goto tr91;
2760
+ } else
2761
+ goto tr90;
2762
+ goto tr85;
2763
+ tr116:
2764
+ #line 34 "hpricot_css.rl"
2765
+ {
2766
+ ape = p;
2767
+ aps2 = p;
2768
+ }
2769
+ goto st77;
2770
+ st77:
2771
+ if ( ++p == pe )
2772
+ goto _test_eof77;
2773
+ case 77:
2774
+ #line 2775 "hpricot_css.c"
2775
+ switch( (*p) ) {
2776
+ case -60: goto tr86;
2777
+ case 32: goto tr90;
2778
+ case 45: goto tr91;
2779
+ case 61: goto tr92;
2780
+ case 92: goto tr93;
2781
+ case 95: goto tr91;
2782
+ case 109: goto tr117;
2783
+ }
2784
+ if ( (*p) < 9 ) {
2785
+ if ( (*p) < -32 ) {
2786
+ if ( -59 <= (*p) && (*p) <= -33 )
2787
+ goto tr87;
2788
+ } else if ( (*p) > -17 ) {
2789
+ if ( -16 <= (*p) && (*p) <= -12 )
2790
+ goto tr89;
2791
+ } else
2792
+ goto tr88;
2793
+ } else if ( (*p) > 13 ) {
2794
+ if ( (*p) < 65 ) {
2795
+ if ( 48 <= (*p) && (*p) <= 57 )
2796
+ goto tr91;
2797
+ } else if ( (*p) > 90 ) {
2798
+ if ( 97 <= (*p) && (*p) <= 122 )
2799
+ goto tr91;
2800
+ } else
2801
+ goto tr91;
2802
+ } else
2803
+ goto tr90;
2804
+ goto tr85;
2805
+ tr117:
2806
+ #line 34 "hpricot_css.rl"
2807
+ {
2808
+ ape = p;
2809
+ aps2 = p;
2810
+ }
2811
+ goto st78;
2812
+ st78:
2813
+ if ( ++p == pe )
2814
+ goto _test_eof78;
2815
+ case 78:
2816
+ #line 2817 "hpricot_css.c"
2817
+ switch( (*p) ) {
2818
+ case -60: goto tr86;
2819
+ case 32: goto tr90;
2820
+ case 45: goto tr91;
2821
+ case 61: goto tr92;
2822
+ case 92: goto tr93;
2823
+ case 95: goto tr91;
2824
+ case 101: goto tr118;
2825
+ }
2826
+ if ( (*p) < 9 ) {
2827
+ if ( (*p) < -32 ) {
2828
+ if ( -59 <= (*p) && (*p) <= -33 )
2829
+ goto tr87;
2830
+ } else if ( (*p) > -17 ) {
2831
+ if ( -16 <= (*p) && (*p) <= -12 )
2832
+ goto tr89;
2833
+ } else
2834
+ goto tr88;
2835
+ } else if ( (*p) > 13 ) {
2836
+ if ( (*p) < 65 ) {
2837
+ if ( 48 <= (*p) && (*p) <= 57 )
2838
+ goto tr91;
2839
+ } else if ( (*p) > 90 ) {
2840
+ if ( 97 <= (*p) && (*p) <= 122 )
2841
+ goto tr91;
2842
+ } else
2843
+ goto tr91;
2844
+ } else
2845
+ goto tr90;
2846
+ goto tr85;
2847
+ tr118:
2848
+ #line 34 "hpricot_css.rl"
2849
+ {
2850
+ ape = p;
2851
+ aps2 = p;
2852
+ }
2853
+ goto st79;
2854
+ st79:
2855
+ if ( ++p == pe )
2856
+ goto _test_eof79;
2857
+ case 79:
2858
+ #line 2859 "hpricot_css.c"
2859
+ switch( (*p) ) {
2860
+ case -60: goto tr86;
2861
+ case 32: goto tr90;
2862
+ case 45: goto tr91;
2863
+ case 61: goto tr119;
2864
+ case 92: goto tr93;
2865
+ case 95: goto tr91;
2866
+ }
2867
+ if ( (*p) < 9 ) {
2868
+ if ( (*p) < -32 ) {
2869
+ if ( -59 <= (*p) && (*p) <= -33 )
2870
+ goto tr87;
2871
+ } else if ( (*p) > -17 ) {
2872
+ if ( -16 <= (*p) && (*p) <= -12 )
2873
+ goto tr89;
2874
+ } else
2875
+ goto tr88;
2876
+ } else if ( (*p) > 13 ) {
2877
+ if ( (*p) < 65 ) {
2878
+ if ( 48 <= (*p) && (*p) <= 57 )
2879
+ goto tr91;
2880
+ } else if ( (*p) > 90 ) {
2881
+ if ( 97 <= (*p) && (*p) <= 122 )
2882
+ goto tr91;
2883
+ } else
2884
+ goto tr91;
2885
+ } else
2886
+ goto tr90;
2887
+ goto tr85;
2888
+ tr119:
2889
+ #line 34 "hpricot_css.rl"
2890
+ {
2891
+ ape = p;
2892
+ aps2 = p;
2893
+ }
2894
+ goto st80;
2895
+ st80:
2896
+ if ( ++p == pe )
2897
+ goto _test_eof80;
2898
+ case 80:
2899
+ #line 2900 "hpricot_css.c"
2900
+ switch( (*p) ) {
2901
+ case -60: goto tr120;
2902
+ case 32: goto tr96;
2903
+ case 34: goto tr97;
2904
+ case 39: goto tr98;
2905
+ case 45: goto tr124;
2906
+ case 61: goto tr115;
2907
+ case 92: goto tr125;
2908
+ case 93: goto st0;
2909
+ case 95: goto tr124;
2910
+ }
2911
+ if ( (*p) < 9 ) {
2912
+ if ( (*p) < -32 ) {
2913
+ if ( -59 <= (*p) && (*p) <= -33 )
2914
+ goto tr121;
2915
+ } else if ( (*p) > -17 ) {
2916
+ if ( -16 <= (*p) && (*p) <= -12 )
2917
+ goto tr123;
2918
+ } else
2919
+ goto tr122;
2920
+ } else if ( (*p) > 13 ) {
2921
+ if ( (*p) < 65 ) {
2922
+ if ( 48 <= (*p) && (*p) <= 57 )
2923
+ goto tr124;
2924
+ } else if ( (*p) > 90 ) {
2925
+ if ( 97 <= (*p) && (*p) <= 122 )
2926
+ goto tr124;
2927
+ } else
2928
+ goto tr124;
2929
+ } else
2930
+ goto tr96;
2931
+ goto tr95;
2932
+ tr120:
2933
+ #line 25 "hpricot_css.rl"
2934
+ {
2935
+ aps = p;
2936
+ }
2937
+ #line 39 "hpricot_css.rl"
2938
+ {
2939
+ ape2 = p;
2940
+ PUSH(aps, ape);
2941
+ PUSH(aps2, ape2);
2942
+ }
2943
+ goto st81;
2944
+ st81:
2945
+ if ( ++p == pe )
2946
+ goto _test_eof81;
2947
+ case 81:
2948
+ #line 2949 "hpricot_css.c"
2949
+ if ( (*p) == 93 )
2950
+ goto tr100;
2951
+ if ( -88 <= (*p) && (*p) <= -65 )
2952
+ goto st82;
2953
+ goto st57;
2954
+ tr124:
2955
+ #line 25 "hpricot_css.rl"
2956
+ {
2957
+ aps = p;
2958
+ }
2959
+ #line 39 "hpricot_css.rl"
2960
+ {
2961
+ ape2 = p;
2962
+ PUSH(aps, ape);
2963
+ PUSH(aps2, ape2);
2964
+ }
2965
+ goto st82;
2966
+ st82:
2967
+ if ( ++p == pe )
2968
+ goto _test_eof82;
2969
+ case 82:
2970
+ #line 2971 "hpricot_css.c"
2971
+ switch( (*p) ) {
2972
+ case -60: goto st81;
2973
+ case 45: goto st82;
2974
+ case 92: goto st86;
2975
+ case 93: goto tr132;
2976
+ case 95: goto st82;
2977
+ }
2978
+ if ( (*p) < -16 ) {
2979
+ if ( (*p) > -33 ) {
2980
+ if ( -32 <= (*p) && (*p) <= -17 )
2981
+ goto st84;
2982
+ } else if ( (*p) >= -59 )
2983
+ goto st83;
2984
+ } else if ( (*p) > -12 ) {
2985
+ if ( (*p) < 65 ) {
2986
+ if ( 48 <= (*p) && (*p) <= 57 )
2987
+ goto st82;
2988
+ } else if ( (*p) > 90 ) {
2989
+ if ( 97 <= (*p) && (*p) <= 122 )
2990
+ goto st82;
2991
+ } else
2992
+ goto st82;
2993
+ } else
2994
+ goto st85;
2995
+ goto st57;
2996
+ tr121:
2997
+ #line 25 "hpricot_css.rl"
2998
+ {
2999
+ aps = p;
3000
+ }
3001
+ #line 39 "hpricot_css.rl"
3002
+ {
3003
+ ape2 = p;
3004
+ PUSH(aps, ape);
3005
+ PUSH(aps2, ape2);
3006
+ }
3007
+ goto st83;
3008
+ st83:
3009
+ if ( ++p == pe )
3010
+ goto _test_eof83;
3011
+ case 83:
3012
+ #line 3013 "hpricot_css.c"
3013
+ if ( (*p) == 93 )
3014
+ goto tr100;
3015
+ if ( (*p) <= -65 )
3016
+ goto st82;
3017
+ goto st57;
3018
+ tr122:
3019
+ #line 25 "hpricot_css.rl"
3020
+ {
3021
+ aps = p;
3022
+ }
3023
+ #line 39 "hpricot_css.rl"
3024
+ {
3025
+ ape2 = p;
3026
+ PUSH(aps, ape);
3027
+ PUSH(aps2, ape2);
3028
+ }
3029
+ goto st84;
3030
+ st84:
3031
+ if ( ++p == pe )
3032
+ goto _test_eof84;
3033
+ case 84:
3034
+ #line 3035 "hpricot_css.c"
3035
+ if ( (*p) == 93 )
3036
+ goto tr100;
3037
+ if ( (*p) <= -65 )
3038
+ goto st83;
3039
+ goto st57;
3040
+ tr123:
3041
+ #line 25 "hpricot_css.rl"
3042
+ {
3043
+ aps = p;
3044
+ }
3045
+ #line 39 "hpricot_css.rl"
3046
+ {
3047
+ ape2 = p;
3048
+ PUSH(aps, ape);
3049
+ PUSH(aps2, ape2);
3050
+ }
3051
+ goto st85;
3052
+ st85:
3053
+ if ( ++p == pe )
3054
+ goto _test_eof85;
3055
+ case 85:
3056
+ #line 3057 "hpricot_css.c"
3057
+ if ( (*p) == 93 )
3058
+ goto tr100;
3059
+ if ( (*p) <= -65 )
3060
+ goto st84;
3061
+ goto st57;
3062
+ tr125:
3063
+ #line 25 "hpricot_css.rl"
3064
+ {
3065
+ aps = p;
3066
+ }
3067
+ #line 39 "hpricot_css.rl"
3068
+ {
3069
+ ape2 = p;
3070
+ PUSH(aps, ape);
3071
+ PUSH(aps2, ape2);
3072
+ }
3073
+ goto st86;
3074
+ st86:
3075
+ if ( ++p == pe )
3076
+ goto _test_eof86;
3077
+ case 86:
3078
+ #line 3079 "hpricot_css.c"
3079
+ switch( (*p) ) {
3080
+ case 46: goto st82;
3081
+ case 93: goto tr100;
3082
+ }
3083
+ goto st57;
3084
+ tr147:
3085
+ #line 1 "hpricot_css.rl"
3086
+ {te = p+1;}
3087
+ #line 25 "hpricot_css.rl"
3088
+ {
3089
+ aps = p;
3090
+ }
3091
+ #line 76 "hpricot_css.rl"
3092
+ {act = 5;}
3093
+ goto st122;
3094
+ st122:
3095
+ if ( ++p == pe )
3096
+ goto _test_eof122;
3097
+ case 122:
3098
+ #line 3099 "hpricot_css.c"
3099
+ switch( (*p) ) {
3100
+ case -60: goto st1;
3101
+ case 45: goto tr1;
3102
+ case 92: goto st5;
3103
+ case 95: goto tr1;
3104
+ case 118: goto tr201;
3105
+ }
3106
+ if ( (*p) < -16 ) {
3107
+ if ( (*p) > -33 ) {
3108
+ if ( -32 <= (*p) && (*p) <= -17 )
3109
+ goto st3;
3110
+ } else if ( (*p) >= -59 )
3111
+ goto st2;
3112
+ } else if ( (*p) > -12 ) {
3113
+ if ( (*p) < 65 ) {
3114
+ if ( 48 <= (*p) && (*p) <= 57 )
3115
+ goto tr1;
3116
+ } else if ( (*p) > 90 ) {
3117
+ if ( 97 <= (*p) && (*p) <= 122 )
3118
+ goto tr1;
3119
+ } else
3120
+ goto tr1;
3121
+ } else
3122
+ goto st4;
3123
+ goto tr149;
3124
+ tr201:
3125
+ #line 1 "hpricot_css.rl"
3126
+ {te = p+1;}
3127
+ #line 76 "hpricot_css.rl"
3128
+ {act = 5;}
3129
+ goto st123;
3130
+ st123:
3131
+ if ( ++p == pe )
3132
+ goto _test_eof123;
3133
+ case 123:
3134
+ #line 3135 "hpricot_css.c"
3135
+ switch( (*p) ) {
3136
+ case -60: goto st1;
3137
+ case 45: goto tr1;
3138
+ case 92: goto st5;
3139
+ case 95: goto tr1;
3140
+ case 101: goto tr202;
3141
+ }
3142
+ if ( (*p) < -16 ) {
3143
+ if ( (*p) > -33 ) {
3144
+ if ( -32 <= (*p) && (*p) <= -17 )
3145
+ goto st3;
3146
+ } else if ( (*p) >= -59 )
3147
+ goto st2;
3148
+ } else if ( (*p) > -12 ) {
3149
+ if ( (*p) < 65 ) {
3150
+ if ( 48 <= (*p) && (*p) <= 57 )
3151
+ goto tr1;
3152
+ } else if ( (*p) > 90 ) {
3153
+ if ( 97 <= (*p) && (*p) <= 122 )
3154
+ goto tr1;
3155
+ } else
3156
+ goto tr1;
3157
+ } else
3158
+ goto st4;
3159
+ goto tr149;
3160
+ tr202:
3161
+ #line 1 "hpricot_css.rl"
3162
+ {te = p+1;}
3163
+ #line 76 "hpricot_css.rl"
3164
+ {act = 5;}
3165
+ goto st124;
3166
+ st124:
3167
+ if ( ++p == pe )
3168
+ goto _test_eof124;
3169
+ case 124:
3170
+ #line 3171 "hpricot_css.c"
3171
+ switch( (*p) ) {
3172
+ case -60: goto st1;
3173
+ case 45: goto tr1;
3174
+ case 92: goto st5;
3175
+ case 95: goto tr1;
3176
+ }
3177
+ if ( (*p) < -16 ) {
3178
+ if ( (*p) > -33 ) {
3179
+ if ( -32 <= (*p) && (*p) <= -17 )
3180
+ goto st3;
3181
+ } else if ( (*p) >= -59 )
3182
+ goto st2;
3183
+ } else if ( (*p) > -12 ) {
3184
+ if ( (*p) < 65 ) {
3185
+ if ( 48 <= (*p) && (*p) <= 57 )
3186
+ goto tr1;
3187
+ } else if ( (*p) > 90 ) {
3188
+ if ( 97 <= (*p) && (*p) <= 122 )
3189
+ goto tr1;
3190
+ } else
3191
+ goto tr1;
3192
+ } else
3193
+ goto st4;
3194
+ goto tr149;
3195
+ tr148:
3196
+ #line 1 "hpricot_css.rl"
3197
+ {te = p+1;}
3198
+ #line 25 "hpricot_css.rl"
3199
+ {
3200
+ aps = p;
3201
+ }
3202
+ #line 76 "hpricot_css.rl"
3203
+ {act = 5;}
3204
+ goto st125;
3205
+ st125:
3206
+ if ( ++p == pe )
3207
+ goto _test_eof125;
3208
+ case 125:
3209
+ #line 3210 "hpricot_css.c"
3210
+ switch( (*p) ) {
3211
+ case -60: goto st1;
3212
+ case 45: goto tr1;
3213
+ case 92: goto st5;
3214
+ case 95: goto tr1;
3215
+ case 100: goto tr203;
3216
+ }
3217
+ if ( (*p) < -16 ) {
3218
+ if ( (*p) > -33 ) {
3219
+ if ( -32 <= (*p) && (*p) <= -17 )
3220
+ goto st3;
3221
+ } else if ( (*p) >= -59 )
3222
+ goto st2;
3223
+ } else if ( (*p) > -12 ) {
3224
+ if ( (*p) < 65 ) {
3225
+ if ( 48 <= (*p) && (*p) <= 57 )
3226
+ goto tr1;
3227
+ } else if ( (*p) > 90 ) {
3228
+ if ( 97 <= (*p) && (*p) <= 122 )
3229
+ goto tr1;
3230
+ } else
3231
+ goto tr1;
3232
+ } else
3233
+ goto st4;
3234
+ goto tr149;
3235
+ tr203:
3236
+ #line 1 "hpricot_css.rl"
3237
+ {te = p+1;}
3238
+ #line 76 "hpricot_css.rl"
3239
+ {act = 5;}
3240
+ goto st126;
3241
+ st126:
3242
+ if ( ++p == pe )
3243
+ goto _test_eof126;
3244
+ case 126:
3245
+ #line 3246 "hpricot_css.c"
3246
+ switch( (*p) ) {
3247
+ case -60: goto st1;
3248
+ case 45: goto tr1;
3249
+ case 92: goto st5;
3250
+ case 95: goto tr1;
3251
+ }
3252
+ if ( (*p) < -16 ) {
3253
+ if ( (*p) > -33 ) {
3254
+ if ( -32 <= (*p) && (*p) <= -17 )
3255
+ goto st3;
3256
+ } else if ( (*p) >= -59 )
3257
+ goto st2;
3258
+ } else if ( (*p) > -12 ) {
3259
+ if ( (*p) < 65 ) {
3260
+ if ( 48 <= (*p) && (*p) <= 57 )
3261
+ goto tr1;
3262
+ } else if ( (*p) > 90 ) {
3263
+ if ( 97 <= (*p) && (*p) <= 122 )
3264
+ goto tr1;
3265
+ } else
3266
+ goto tr1;
3267
+ } else
3268
+ goto st4;
3269
+ goto tr149;
3270
+ }
3271
+ _test_eof87: cs = 87; goto _test_eof;
3272
+ _test_eof1: cs = 1; goto _test_eof;
3273
+ _test_eof88: cs = 88; goto _test_eof;
3274
+ _test_eof2: cs = 2; goto _test_eof;
3275
+ _test_eof3: cs = 3; goto _test_eof;
3276
+ _test_eof4: cs = 4; goto _test_eof;
3277
+ _test_eof5: cs = 5; goto _test_eof;
3278
+ _test_eof89: cs = 89; goto _test_eof;
3279
+ _test_eof6: cs = 6; goto _test_eof;
3280
+ _test_eof90: cs = 90; goto _test_eof;
3281
+ _test_eof7: cs = 7; goto _test_eof;
3282
+ _test_eof8: cs = 8; goto _test_eof;
3283
+ _test_eof91: cs = 91; goto _test_eof;
3284
+ _test_eof9: cs = 9; goto _test_eof;
3285
+ _test_eof10: cs = 10; goto _test_eof;
3286
+ _test_eof11: cs = 11; goto _test_eof;
3287
+ _test_eof12: cs = 12; goto _test_eof;
3288
+ _test_eof92: cs = 92; goto _test_eof;
3289
+ _test_eof93: cs = 93; goto _test_eof;
3290
+ _test_eof13: cs = 13; goto _test_eof;
3291
+ _test_eof14: cs = 14; goto _test_eof;
3292
+ _test_eof94: cs = 94; goto _test_eof;
3293
+ _test_eof15: cs = 15; goto _test_eof;
3294
+ _test_eof16: cs = 16; goto _test_eof;
3295
+ _test_eof17: cs = 17; goto _test_eof;
3296
+ _test_eof18: cs = 18; goto _test_eof;
3297
+ _test_eof19: cs = 19; goto _test_eof;
3298
+ _test_eof20: cs = 20; goto _test_eof;
3299
+ _test_eof95: cs = 95; goto _test_eof;
3300
+ _test_eof21: cs = 21; goto _test_eof;
3301
+ _test_eof22: cs = 22; goto _test_eof;
3302
+ _test_eof23: cs = 23; goto _test_eof;
3303
+ _test_eof24: cs = 24; goto _test_eof;
3304
+ _test_eof25: cs = 25; goto _test_eof;
3305
+ _test_eof26: cs = 26; goto _test_eof;
3306
+ _test_eof27: cs = 27; goto _test_eof;
3307
+ _test_eof28: cs = 28; goto _test_eof;
3308
+ _test_eof29: cs = 29; goto _test_eof;
3309
+ _test_eof30: cs = 30; goto _test_eof;
3310
+ _test_eof31: cs = 31; goto _test_eof;
3311
+ _test_eof32: cs = 32; goto _test_eof;
3312
+ _test_eof33: cs = 33; goto _test_eof;
3313
+ _test_eof34: cs = 34; goto _test_eof;
3314
+ _test_eof35: cs = 35; goto _test_eof;
3315
+ _test_eof36: cs = 36; goto _test_eof;
3316
+ _test_eof37: cs = 37; goto _test_eof;
3317
+ _test_eof38: cs = 38; goto _test_eof;
3318
+ _test_eof39: cs = 39; goto _test_eof;
3319
+ _test_eof40: cs = 40; goto _test_eof;
3320
+ _test_eof41: cs = 41; goto _test_eof;
3321
+ _test_eof96: cs = 96; goto _test_eof;
3322
+ _test_eof97: cs = 97; goto _test_eof;
3323
+ _test_eof42: cs = 42; goto _test_eof;
3324
+ _test_eof43: cs = 43; goto _test_eof;
3325
+ _test_eof98: cs = 98; goto _test_eof;
3326
+ _test_eof99: cs = 99; goto _test_eof;
3327
+ _test_eof100: cs = 100; goto _test_eof;
3328
+ _test_eof101: cs = 101; goto _test_eof;
3329
+ _test_eof102: cs = 102; goto _test_eof;
3330
+ _test_eof103: cs = 103; goto _test_eof;
3331
+ _test_eof104: cs = 104; goto _test_eof;
3332
+ _test_eof105: cs = 105; goto _test_eof;
3333
+ _test_eof106: cs = 106; goto _test_eof;
3334
+ _test_eof107: cs = 107; goto _test_eof;
3335
+ _test_eof108: cs = 108; goto _test_eof;
3336
+ _test_eof109: cs = 109; goto _test_eof;
3337
+ _test_eof110: cs = 110; goto _test_eof;
3338
+ _test_eof44: cs = 44; goto _test_eof;
3339
+ _test_eof45: cs = 45; goto _test_eof;
3340
+ _test_eof46: cs = 46; goto _test_eof;
3341
+ _test_eof47: cs = 47; goto _test_eof;
3342
+ _test_eof48: cs = 48; goto _test_eof;
3343
+ _test_eof49: cs = 49; goto _test_eof;
3344
+ _test_eof50: cs = 50; goto _test_eof;
3345
+ _test_eof51: cs = 51; goto _test_eof;
3346
+ _test_eof111: cs = 111; goto _test_eof;
3347
+ _test_eof112: cs = 112; goto _test_eof;
3348
+ _test_eof113: cs = 113; goto _test_eof;
3349
+ _test_eof114: cs = 114; goto _test_eof;
3350
+ _test_eof115: cs = 115; goto _test_eof;
3351
+ _test_eof116: cs = 116; goto _test_eof;
3352
+ _test_eof117: cs = 117; goto _test_eof;
3353
+ _test_eof118: cs = 118; goto _test_eof;
3354
+ _test_eof119: cs = 119; goto _test_eof;
3355
+ _test_eof52: cs = 52; goto _test_eof;
3356
+ _test_eof53: cs = 53; goto _test_eof;
3357
+ _test_eof54: cs = 54; goto _test_eof;
3358
+ _test_eof55: cs = 55; goto _test_eof;
3359
+ _test_eof56: cs = 56; goto _test_eof;
3360
+ _test_eof57: cs = 57; goto _test_eof;
3361
+ _test_eof58: cs = 58; goto _test_eof;
3362
+ _test_eof59: cs = 59; goto _test_eof;
3363
+ _test_eof120: cs = 120; goto _test_eof;
3364
+ _test_eof60: cs = 60; goto _test_eof;
3365
+ _test_eof61: cs = 61; goto _test_eof;
3366
+ _test_eof62: cs = 62; goto _test_eof;
3367
+ _test_eof121: cs = 121; goto _test_eof;
3368
+ _test_eof63: cs = 63; goto _test_eof;
3369
+ _test_eof64: cs = 64; goto _test_eof;
3370
+ _test_eof65: cs = 65; goto _test_eof;
3371
+ _test_eof66: cs = 66; goto _test_eof;
3372
+ _test_eof67: cs = 67; goto _test_eof;
3373
+ _test_eof68: cs = 68; goto _test_eof;
3374
+ _test_eof69: cs = 69; goto _test_eof;
3375
+ _test_eof70: cs = 70; goto _test_eof;
3376
+ _test_eof71: cs = 71; goto _test_eof;
3377
+ _test_eof72: cs = 72; goto _test_eof;
3378
+ _test_eof73: cs = 73; goto _test_eof;
3379
+ _test_eof74: cs = 74; goto _test_eof;
3380
+ _test_eof75: cs = 75; goto _test_eof;
3381
+ _test_eof76: cs = 76; goto _test_eof;
3382
+ _test_eof77: cs = 77; goto _test_eof;
3383
+ _test_eof78: cs = 78; goto _test_eof;
3384
+ _test_eof79: cs = 79; goto _test_eof;
3385
+ _test_eof80: cs = 80; goto _test_eof;
3386
+ _test_eof81: cs = 81; goto _test_eof;
3387
+ _test_eof82: cs = 82; goto _test_eof;
3388
+ _test_eof83: cs = 83; goto _test_eof;
3389
+ _test_eof84: cs = 84; goto _test_eof;
3390
+ _test_eof85: cs = 85; goto _test_eof;
3391
+ _test_eof86: cs = 86; goto _test_eof;
3392
+ _test_eof122: cs = 122; goto _test_eof;
3393
+ _test_eof123: cs = 123; goto _test_eof;
3394
+ _test_eof124: cs = 124; goto _test_eof;
3395
+ _test_eof125: cs = 125; goto _test_eof;
3396
+ _test_eof126: cs = 126; goto _test_eof;
3397
+
3398
+ _test_eof: {}
3399
+ if ( p == eof )
3400
+ {
3401
+ switch ( cs ) {
3402
+ case 1: goto tr0;
3403
+ case 88: goto tr149;
3404
+ case 2: goto tr0;
3405
+ case 3: goto tr0;
3406
+ case 4: goto tr0;
3407
+ case 5: goto tr0;
3408
+ case 89: goto tr153;
3409
+ case 6: goto tr4;
3410
+ case 90: goto tr154;
3411
+ case 8: goto tr0;
3412
+ case 91: goto tr155;
3413
+ case 9: goto tr0;
3414
+ case 10: goto tr0;
3415
+ case 11: goto tr0;
3416
+ case 12: goto tr0;
3417
+ case 92: goto tr159;
3418
+ case 93: goto tr149;
3419
+ case 14: goto tr0;
3420
+ case 94: goto tr162;
3421
+ case 15: goto tr0;
3422
+ case 16: goto tr0;
3423
+ case 17: goto tr0;
3424
+ case 18: goto tr0;
3425
+ case 20: goto tr0;
3426
+ case 95: goto tr166;
3427
+ case 21: goto tr0;
3428
+ case 22: goto tr0;
3429
+ case 23: goto tr0;
3430
+ case 24: goto tr41;
3431
+ case 25: goto tr0;
3432
+ case 26: goto tr0;
3433
+ case 27: goto tr0;
3434
+ case 28: goto tr0;
3435
+ case 29: goto tr0;
3436
+ case 30: goto tr0;
3437
+ case 31: goto tr0;
3438
+ case 32: goto tr0;
3439
+ case 33: goto tr0;
3440
+ case 34: goto tr0;
3441
+ case 35: goto tr0;
3442
+ case 36: goto tr0;
3443
+ case 37: goto tr0;
3444
+ case 38: goto tr0;
3445
+ case 39: goto tr0;
3446
+ case 40: goto tr0;
3447
+ case 41: goto tr0;
3448
+ case 96: goto tr166;
3449
+ case 97: goto tr173;
3450
+ case 42: goto tr62;
3451
+ case 43: goto tr62;
3452
+ case 98: goto tr166;
3453
+ case 99: goto tr166;
3454
+ case 100: goto tr166;
3455
+ case 101: goto tr166;
3456
+ case 102: goto tr166;
3457
+ case 103: goto tr166;
3458
+ case 104: goto tr173;
3459
+ case 105: goto tr166;
3460
+ case 106: goto tr166;
3461
+ case 107: goto tr166;
3462
+ case 108: goto tr166;
3463
+ case 109: goto tr166;
3464
+ case 110: goto tr192;
3465
+ case 44: goto tr66;
3466
+ case 45: goto tr66;
3467
+ case 46: goto tr66;
3468
+ case 47: goto tr66;
3469
+ case 48: goto tr66;
3470
+ case 49: goto tr66;
3471
+ case 50: goto tr66;
3472
+ case 51: goto tr66;
3473
+ case 111: goto tr166;
3474
+ case 112: goto tr166;
3475
+ case 113: goto tr166;
3476
+ case 114: goto tr166;
3477
+ case 115: goto tr166;
3478
+ case 116: goto tr166;
3479
+ case 117: goto tr166;
3480
+ case 118: goto tr166;
3481
+ case 119: goto tr166;
3482
+ case 120: goto tr200;
3483
+ case 60: goto tr105;
3484
+ case 61: goto tr105;
3485
+ case 121: goto tr200;
3486
+ case 63: goto tr105;
3487
+ case 122: goto tr149;
3488
+ case 123: goto tr149;
3489
+ case 124: goto tr149;
3490
+ case 125: goto tr149;
3491
+ case 126: goto tr149;
3492
+ }
3493
+ }
3494
+
3495
+ _out: {}
3496
+ }
3497
+ #line 111 "hpricot_css.rl"
3498
+
3499
+ rb_gc_unregister_address(&focus);
3500
+ rb_gc_unregister_address(&tmpt);
3501
+ return focus;
3502
+ }