oga 0.3.2 → 0.3.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -19,11 +19,15 @@ on `ts` and `te`) so the macro ignores this argument.
19
19
  #define advance_line(amount) \
20
20
  rb_funcall(self, id_advance_line, 1, INT2NUM(amount));
21
21
 
22
- #define literal_html_element_p() \
23
- rb_funcall(self, id_literal_html_element_p, 0) == Qtrue
22
+ #define html_script_p() \
23
+ rb_funcall(self, id_html_script_p, 0) == Qtrue
24
+
25
+ #define html_style_p() \
26
+ rb_funcall(self, id_html_style_p, 0) == Qtrue
24
27
 
25
28
  ID id_advance_line;
26
- ID id_literal_html_element_p;
29
+ ID id_html_script_p;
30
+ ID id_html_style_p;
27
31
  ID id_html;
28
32
 
29
33
  %%machine c_lexer;
@@ -183,9 +187,10 @@ void Init_liboga_xml_lexer()
183
187
  VALUE mXML = rb_const_get(mOga, rb_intern("XML"));
184
188
  VALUE cLexer = rb_define_class_under(mXML, "Lexer", rb_cObject);
185
189
 
186
- id_advance_line = rb_intern("advance_line");
187
- id_literal_html_element_p = rb_intern("literal_html_element?");
188
- id_html = rb_intern("html");
190
+ id_advance_line = rb_intern("advance_line");
191
+ id_html_script_p = rb_intern("html_script?");
192
+ id_html_style_p = rb_intern("html_style?");
193
+ id_html = rb_intern("html");
189
194
 
190
195
  rb_define_method(cLexer, "advance_native", oga_xml_lexer_advance, 1);
191
196
  rb_define_method(cLexer, "reset_native", oga_xml_lexer_reset, 0);
@@ -43,20 +43,20 @@ public class Lexer extends RubyObject
43
43
  private static byte[] init__java_lexer_actions_0()
44
44
  {
45
45
  return new byte [] {
46
- 0, 1, 0, 1, 3, 1, 5, 1, 6, 1, 7, 1,
47
- 8, 1, 9, 1, 10, 1, 11, 1, 12, 1, 13, 1,
48
- 14, 1, 15, 1, 16, 1, 17, 1, 18, 1, 19, 1,
49
- 20, 1, 23, 1, 24, 1, 25, 1, 26, 1, 27, 1,
50
- 28, 1, 29, 1, 30, 1, 34, 1, 35, 1, 36, 1,
51
- 37, 1, 38, 1, 39, 1, 40, 1, 41, 1, 42, 1,
52
- 43, 1, 44, 1, 45, 1, 46, 1, 47, 1, 48, 1,
53
- 49, 1, 50, 1, 51, 1, 52, 1, 53, 1, 54, 1,
54
- 56, 1, 57, 1, 58, 1, 61, 1, 62, 1, 63, 1,
55
- 64, 1, 65, 1, 66, 1, 67, 1, 68, 1, 69, 1,
56
- 70, 2, 0, 1, 2, 0, 2, 2, 0, 33, 2, 3,
57
- 4, 2, 6, 0, 2, 6, 21, 2, 6, 22, 2, 6,
58
- 59, 2, 6, 60, 2, 31, 0, 2, 32, 0, 3, 6,
59
- 0, 55
46
+ 0, 1, 0, 1, 2, 1, 3, 1, 4, 1, 5, 1,
47
+ 6, 1, 7, 1, 8, 1, 9, 1, 10, 1, 11, 1,
48
+ 12, 1, 13, 1, 14, 1, 15, 1, 16, 1, 17, 1,
49
+ 18, 1, 21, 1, 22, 1, 23, 1, 24, 1, 25, 1,
50
+ 26, 1, 27, 1, 28, 1, 29, 1, 30, 1, 34, 1,
51
+ 35, 1, 36, 1, 37, 1, 38, 1, 39, 1, 40, 1,
52
+ 41, 1, 42, 1, 43, 1, 44, 1, 45, 1, 46, 1,
53
+ 47, 1, 48, 1, 49, 1, 50, 1, 51, 1, 52, 1,
54
+ 53, 1, 54, 1, 55, 1, 56, 1, 57, 1, 58, 1,
55
+ 59, 1, 60, 1, 61, 1, 64, 1, 65, 1, 66, 1,
56
+ 67, 1, 68, 1, 69, 1, 70, 1, 71, 1, 72, 1,
57
+ 73, 2, 0, 1, 2, 0, 33, 2, 4, 0, 2, 4,
58
+ 19, 2, 4, 20, 2, 4, 62, 2, 4, 63, 2, 31,
59
+ 0, 2, 32, 0
60
60
  };
61
61
  }
62
62
 
@@ -66,13 +66,14 @@ private static final byte _java_lexer_actions[] = init__java_lexer_actions_0();
66
66
  private static short[] init__java_lexer_key_offsets_0()
67
67
  {
68
68
  return new short [] {
69
- 0, 0, 4, 5, 7, 9, 11, 13, 15, 17, 19, 20,
70
- 21, 22, 23, 24, 25, 33, 43, 52, 53, 54, 55, 56,
71
- 67, 69, 77, 86, 95, 96, 97, 98, 99, 100, 101, 102,
72
- 103, 104, 105, 106, 107, 108, 109, 110, 126, 134, 143, 152,
73
- 161, 170, 179, 188, 197, 206, 215, 224, 235, 243, 244, 252,
74
- 261, 270, 279, 281, 296, 297, 306, 307, 308, 319, 330, 331,
75
- 332, 334, 336, 339, 341, 343, 345, 347, 349, 351, 353
69
+ 0, 0, 4, 5, 7, 9, 11, 13, 15, 17, 21, 22,
70
+ 23, 24, 25, 26, 27, 35, 45, 54, 55, 56, 57, 58,
71
+ 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70,
72
+ 81, 85, 93, 102, 111, 112, 113, 114, 115, 116, 117, 118,
73
+ 119, 120, 121, 122, 123, 124, 125, 126, 144, 145, 153, 162,
74
+ 171, 180, 189, 198, 207, 216, 225, 234, 243, 254, 262, 263,
75
+ 271, 280, 289, 298, 300, 313, 314, 323, 324, 325, 326, 337,
76
+ 348, 349, 350, 352, 353, 354, 355, 357
76
77
  };
77
78
  }
78
79
 
@@ -83,35 +84,35 @@ private static char[] init__java_lexer_trans_keys_0()
83
84
  {
84
85
  return new char [] {
85
86
  45, 68, 91, 100, 45, 79, 111, 67, 99, 84, 116, 89,
86
- 121, 80, 112, 69, 101, 9, 32, 67, 68, 65, 84, 65,
87
- 91, 45, 95, 48, 57, 65, 90, 97, 122, 45, 58, 62,
88
- 95, 48, 57, 65, 90, 97, 122, 45, 95, 120, 48, 57,
89
- 65, 90, 97, 122, 62, 62, 62, 60, 33, 45, 47, 63,
90
- 95, 48, 57, 65, 90, 97, 122, 9, 32, 45, 95, 48,
91
- 57, 65, 90, 97, 122, 45, 95, 109, 48, 57, 65, 90,
92
- 97, 122, 45, 95, 108, 48, 57, 65, 90, 97, 122, 45,
93
- 45, 45, 93, 93, 93, 63, 63, 62, 39, 39, 34, 34,
94
- 93, 93, 9, 32, 34, 39, 45, 62, 80, 83, 91, 95,
95
- 48, 57, 65, 90, 97, 122, 45, 95, 48, 57, 65, 90,
96
- 97, 122, 45, 85, 95, 48, 57, 65, 90, 97, 122, 45,
97
- 66, 95, 48, 57, 65, 90, 97, 122, 45, 76, 95, 48,
98
- 57, 65, 90, 97, 122, 45, 73, 95, 48, 57, 65, 90,
99
- 97, 122, 45, 67, 95, 48, 57, 65, 90, 97, 122, 45,
100
- 89, 95, 48, 57, 65, 90, 97, 122, 45, 83, 95, 48,
101
- 57, 65, 90, 97, 122, 45, 84, 95, 48, 57, 65, 90,
102
- 97, 122, 45, 69, 95, 48, 57, 65, 90, 97, 122, 45,
103
- 77, 95, 48, 57, 65, 90, 97, 122, 34, 39, 45, 63,
104
- 95, 48, 57, 65, 90, 97, 122, 45, 95, 48, 57, 65,
105
- 90, 97, 122, 62, 45, 95, 48, 57, 65, 90, 97, 122,
106
- 45, 58, 95, 48, 57, 65, 90, 97, 122, 13, 32, 34,
107
- 39, 96, 9, 10, 60, 62, 13, 32, 34, 39, 96, 9,
108
- 10, 60, 62, 34, 39, 9, 10, 13, 32, 45, 47, 61,
109
- 62, 95, 48, 57, 65, 90, 97, 122, 10, 45, 58, 95,
110
- 48, 57, 65, 90, 97, 122, 60, 60, 33, 45, 60, 63,
111
- 95, 47, 57, 65, 90, 97, 122, 33, 45, 60, 63, 95,
112
- 47, 57, 65, 90, 97, 122, 60, 60, 47, 60, 60, 115,
113
- 60, 99, 116, 60, 114, 60, 105, 60, 112, 60, 116, 60,
114
- 62, 60, 121, 60, 108, 60, 101, 0
87
+ 121, 80, 112, 69, 101, 13, 32, 9, 10, 67, 68, 65,
88
+ 84, 65, 91, 45, 95, 48, 57, 65, 90, 97, 122, 45,
89
+ 58, 62, 95, 48, 57, 65, 90, 97, 122, 45, 95, 120,
90
+ 48, 57, 65, 90, 97, 122, 62, 62, 115, 99, 114, 105,
91
+ 112, 116, 62, 115, 116, 121, 108, 101, 62, 60, 33, 45,
92
+ 47, 63, 95, 48, 57, 65, 90, 97, 122, 13, 32, 9,
93
+ 10, 45, 95, 48, 57, 65, 90, 97, 122, 45, 95, 109,
94
+ 48, 57, 65, 90, 97, 122, 45, 95, 108, 48, 57, 65,
95
+ 90, 97, 122, 45, 45, 45, 93, 93, 93, 63, 63, 62,
96
+ 39, 39, 34, 34, 93, 93, 9, 10, 13, 32, 34, 39,
97
+ 45, 62, 80, 83, 91, 95, 48, 57, 65, 90, 97, 122,
98
+ 10, 45, 95, 48, 57, 65, 90, 97, 122, 45, 85, 95,
99
+ 48, 57, 65, 90, 97, 122, 45, 66, 95, 48, 57, 65,
100
+ 90, 97, 122, 45, 76, 95, 48, 57, 65, 90, 97, 122,
101
+ 45, 73, 95, 48, 57, 65, 90, 97, 122, 45, 67, 95,
102
+ 48, 57, 65, 90, 97, 122, 45, 89, 95, 48, 57, 65,
103
+ 90, 97, 122, 45, 83, 95, 48, 57, 65, 90, 97, 122,
104
+ 45, 84, 95, 48, 57, 65, 90, 97, 122, 45, 69, 95,
105
+ 48, 57, 65, 90, 97, 122, 45, 77, 95, 48, 57, 65,
106
+ 90, 97, 122, 34, 39, 45, 63, 95, 48, 57, 65, 90,
107
+ 97, 122, 45, 95, 48, 57, 65, 90, 97, 122, 62, 45,
108
+ 95, 48, 57, 65, 90, 97, 122, 45, 58, 95, 48, 57,
109
+ 65, 90, 97, 122, 13, 32, 34, 39, 96, 9, 10, 60,
110
+ 62, 13, 32, 34, 39, 96, 9, 10, 60, 62, 34, 39,
111
+ 10, 13, 45, 47, 61, 62, 95, 48, 57, 65, 90, 97,
112
+ 122, 10, 45, 58, 95, 48, 57, 65, 90, 97, 122, 62,
113
+ 60, 60, 33, 45, 60, 63, 95, 47, 57, 65, 90, 97,
114
+ 122, 33, 45, 60, 63, 95, 47, 57, 65, 90, 97, 122,
115
+ 60, 60, 47, 60, 60, 60, 60, 47, 60, 60, 0
115
116
  };
116
117
  }
117
118
 
@@ -122,12 +123,13 @@ private static byte[] init__java_lexer_single_lengths_0()
122
123
  {
123
124
  return new byte [] {
124
125
  0, 4, 1, 2, 2, 2, 2, 2, 2, 2, 1, 1,
125
- 1, 1, 1, 1, 2, 4, 3, 1, 1, 1, 1, 5,
126
+ 1, 1, 1, 1, 2, 4, 3, 1, 1, 1, 1, 1,
127
+ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 5,
126
128
  2, 2, 3, 3, 1, 1, 1, 1, 1, 1, 1, 1,
127
- 1, 1, 1, 1, 1, 1, 1, 10, 2, 3, 3, 3,
128
- 3, 3, 3, 3, 3, 3, 3, 5, 2, 1, 2, 3,
129
- 5, 5, 2, 9, 1, 3, 1, 1, 5, 5, 1, 1,
130
- 2, 2, 3, 2, 2, 2, 2, 2, 2, 2, 2
129
+ 1, 1, 1, 1, 1, 1, 1, 12, 1, 2, 3, 3,
130
+ 3, 3, 3, 3, 3, 3, 3, 3, 5, 2, 1, 2,
131
+ 3, 5, 5, 2, 7, 1, 3, 1, 1, 1, 5, 5,
132
+ 1, 1, 2, 1, 1, 1, 2, 1
131
133
  };
132
134
  }
133
135
 
@@ -137,13 +139,14 @@ private static final byte _java_lexer_single_lengths[] = init__java_lexer_single
137
139
  private static byte[] init__java_lexer_range_lengths_0()
138
140
  {
139
141
  return new byte [] {
140
- 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
141
- 0, 0, 0, 0, 3, 3, 3, 0, 0, 0, 0, 3,
142
- 0, 3, 3, 3, 0, 0, 0, 0, 0, 0, 0, 0,
143
- 0, 0, 0, 0, 0, 0, 0, 3, 3, 3, 3, 3,
144
- 3, 3, 3, 3, 3, 3, 3, 3, 3, 0, 3, 3,
145
- 2, 2, 0, 3, 0, 3, 0, 0, 3, 3, 0, 0,
146
- 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0
142
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0,
143
+ 0, 0, 0, 0, 3, 3, 3, 0, 0, 0, 0, 0,
144
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 3,
145
+ 1, 3, 3, 3, 0, 0, 0, 0, 0, 0, 0, 0,
146
+ 0, 0, 0, 0, 0, 0, 0, 3, 0, 3, 3, 3,
147
+ 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 0, 3,
148
+ 3, 2, 2, 0, 3, 0, 3, 0, 0, 0, 3, 3,
149
+ 0, 0, 0, 0, 0, 0, 0, 0
147
150
  };
148
151
  }
149
152
 
@@ -153,13 +156,14 @@ private static final byte _java_lexer_range_lengths[] = init__java_lexer_range_l
153
156
  private static short[] init__java_lexer_index_offsets_0()
154
157
  {
155
158
  return new short [] {
156
- 0, 0, 5, 7, 10, 13, 16, 19, 22, 25, 28, 30,
157
- 32, 34, 36, 38, 40, 46, 54, 61, 63, 65, 67, 69,
158
- 78, 81, 87, 94, 101, 103, 105, 107, 109, 111, 113, 115,
159
- 117, 119, 121, 123, 125, 127, 129, 131, 145, 151, 158, 165,
160
- 172, 179, 186, 193, 200, 207, 214, 221, 230, 236, 238, 244,
161
- 251, 259, 267, 270, 283, 285, 292, 294, 296, 305, 314, 316,
162
- 318, 321, 324, 328, 331, 334, 337, 340, 343, 346, 349
159
+ 0, 0, 5, 7, 10, 13, 16, 19, 22, 25, 29, 31,
160
+ 33, 35, 37, 39, 41, 47, 55, 62, 64, 66, 68, 70,
161
+ 72, 74, 76, 78, 80, 82, 84, 86, 88, 90, 92, 94,
162
+ 103, 107, 113, 120, 127, 129, 131, 133, 135, 137, 139, 141,
163
+ 143, 145, 147, 149, 151, 153, 155, 157, 173, 175, 181, 188,
164
+ 195, 202, 209, 216, 223, 230, 237, 244, 251, 260, 266, 268,
165
+ 274, 281, 289, 297, 300, 311, 313, 320, 322, 324, 326, 335,
166
+ 344, 346, 348, 351, 353, 355, 357, 360
163
167
  };
164
168
  }
165
169
 
@@ -169,41 +173,43 @@ private static final short _java_lexer_index_offsets[] = init__java_lexer_index_
169
173
  private static byte[] init__java_lexer_trans_targs_0()
170
174
  {
171
175
  return new byte [] {
172
- 2, 3, 10, 3, 22, 22, 22, 4, 4, 22, 5, 5,
173
- 22, 6, 6, 22, 7, 7, 22, 8, 8, 22, 9, 9,
174
- 22, 24, 24, 22, 11, 22, 12, 22, 13, 22, 14, 22,
175
- 15, 22, 22, 22, 17, 17, 17, 17, 17, 22, 17, 16,
176
- 22, 17, 17, 17, 17, 22, 25, 25, 26, 25, 25, 25,
177
- 22, 28, 28, 31, 31, 63, 0, 23, 22, 1, 22, 16,
178
- 18, 22, 22, 22, 22, 22, 24, 24, 22, 25, 25, 25,
179
- 25, 25, 22, 25, 25, 27, 25, 25, 25, 22, 25, 25,
180
- 25, 25, 25, 25, 22, 30, 29, 28, 29, 19, 28, 33,
181
- 32, 31, 32, 20, 31, 36, 35, 34, 35, 34, 34, 37,
182
- 38, 37, 38, 39, 40, 39, 40, 41, 42, 41, 42, 43,
183
- 43, 43, 43, 44, 43, 45, 50, 43, 44, 44, 44, 44,
184
- 0, 44, 44, 44, 44, 44, 43, 44, 46, 44, 44, 44,
185
- 44, 43, 44, 47, 44, 44, 44, 44, 43, 44, 48, 44,
186
- 44, 44, 44, 43, 44, 49, 44, 44, 44, 44, 43, 44,
187
- 44, 44, 44, 44, 44, 43, 44, 51, 44, 44, 44, 44,
188
- 43, 44, 52, 44, 44, 44, 44, 43, 44, 53, 44, 44,
189
- 44, 44, 43, 44, 54, 44, 44, 44, 44, 43, 44, 44,
190
- 44, 44, 44, 44, 43, 55, 55, 56, 57, 56, 56, 56,
191
- 56, 55, 56, 56, 56, 56, 56, 55, 55, 55, 59, 59,
192
- 59, 59, 59, 0, 59, 58, 59, 59, 59, 59, 58, 60,
193
- 60, 60, 60, 60, 60, 60, 61, 60, 60, 60, 60, 60,
194
- 60, 60, 61, 62, 62, 62, 63, 63, 64, 63, 65, 21,
195
- 63, 63, 65, 65, 65, 65, 0, 63, 63, 65, 63, 65,
196
- 65, 65, 65, 63, 69, 67, 68, 67, 66, 66, 68, 66,
197
- 66, 66, 66, 66, 67, 66, 66, 68, 66, 66, 66, 66,
198
- 66, 67, 72, 71, 72, 71, 73, 72, 71, 72, 74, 71,
199
- 72, 75, 80, 71, 72, 76, 71, 72, 77, 71, 72, 78,
200
- 71, 72, 79, 71, 72, 70, 71, 72, 81, 71, 72, 82,
201
- 71, 72, 79, 71, 22, 22, 22, 22, 22, 22, 22, 22,
202
- 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 28, 31,
203
- 22, 22, 22, 22, 22, 28, 28, 31, 31, 34, 34, 37,
204
- 39, 41, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43,
205
- 43, 55, 55, 58, 60, 63, 63, 66, 66, 66, 70, 70,
206
- 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 0
176
+ 2, 3, 10, 3, 34, 34, 34, 4, 4, 34, 5, 5,
177
+ 34, 6, 6, 34, 7, 7, 34, 8, 8, 34, 9, 9,
178
+ 34, 36, 36, 36, 34, 11, 34, 12, 34, 13, 34, 14,
179
+ 34, 15, 34, 34, 34, 17, 17, 17, 17, 17, 34, 17,
180
+ 16, 34, 17, 17, 17, 17, 34, 37, 37, 38, 37, 37,
181
+ 37, 34, 40, 40, 43, 43, 22, 84, 23, 84, 24, 84,
182
+ 25, 84, 26, 84, 27, 84, 84, 84, 29, 88, 30, 88,
183
+ 31, 88, 32, 88, 33, 88, 88, 88, 35, 34, 1, 34,
184
+ 16, 18, 34, 34, 34, 34, 34, 36, 36, 36, 34, 37,
185
+ 37, 37, 37, 37, 34, 37, 37, 39, 37, 37, 37, 34,
186
+ 37, 37, 37, 37, 37, 37, 34, 42, 41, 40, 41, 19,
187
+ 40, 45, 44, 43, 44, 20, 43, 48, 47, 46, 47, 46,
188
+ 46, 49, 50, 49, 50, 51, 52, 51, 52, 53, 54, 53,
189
+ 54, 55, 55, 56, 55, 55, 55, 57, 55, 58, 63, 55,
190
+ 57, 57, 57, 57, 0, 55, 55, 57, 57, 57, 57, 57,
191
+ 55, 57, 59, 57, 57, 57, 57, 55, 57, 60, 57, 57,
192
+ 57, 57, 55, 57, 61, 57, 57, 57, 57, 55, 57, 62,
193
+ 57, 57, 57, 57, 55, 57, 57, 57, 57, 57, 57, 55,
194
+ 57, 64, 57, 57, 57, 57, 55, 57, 65, 57, 57, 57,
195
+ 57, 55, 57, 66, 57, 57, 57, 57, 55, 57, 67, 57,
196
+ 57, 57, 57, 55, 57, 57, 57, 57, 57, 57, 55, 68,
197
+ 68, 69, 70, 69, 69, 69, 69, 68, 69, 69, 69, 69,
198
+ 69, 68, 68, 68, 72, 72, 72, 72, 72, 0, 72, 71,
199
+ 72, 72, 72, 72, 71, 73, 73, 73, 73, 73, 73, 73,
200
+ 74, 73, 73, 73, 73, 73, 73, 73, 74, 75, 75, 75,
201
+ 76, 77, 78, 79, 76, 76, 78, 78, 78, 78, 76, 76,
202
+ 76, 78, 76, 78, 78, 78, 78, 76, 76, 76, 83, 81,
203
+ 82, 81, 80, 80, 82, 80, 80, 80, 80, 80, 81, 80,
204
+ 80, 82, 80, 80, 80, 80, 80, 81, 86, 85, 84, 85,
205
+ 21, 87, 84, 87, 84, 90, 89, 88, 89, 28, 91, 88,
206
+ 91, 88, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34,
207
+ 34, 34, 34, 34, 34, 34, 34, 34, 40, 43, 84, 84,
208
+ 84, 84, 84, 84, 84, 88, 88, 88, 88, 88, 88, 34,
209
+ 34, 34, 34, 34, 40, 40, 43, 43, 46, 46, 49, 51,
210
+ 53, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55,
211
+ 55, 68, 68, 71, 73, 76, 76, 76, 80, 80, 80, 84,
212
+ 84, 84, 88, 88, 88, 0
207
213
  };
208
214
  }
209
215
 
@@ -213,41 +219,43 @@ private static final byte _java_lexer_trans_targs[] = init__java_lexer_trans_tar
213
219
  private static short[] init__java_lexer_trans_actions_0()
214
220
  {
215
221
  return new short [] {
216
- 0, 0, 0, 0, 117, 101, 117, 0, 0, 117, 0, 0,
217
- 117, 0, 0, 117, 0, 0, 117, 0, 0, 117, 0, 0,
218
- 117, 0, 0, 117, 0, 117, 0, 117, 0, 117, 0, 117,
219
- 0, 117, 103, 117, 0, 0, 0, 0, 0, 117, 0, 0,
220
- 107, 0, 0, 0, 0, 117, 145, 145, 0, 145, 145, 145,
221
- 117, 9, 13, 15, 19, 83, 0, 7, 109, 0, 105, 0,
222
- 0, 105, 105, 105, 105, 115, 0, 0, 111, 145, 145, 145,
223
- 145, 145, 119, 145, 145, 0, 145, 145, 145, 113, 145, 145,
224
- 142, 145, 145, 145, 113, 133, 1, 11, 1, 0, 11, 133,
225
- 1, 17, 1, 0, 17, 1, 1, 23, 1, 21, 23, 25,
226
- 1, 27, 1, 29, 1, 31, 1, 33, 1, 35, 1, 43,
227
- 43, 41, 39, 139, 45, 0, 0, 37, 139, 139, 139, 139,
228
- 0, 139, 139, 139, 139, 139, 49, 139, 0, 139, 139, 139,
229
- 139, 47, 139, 0, 139, 139, 139, 139, 47, 139, 0, 139,
230
- 139, 139, 139, 47, 139, 0, 139, 139, 139, 139, 47, 139,
231
- 136, 139, 139, 139, 139, 47, 139, 0, 139, 139, 139, 139,
232
- 47, 139, 0, 139, 139, 139, 139, 47, 139, 0, 139, 139,
233
- 139, 139, 47, 139, 0, 139, 139, 139, 139, 47, 139, 136,
234
- 139, 139, 139, 139, 47, 151, 148, 1, 1, 1, 1, 1,
235
- 1, 127, 0, 0, 0, 0, 0, 53, 51, 55, 0, 0,
236
- 0, 0, 0, 0, 0, 57, 0, 0, 0, 0, 59, 63,
237
- 63, 61, 61, 63, 63, 63, 0, 65, 65, 65, 65, 65,
238
- 65, 65, 0, 69, 67, 71, 73, 75, 0, 73, 0, 0,
239
- 79, 81, 0, 0, 0, 0, 0, 75, 85, 0, 77, 0,
240
- 0, 0, 0, 87, 121, 1, 121, 1, 91, 91, 121, 91,
241
- 91, 91, 91, 91, 1, 89, 89, 121, 89, 89, 89, 89,
242
- 89, 1, 124, 154, 124, 154, 1, 124, 154, 124, 1, 154,
243
- 124, 1, 1, 154, 124, 1, 154, 124, 1, 154, 124, 1,
244
- 154, 124, 1, 154, 124, 95, 154, 124, 1, 154, 124, 1,
245
- 154, 124, 1, 154, 117, 117, 117, 117, 117, 117, 117, 117,
246
- 117, 117, 117, 117, 117, 117, 117, 117, 117, 117, 13, 19,
247
- 115, 111, 119, 113, 113, 11, 11, 17, 17, 23, 23, 27,
248
- 31, 35, 49, 47, 47, 47, 47, 47, 47, 47, 47, 47,
249
- 47, 53, 55, 59, 65, 85, 87, 93, 93, 93, 99, 97,
250
- 97, 97, 97, 97, 97, 97, 97, 97, 97, 97, 0
222
+ 0, 0, 0, 0, 129, 113, 129, 0, 0, 129, 0, 0,
223
+ 129, 0, 0, 129, 0, 0, 129, 0, 0, 129, 0, 0,
224
+ 129, 1, 1, 1, 129, 0, 129, 0, 129, 0, 129, 0,
225
+ 129, 0, 129, 115, 129, 0, 0, 0, 0, 0, 129, 0,
226
+ 0, 119, 0, 0, 0, 0, 129, 151, 151, 0, 151, 151,
227
+ 151, 129, 9, 13, 15, 19, 0, 105, 0, 105, 0, 105,
228
+ 0, 105, 0, 105, 0, 105, 101, 105, 0, 111, 0, 111,
229
+ 0, 111, 0, 111, 0, 111, 107, 111, 7, 121, 0, 117,
230
+ 0, 0, 117, 117, 117, 117, 127, 1, 1, 1, 123, 151,
231
+ 151, 151, 151, 151, 131, 151, 151, 0, 151, 151, 151, 125,
232
+ 151, 151, 148, 151, 151, 151, 125, 139, 1, 11, 1, 0,
233
+ 11, 139, 1, 17, 1, 0, 17, 1, 1, 23, 1, 21,
234
+ 23, 25, 1, 27, 1, 29, 1, 31, 1, 33, 1, 35,
235
+ 1, 47, 45, 0, 47, 41, 39, 145, 43, 0, 0, 37,
236
+ 145, 145, 145, 145, 0, 45, 51, 145, 145, 145, 145, 145,
237
+ 53, 145, 0, 145, 145, 145, 145, 49, 145, 0, 145, 145,
238
+ 145, 145, 49, 145, 0, 145, 145, 145, 145, 49, 145, 0,
239
+ 145, 145, 145, 145, 49, 145, 142, 145, 145, 145, 145, 49,
240
+ 145, 0, 145, 145, 145, 145, 49, 145, 0, 145, 145, 145,
241
+ 145, 49, 145, 0, 145, 145, 145, 145, 49, 145, 0, 145,
242
+ 145, 145, 145, 49, 145, 142, 145, 145, 145, 145, 49, 157,
243
+ 154, 1, 1, 1, 1, 1, 1, 136, 0, 0, 0, 0,
244
+ 0, 57, 55, 59, 0, 0, 0, 0, 0, 0, 0, 61,
245
+ 0, 0, 0, 0, 63, 67, 67, 65, 65, 67, 67, 67,
246
+ 0, 69, 69, 69, 69, 69, 69, 69, 0, 73, 71, 75,
247
+ 77, 0, 0, 0, 81, 83, 0, 0, 0, 0, 87, 77,
248
+ 89, 0, 79, 0, 0, 0, 0, 91, 85, 93, 133, 1,
249
+ 133, 1, 97, 97, 133, 97, 97, 97, 97, 97, 1, 95,
250
+ 95, 133, 95, 95, 95, 95, 95, 1, 139, 1, 103, 1,
251
+ 0, 1, 103, 1, 103, 139, 1, 109, 1, 0, 1, 109,
252
+ 1, 109, 129, 129, 129, 129, 129, 129, 129, 129, 129, 129,
253
+ 129, 129, 129, 129, 129, 129, 129, 129, 13, 19, 105, 105,
254
+ 105, 105, 105, 105, 105, 111, 111, 111, 111, 111, 111, 127,
255
+ 123, 131, 125, 125, 11, 11, 17, 17, 23, 23, 27, 31,
256
+ 35, 51, 53, 49, 49, 49, 49, 49, 49, 49, 49, 49,
257
+ 49, 57, 59, 63, 69, 89, 91, 93, 99, 99, 99, 103,
258
+ 103, 103, 109, 109, 109, 0
251
259
  };
252
260
  }
253
261
 
@@ -257,13 +265,14 @@ private static final short _java_lexer_trans_actions[] = init__java_lexer_trans_
257
265
  private static short[] init__java_lexer_to_state_actions_0()
258
266
  {
259
267
  return new short [] {
268
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
260
269
  0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
261
270
  0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 3, 0,
262
271
  0, 0, 0, 0, 3, 0, 0, 3, 0, 0, 3, 0,
263
272
  0, 3, 0, 3, 0, 3, 0, 3, 0, 0, 0, 0,
264
- 0, 0, 0, 0, 0, 0, 0, 3, 0, 0, 3, 0,
265
- 3, 0, 3, 3, 0, 0, 3, 0, 0, 0, 130, 0,
266
- 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0
273
+ 0, 0, 0, 0, 0, 0, 0, 0, 3, 0, 0, 3,
274
+ 0, 3, 0, 3, 3, 0, 0, 0, 3, 0, 0, 0,
275
+ 3, 0, 0, 0, 3, 0, 0, 0
267
276
  };
268
277
  }
269
278
 
@@ -273,13 +282,14 @@ private static final short _java_lexer_to_state_actions[] = init__java_lexer_to_
273
282
  private static short[] init__java_lexer_from_state_actions_0()
274
283
  {
275
284
  return new short [] {
285
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
276
286
  0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
277
287
  0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 5, 0,
278
288
  0, 0, 0, 0, 5, 0, 0, 5, 0, 0, 5, 0,
279
289
  0, 5, 0, 5, 0, 5, 0, 5, 0, 0, 0, 0,
280
- 0, 0, 0, 0, 0, 0, 0, 5, 0, 0, 5, 0,
281
- 5, 0, 5, 5, 0, 0, 5, 0, 0, 0, 5, 0,
282
- 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0
290
+ 0, 0, 0, 0, 0, 0, 0, 0, 5, 0, 0, 5,
291
+ 0, 5, 0, 5, 5, 0, 0, 0, 5, 0, 0, 0,
292
+ 5, 0, 0, 0, 5, 0, 0, 0
283
293
  };
284
294
  }
285
295
 
@@ -289,38 +299,40 @@ private static final short _java_lexer_from_state_actions[] = init__java_lexer_f
289
299
  private static short[] init__java_lexer_eof_trans_0()
290
300
  {
291
301
  return new short [] {
292
- 0, 370, 370, 370, 370, 370, 370, 370, 370, 370, 370, 370,
293
- 370, 370, 370, 370, 370, 370, 370, 371, 372, 0, 0, 373,
294
- 374, 375, 377, 377, 0, 379, 379, 0, 381, 381, 0, 383,
295
- 383, 0, 384, 0, 385, 0, 386, 0, 387, 397, 397, 397,
296
- 397, 397, 397, 397, 397, 397, 397, 0, 398, 399, 0, 400,
297
- 0, 401, 0, 0, 402, 403, 0, 406, 406, 406, 0, 407,
298
- 418, 418, 418, 418, 418, 418, 418, 418, 418, 418, 418
302
+ 0, 380, 380, 380, 380, 380, 380, 380, 380, 380, 380, 380,
303
+ 380, 380, 380, 380, 380, 380, 380, 381, 382, 389, 389, 389,
304
+ 389, 389, 389, 389, 395, 395, 395, 395, 395, 395, 0, 396,
305
+ 397, 398, 400, 400, 0, 402, 402, 0, 404, 404, 0, 406,
306
+ 406, 0, 407, 0, 408, 0, 409, 0, 410, 411, 421, 421,
307
+ 421, 421, 421, 421, 421, 421, 421, 421, 0, 422, 423, 0,
308
+ 424, 0, 425, 0, 0, 426, 427, 428, 0, 431, 431, 431,
309
+ 0, 434, 434, 434, 0, 437, 437, 437
299
310
  };
300
311
  }
301
312
 
302
313
  private static final short _java_lexer_eof_trans[] = init__java_lexer_eof_trans_0();
303
314
 
304
315
 
305
- static final int java_lexer_start = 22;
306
- static final int java_lexer_first_final = 22;
316
+ static final int java_lexer_start = 34;
317
+ static final int java_lexer_first_final = 34;
307
318
  static final int java_lexer_error = 0;
308
319
 
309
- static final int java_lexer_en_comment_body = 28;
310
- static final int java_lexer_en_cdata_body = 31;
311
- static final int java_lexer_en_proc_ins_body = 34;
312
- static final int java_lexer_en_string_squote = 37;
313
- static final int java_lexer_en_string_dquote = 39;
314
- static final int java_lexer_en_doctype_inline = 41;
315
- static final int java_lexer_en_doctype = 43;
316
- static final int java_lexer_en_xml_decl = 55;
317
- static final int java_lexer_en_element_name = 58;
318
- static final int java_lexer_en_html_attribute_value = 60;
319
- static final int java_lexer_en_xml_attribute_value = 62;
320
- static final int java_lexer_en_element_head = 63;
321
- static final int java_lexer_en_text = 66;
322
- static final int java_lexer_en_literal_html_element = 70;
323
- static final int java_lexer_en_main = 22;
320
+ static final int java_lexer_en_comment_body = 40;
321
+ static final int java_lexer_en_cdata_body = 43;
322
+ static final int java_lexer_en_proc_ins_body = 46;
323
+ static final int java_lexer_en_string_squote = 49;
324
+ static final int java_lexer_en_string_dquote = 51;
325
+ static final int java_lexer_en_doctype_inline = 53;
326
+ static final int java_lexer_en_doctype = 55;
327
+ static final int java_lexer_en_xml_decl = 68;
328
+ static final int java_lexer_en_element_name = 71;
329
+ static final int java_lexer_en_html_attribute_value = 73;
330
+ static final int java_lexer_en_xml_attribute_value = 75;
331
+ static final int java_lexer_en_element_head = 76;
332
+ static final int java_lexer_en_text = 80;
333
+ static final int java_lexer_en_html_script = 84;
334
+ static final int java_lexer_en_html_style = 88;
335
+ static final int java_lexer_en_main = 34;
324
336
 
325
337
 
326
338
  // line 39 "ext/java/org/liboga/xml/Lexer.rl"
@@ -422,7 +434,7 @@ static final int java_lexer_en_main = 22;
422
434
  String id_on_xml_decl_start = "on_xml_decl_start";
423
435
 
424
436
 
425
- // line 426 "ext/java/org/liboga/xml/Lexer.java"
437
+ // line 438 "ext/java/org/liboga/xml/Lexer.java"
426
438
  {
427
439
  int _klen;
428
440
  int _trans = 0;
@@ -447,11 +459,11 @@ case 1:
447
459
  _nacts = (int) _java_lexer_actions[_acts++];
448
460
  while ( _nacts-- > 0 ) {
449
461
  switch ( _java_lexer_actions[_acts++] ) {
450
- case 5:
462
+ case 3:
451
463
  // line 1 "NONE"
452
464
  {ts = p;}
453
465
  break;
454
- // line 455 "ext/java/org/liboga/xml/Lexer.java"
466
+ // line 467 "ext/java/org/liboga/xml/Lexer.java"
455
467
  }
456
468
  }
457
469
 
@@ -515,33 +527,29 @@ case 3:
515
527
  switch ( _java_lexer_actions[_acts++] )
516
528
  {
517
529
  case 0:
518
- // line 51 "ext/ragel/base_lexer.rl"
530
+ // line 56 "ext/ragel/base_lexer.rl"
519
531
  {
520
532
  if ( data[p] == '\n' ) lines++;
521
533
  }
522
534
  break;
523
535
  case 1:
524
- // line 500 "ext/ragel/base_lexer.rl"
525
- { mark = p; }
526
- break;
527
- case 2:
528
- // line 535 "ext/ragel/base_lexer.rl"
536
+ // line 545 "ext/ragel/base_lexer.rl"
529
537
  { mark = p; }
530
538
  break;
531
- case 6:
539
+ case 4:
532
540
  // line 1 "NONE"
533
541
  {te = p+1;}
534
542
  break;
535
- case 7:
536
- // line 92 "ext/ragel/base_lexer.rl"
543
+ case 5:
544
+ // line 102 "ext/ragel/base_lexer.rl"
537
545
  {te = p+1;{
538
546
  callback_simple(id_on_comment_end);
539
547
 
540
- ( this.cs) = 22;
548
+ ( this.cs) = 34;
541
549
  }}
542
550
  break;
543
- case 8:
544
- // line 81 "ext/ragel/base_lexer.rl"
551
+ case 6:
552
+ // line 91 "ext/ragel/base_lexer.rl"
545
553
  {te = p;p--;{
546
554
  callback(id_on_comment_body, data, encoding, ts, te);
547
555
 
@@ -553,8 +561,8 @@ case 3:
553
561
  }
554
562
  }}
555
563
  break;
556
- case 9:
557
- // line 81 "ext/ragel/base_lexer.rl"
564
+ case 7:
565
+ // line 91 "ext/ragel/base_lexer.rl"
558
566
  {{p = ((te))-1;}{
559
567
  callback(id_on_comment_body, data, encoding, ts, te);
560
568
 
@@ -566,16 +574,16 @@ case 3:
566
574
  }
567
575
  }}
568
576
  break;
569
- case 10:
570
- // line 131 "ext/ragel/base_lexer.rl"
577
+ case 8:
578
+ // line 141 "ext/ragel/base_lexer.rl"
571
579
  {te = p+1;{
572
580
  callback_simple(id_on_cdata_end);
573
581
 
574
- ( this.cs) = 22;
582
+ ( this.cs) = 34;
575
583
  }}
576
584
  break;
577
- case 11:
578
- // line 120 "ext/ragel/base_lexer.rl"
585
+ case 9:
586
+ // line 130 "ext/ragel/base_lexer.rl"
579
587
  {te = p;p--;{
580
588
  callback(id_on_cdata_body, data, encoding, ts, te);
581
589
 
@@ -587,8 +595,8 @@ case 3:
587
595
  }
588
596
  }}
589
597
  break;
590
- case 12:
591
- // line 120 "ext/ragel/base_lexer.rl"
598
+ case 10:
599
+ // line 130 "ext/ragel/base_lexer.rl"
592
600
  {{p = ((te))-1;}{
593
601
  callback(id_on_cdata_body, data, encoding, ts, te);
594
602
 
@@ -600,16 +608,16 @@ case 3:
600
608
  }
601
609
  }}
602
610
  break;
603
- case 13:
604
- // line 174 "ext/ragel/base_lexer.rl"
611
+ case 11:
612
+ // line 184 "ext/ragel/base_lexer.rl"
605
613
  {te = p+1;{
606
614
  callback_simple(id_on_proc_ins_end);
607
615
 
608
- ( this.cs) = 22;
616
+ ( this.cs) = 34;
609
617
  }}
610
618
  break;
611
- case 14:
612
- // line 163 "ext/ragel/base_lexer.rl"
619
+ case 12:
620
+ // line 173 "ext/ragel/base_lexer.rl"
613
621
  {te = p;p--;{
614
622
  callback(id_on_proc_ins_body, data, encoding, ts, te);
615
623
 
@@ -621,16 +629,16 @@ case 3:
621
629
  }
622
630
  }}
623
631
  break;
624
- case 15:
625
- // line 216 "ext/ragel/base_lexer.rl"
632
+ case 13:
633
+ // line 226 "ext/ragel/base_lexer.rl"
626
634
  {te = p+1;{
627
635
  callback_simple(id_on_string_squote);
628
636
 
629
637
  {( this.cs) = ( this.stack)[--( this.top)];_goto_targ = 2; if (true) continue _goto;}
630
638
  }}
631
639
  break;
632
- case 16:
633
- // line 190 "ext/ragel/base_lexer.rl"
640
+ case 14:
641
+ // line 200 "ext/ragel/base_lexer.rl"
634
642
  {te = p;p--;{
635
643
  callback(id_on_string_body, data, encoding, ts, te);
636
644
 
@@ -642,16 +650,16 @@ case 3:
642
650
  }
643
651
  }}
644
652
  break;
645
- case 17:
646
- // line 226 "ext/ragel/base_lexer.rl"
653
+ case 15:
654
+ // line 236 "ext/ragel/base_lexer.rl"
647
655
  {te = p+1;{
648
656
  callback_simple(id_on_string_dquote);
649
657
 
650
658
  {( this.cs) = ( this.stack)[--( this.top)];_goto_targ = 2; if (true) continue _goto;}
651
659
  }}
652
660
  break;
653
- case 18:
654
- // line 190 "ext/ragel/base_lexer.rl"
661
+ case 16:
662
+ // line 200 "ext/ragel/base_lexer.rl"
655
663
  {te = p;p--;{
656
664
  callback(id_on_string_body, data, encoding, ts, te);
657
665
 
@@ -663,12 +671,12 @@ case 3:
663
671
  }
664
672
  }}
665
673
  break;
666
- case 19:
667
- // line 263 "ext/ragel/base_lexer.rl"
668
- {te = p+1;{ ( this.cs) = 43; }}
674
+ case 17:
675
+ // line 281 "ext/ragel/base_lexer.rl"
676
+ {te = p+1;{ ( this.cs) = 55; }}
669
677
  break;
670
- case 20:
671
- // line 252 "ext/ragel/base_lexer.rl"
678
+ case 18:
679
+ // line 270 "ext/ragel/base_lexer.rl"
672
680
  {te = p;p--;{
673
681
  callback(id_on_doctype_inline, data, encoding, ts, te);
674
682
 
@@ -680,50 +688,62 @@ case 3:
680
688
  }
681
689
  }}
682
690
  break;
683
- case 21:
684
- // line 269 "ext/ragel/base_lexer.rl"
691
+ case 19:
692
+ // line 287 "ext/ragel/base_lexer.rl"
685
693
  {( this.act) = 13;}
686
694
  break;
687
- case 22:
688
- // line 284 "ext/ragel/base_lexer.rl"
689
- {( this.act) = 18;}
695
+ case 20:
696
+ // line 298 "ext/ragel/base_lexer.rl"
697
+ {( this.act) = 17;}
690
698
  break;
691
- case 23:
692
- // line 274 "ext/ragel/base_lexer.rl"
693
- {te = p+1;{ ( this.cs) = 41; }}
699
+ case 21:
700
+ // line 292 "ext/ragel/base_lexer.rl"
701
+ {te = p+1;{ ( this.cs) = 53; }}
694
702
  break;
695
- case 24:
696
- // line 201 "ext/ragel/base_lexer.rl"
703
+ case 22:
704
+ // line 211 "ext/ragel/base_lexer.rl"
697
705
  {te = p+1;{
698
706
  callback_simple(id_on_string_squote);
699
707
 
700
- {( this.stack)[( this.top)++] = ( this.cs); ( this.cs) = 37; _goto_targ = 2; if (true) continue _goto;}
708
+ {( this.stack)[( this.top)++] = ( this.cs); ( this.cs) = 49; _goto_targ = 2; if (true) continue _goto;}
701
709
  }}
702
710
  break;
703
- case 25:
704
- // line 207 "ext/ragel/base_lexer.rl"
711
+ case 23:
712
+ // line 217 "ext/ragel/base_lexer.rl"
705
713
  {te = p+1;{
706
714
  callback_simple(id_on_string_dquote);
707
715
 
708
- {( this.stack)[( this.top)++] = ( this.cs); ( this.cs) = 39; _goto_targ = 2; if (true) continue _goto;}
716
+ {( this.stack)[( this.top)++] = ( this.cs); ( this.cs) = 51; _goto_targ = 2; if (true) continue _goto;}
717
+ }}
718
+ break;
719
+ case 24:
720
+ // line 302 "ext/ragel/base_lexer.rl"
721
+ {te = p+1;{
722
+ callback_simple(id_on_doctype_end);
723
+ ( this.cs) = 34;
724
+ }}
725
+ break;
726
+ case 25:
727
+ // line 60 "ext/ragel/base_lexer.rl"
728
+ {te = p+1;{
729
+ advance_line(1);
709
730
  }}
710
731
  break;
711
732
  case 26:
712
- // line 282 "ext/ragel/base_lexer.rl"
733
+ // line 309 "ext/ragel/base_lexer.rl"
713
734
  {te = p+1;}
714
735
  break;
715
736
  case 27:
716
- // line 288 "ext/ragel/base_lexer.rl"
717
- {te = p+1;{
718
- callback_simple(id_on_doctype_end);
719
- ( this.cs) = 22;
737
+ // line 298 "ext/ragel/base_lexer.rl"
738
+ {te = p;p--;{
739
+ callback(id_on_doctype_name, data, encoding, ts, te);
720
740
  }}
721
741
  break;
722
742
  case 28:
723
- // line 284 "ext/ragel/base_lexer.rl"
743
+ // line 60 "ext/ragel/base_lexer.rl"
724
744
  {te = p;p--;{
725
- callback(id_on_doctype_name, data, encoding, ts, te);
726
- }}
745
+ advance_line(1);
746
+ }}
727
747
  break;
728
748
  case 29:
729
749
  // line 1 "NONE"
@@ -733,7 +753,7 @@ case 3:
733
753
  callback(id_on_doctype_type, data, encoding, ts, te);
734
754
  }
735
755
  break;
736
- case 18:
756
+ case 17:
737
757
  {{p = ((te))-1;}
738
758
  callback(id_on_doctype_name, data, encoding, ts, te);
739
759
  }
@@ -742,7 +762,7 @@ case 3:
742
762
  }
743
763
  break;
744
764
  case 30:
745
- // line 308 "ext/ragel/base_lexer.rl"
765
+ // line 326 "ext/ragel/base_lexer.rl"
746
766
  {te = p+1;{
747
767
  if ( lines > 0 )
748
768
  {
@@ -753,31 +773,31 @@ case 3:
753
773
 
754
774
  callback_simple(id_on_xml_decl_end);
755
775
 
756
- ( this.cs) = 22;
776
+ ( this.cs) = 34;
757
777
  }}
758
778
  break;
759
779
  case 31:
760
- // line 201 "ext/ragel/base_lexer.rl"
780
+ // line 211 "ext/ragel/base_lexer.rl"
761
781
  {te = p+1;{
762
782
  callback_simple(id_on_string_squote);
763
783
 
764
- {( this.stack)[( this.top)++] = ( this.cs); ( this.cs) = 37; _goto_targ = 2; if (true) continue _goto;}
784
+ {( this.stack)[( this.top)++] = ( this.cs); ( this.cs) = 49; _goto_targ = 2; if (true) continue _goto;}
765
785
  }}
766
786
  break;
767
787
  case 32:
768
- // line 207 "ext/ragel/base_lexer.rl"
788
+ // line 217 "ext/ragel/base_lexer.rl"
769
789
  {te = p+1;{
770
790
  callback_simple(id_on_string_dquote);
771
791
 
772
- {( this.stack)[( this.top)++] = ( this.cs); ( this.cs) = 39; _goto_targ = 2; if (true) continue _goto;}
792
+ {( this.stack)[( this.top)++] = ( this.cs); ( this.cs) = 51; _goto_targ = 2; if (true) continue _goto;}
773
793
  }}
774
794
  break;
775
795
  case 33:
776
- // line 336 "ext/ragel/base_lexer.rl"
796
+ // line 354 "ext/ragel/base_lexer.rl"
777
797
  {te = p+1;}
778
798
  break;
779
799
  case 34:
780
- // line 322 "ext/ragel/base_lexer.rl"
800
+ // line 340 "ext/ragel/base_lexer.rl"
781
801
  {te = p;p--;{
782
802
  if ( lines > 0 )
783
803
  {
@@ -790,38 +810,38 @@ case 3:
790
810
  }}
791
811
  break;
792
812
  case 35:
793
- // line 336 "ext/ragel/base_lexer.rl"
813
+ // line 354 "ext/ragel/base_lexer.rl"
794
814
  {te = p;p--;}
795
815
  break;
796
816
  case 36:
797
- // line 363 "ext/ragel/base_lexer.rl"
817
+ // line 387 "ext/ragel/base_lexer.rl"
798
818
  {te = p+1;{
799
819
  callback(id_on_element_ns, data, encoding, ts, te - 1);
800
820
  }}
801
821
  break;
802
822
  case 37:
803
- // line 367 "ext/ragel/base_lexer.rl"
823
+ // line 391 "ext/ragel/base_lexer.rl"
804
824
  {te = p;p--;{
805
825
  callback(id_on_element_name, data, encoding, ts, te);
806
- ( this.cs) = 63;
826
+ ( this.cs) = 76;
807
827
  }}
808
828
  break;
809
829
  case 38:
810
- // line 387 "ext/ragel/base_lexer.rl"
830
+ // line 406 "ext/ragel/base_lexer.rl"
811
831
  {te = p+1;{
812
832
  p--;
813
- ( this.cs) = 62;
833
+ ( this.cs) = 75;
814
834
  }}
815
835
  break;
816
836
  case 39:
817
- // line 373 "ext/ragel/base_lexer.rl"
837
+ // line 64 "ext/ragel/base_lexer.rl"
818
838
  {te = p+1;{
819
839
  p--;
820
- ( this.cs) = 63;
840
+ {( this.cs) = ( this.stack)[--( this.top)];_goto_targ = 2; if (true) continue _goto;}
821
841
  }}
822
842
  break;
823
843
  case 40:
824
- // line 394 "ext/ragel/base_lexer.rl"
844
+ // line 413 "ext/ragel/base_lexer.rl"
825
845
  {te = p;p--;{
826
846
  callback_simple(id_on_string_squote);
827
847
 
@@ -831,93 +851,101 @@ case 3:
831
851
  }}
832
852
  break;
833
853
  case 41:
834
- // line 201 "ext/ragel/base_lexer.rl"
854
+ // line 429 "ext/ragel/base_lexer.rl"
835
855
  {te = p+1;{
836
- callback_simple(id_on_string_squote);
856
+ callback_simple(id_on_string_squote);
837
857
 
838
- {( this.stack)[( this.top)++] = ( this.cs); ( this.cs) = 37; _goto_targ = 2; if (true) continue _goto;}
839
- }}
858
+ ( this.cs) = 49;
859
+ }}
840
860
  break;
841
861
  case 42:
842
- // line 207 "ext/ragel/base_lexer.rl"
862
+ // line 435 "ext/ragel/base_lexer.rl"
843
863
  {te = p+1;{
844
- callback_simple(id_on_string_dquote);
864
+ callback_simple(id_on_string_dquote);
845
865
 
846
- {( this.stack)[( this.top)++] = ( this.cs); ( this.cs) = 39; _goto_targ = 2; if (true) continue _goto;}
847
- }}
866
+ ( this.cs) = 51;
867
+ }}
848
868
  break;
849
869
  case 43:
850
- // line 373 "ext/ragel/base_lexer.rl"
870
+ // line 64 "ext/ragel/base_lexer.rl"
851
871
  {te = p+1;{
852
872
  p--;
853
- ( this.cs) = 63;
873
+ {( this.cs) = ( this.stack)[--( this.top)];_goto_targ = 2; if (true) continue _goto;}
854
874
  }}
855
875
  break;
856
876
  case 44:
857
- // line 415 "ext/ragel/base_lexer.rl"
858
- {te = p+1;}
859
- break;
860
- case 45:
861
- // line 417 "ext/ragel/base_lexer.rl"
877
+ // line 60 "ext/ragel/base_lexer.rl"
862
878
  {te = p+1;{
863
- callback_simple(id_advance_line);
864
- }}
879
+ advance_line(1);
880
+ }}
865
881
  break;
866
- case 46:
867
- // line 422 "ext/ragel/base_lexer.rl"
882
+ case 45:
883
+ // line 450 "ext/ragel/base_lexer.rl"
868
884
  {te = p+1;{
869
885
  callback(id_on_attribute_ns, data, encoding, ts, te - 1);
870
886
  }}
871
887
  break;
872
- case 47:
873
- // line 431 "ext/ragel/base_lexer.rl"
888
+ case 46:
889
+ // line 459 "ext/ragel/base_lexer.rl"
874
890
  {te = p+1;{
875
891
  if ( html_p )
876
892
  {
877
- ( this.cs) = 60;
893
+ {( this.stack)[( this.top)++] = ( this.cs); ( this.cs) = 73; _goto_targ = 2; if (true) continue _goto;}
878
894
  }
879
895
  else
880
896
  {
881
- ( this.cs) = 62;
897
+ {( this.stack)[( this.top)++] = ( this.cs); ( this.cs) = 75; _goto_targ = 2; if (true) continue _goto;}
882
898
  }
883
899
  }}
884
900
  break;
885
- case 48:
886
- // line 443 "ext/ragel/base_lexer.rl"
901
+ case 47:
902
+ // line 471 "ext/ragel/base_lexer.rl"
887
903
  {te = p+1;{
888
904
  callback_simple(id_on_element_open_end);
889
905
 
890
- if ( literal_html_element_p() )
906
+ if ( html_script_p() )
907
+ {
908
+ ( this.cs) = 84;
909
+ }
910
+ else if ( html_style_p() )
891
911
  {
892
- ( this.cs) = 70;
912
+ ( this.cs) = 88;
893
913
  }
894
914
  else
895
915
  {
896
- ( this.cs) = 22;
916
+ ( this.cs) = 34;
897
917
  }
898
918
  }}
899
919
  break;
900
- case 49:
901
- // line 457 "ext/ragel/base_lexer.rl"
920
+ case 48:
921
+ // line 489 "ext/ragel/base_lexer.rl"
902
922
  {te = p+1;{
903
923
  callback_simple(id_on_element_end);
904
- ( this.cs) = 22;
924
+ ( this.cs) = 34;
905
925
  }}
906
926
  break;
927
+ case 49:
928
+ // line 494 "ext/ragel/base_lexer.rl"
929
+ {te = p+1;}
930
+ break;
907
931
  case 50:
908
- // line 417 "ext/ragel/base_lexer.rl"
932
+ // line 60 "ext/ragel/base_lexer.rl"
909
933
  {te = p;p--;{
910
- callback_simple(id_advance_line);
911
- }}
934
+ advance_line(1);
935
+ }}
912
936
  break;
913
937
  case 51:
914
- // line 426 "ext/ragel/base_lexer.rl"
938
+ // line 454 "ext/ragel/base_lexer.rl"
915
939
  {te = p;p--;{
916
940
  callback(id_on_attribute, data, encoding, ts, te);
917
941
  }}
918
942
  break;
919
943
  case 52:
920
- // line 486 "ext/ragel/base_lexer.rl"
944
+ // line 494 "ext/ragel/base_lexer.rl"
945
+ {te = p;p--;}
946
+ break;
947
+ case 53:
948
+ // line 531 "ext/ragel/base_lexer.rl"
921
949
  {te = p+1;{
922
950
  callback(id_on_text, data, encoding, ts, te);
923
951
 
@@ -928,11 +956,11 @@ case 3:
928
956
  lines = 0;
929
957
  }
930
958
 
931
- ( this.cs) = 22;
959
+ ( this.cs) = 34;
932
960
  }}
933
961
  break;
934
- case 53:
935
- // line 500 "ext/ragel/base_lexer.rl"
962
+ case 54:
963
+ // line 545 "ext/ragel/base_lexer.rl"
936
964
  {te = p+1;{
937
965
  callback(id_on_text, data, encoding, ts, mark);
938
966
 
@@ -946,11 +974,11 @@ case 3:
946
974
  lines = 0;
947
975
  }
948
976
 
949
- ( this.cs) = 22;
977
+ ( this.cs) = 34;
950
978
  }}
951
979
  break;
952
- case 54:
953
- // line 486 "ext/ragel/base_lexer.rl"
980
+ case 55:
981
+ // line 531 "ext/ragel/base_lexer.rl"
954
982
  {te = p;p--;{
955
983
  callback(id_on_text, data, encoding, ts, te);
956
984
 
@@ -961,161 +989,181 @@ case 3:
961
989
  lines = 0;
962
990
  }
963
991
 
964
- ( this.cs) = 22;
992
+ ( this.cs) = 34;
965
993
  }}
966
994
  break;
967
- case 55:
968
- // line 524 "ext/ragel/base_lexer.rl"
969
- {( this.act) = 42;}
970
- break;
971
995
  case 56:
972
- // line 535 "ext/ragel/base_lexer.rl"
996
+ // line 379 "ext/ragel/base_lexer.rl"
973
997
  {te = p+1;{
974
- callback(id_on_text, data, encoding, ts, mark);
975
-
976
- p = mark - 1;
977
- mark = 0;
978
-
979
- if ( lines > 0 )
980
- {
981
- advance_line(lines);
982
-
983
- lines = 0;
984
- }
998
+ callback_simple(id_on_element_end);
985
999
 
986
- ( this.cs) = 22;
987
- }}
1000
+ ( this.cs) = 34;
1001
+ }}
988
1002
  break;
989
1003
  case 57:
990
- // line 524 "ext/ragel/base_lexer.rl"
1004
+ // line 519 "ext/ragel/base_lexer.rl"
991
1005
  {te = p;p--;{
992
- callback(id_on_text, data, encoding, ts, te);
1006
+ callback(id_on_text, data, encoding, ts, te);
993
1007
 
994
- if ( lines > 0 )
995
- {
996
- advance_line(lines);
1008
+ if ( lines > 0 )
1009
+ {
1010
+ advance_line(lines);
997
1011
 
998
- lines = 0;
999
- }
1000
- }}
1012
+ lines = 0;
1013
+ }
1014
+ }}
1001
1015
  break;
1002
1016
  case 58:
1003
- // line 1 "NONE"
1004
- { switch( ( this.act) ) {
1005
- case 0:
1006
- {{( this.cs) = 0; _goto_targ = 2; if (true) continue _goto;}}
1007
- break;
1008
- case 42:
1009
- {{p = ((te))-1;}
1010
- callback(id_on_text, data, encoding, ts, te);
1017
+ // line 519 "ext/ragel/base_lexer.rl"
1018
+ {{p = ((te))-1;}{
1019
+ callback(id_on_text, data, encoding, ts, te);
1011
1020
 
1012
- if ( lines > 0 )
1013
- {
1014
- advance_line(lines);
1021
+ if ( lines > 0 )
1022
+ {
1023
+ advance_line(lines);
1015
1024
 
1016
- lines = 0;
1017
- }
1025
+ lines = 0;
1018
1026
  }
1019
- break;
1020
- }
1021
- }
1027
+ }}
1022
1028
  break;
1023
1029
  case 59:
1024
- // line 301 "ext/ragel/base_lexer.rl"
1025
- {( this.act) = 45;}
1030
+ // line 379 "ext/ragel/base_lexer.rl"
1031
+ {te = p+1;{
1032
+ callback_simple(id_on_element_end);
1033
+
1034
+ ( this.cs) = 34;
1035
+ }}
1026
1036
  break;
1027
1037
  case 60:
1028
- // line 155 "ext/ragel/base_lexer.rl"
1029
- {( this.act) = 48;}
1038
+ // line 519 "ext/ragel/base_lexer.rl"
1039
+ {te = p;p--;{
1040
+ callback(id_on_text, data, encoding, ts, te);
1041
+
1042
+ if ( lines > 0 )
1043
+ {
1044
+ advance_line(lines);
1045
+
1046
+ lines = 0;
1047
+ }
1048
+ }}
1030
1049
  break;
1031
1050
  case 61:
1032
- // line 74 "ext/ragel/base_lexer.rl"
1051
+ // line 519 "ext/ragel/base_lexer.rl"
1052
+ {{p = ((te))-1;}{
1053
+ callback(id_on_text, data, encoding, ts, te);
1054
+
1055
+ if ( lines > 0 )
1056
+ {
1057
+ advance_line(lines);
1058
+
1059
+ lines = 0;
1060
+ }
1061
+ }}
1062
+ break;
1063
+ case 62:
1064
+ // line 319 "ext/ragel/base_lexer.rl"
1065
+ {( this.act) = 48;}
1066
+ break;
1067
+ case 63:
1068
+ // line 165 "ext/ragel/base_lexer.rl"
1069
+ {( this.act) = 51;}
1070
+ break;
1071
+ case 64:
1072
+ // line 84 "ext/ragel/base_lexer.rl"
1033
1073
  {te = p+1;{
1034
1074
  callback_simple(id_on_comment_start);
1035
1075
 
1036
- ( this.cs) = 28;
1076
+ ( this.cs) = 40;
1037
1077
  }}
1038
1078
  break;
1039
- case 62:
1040
- // line 113 "ext/ragel/base_lexer.rl"
1079
+ case 65:
1080
+ // line 123 "ext/ragel/base_lexer.rl"
1041
1081
  {te = p+1;{
1042
1082
  callback_simple(id_on_cdata_start);
1043
1083
 
1044
- ( this.cs) = 31;
1084
+ ( this.cs) = 43;
1045
1085
  }}
1046
1086
  break;
1047
- case 63:
1048
- // line 351 "ext/ragel/base_lexer.rl"
1087
+ case 66:
1088
+ // line 369 "ext/ragel/base_lexer.rl"
1049
1089
  {te = p+1;{
1050
1090
  callback_simple(id_on_element_start);
1051
1091
  p--;
1052
- ( this.cs) = 58;
1092
+ ( this.cs) = 71;
1053
1093
  }}
1054
1094
  break;
1055
- case 64:
1056
- // line 357 "ext/ragel/base_lexer.rl"
1095
+ case 67:
1096
+ // line 375 "ext/ragel/base_lexer.rl"
1057
1097
  {te = p+1;{
1058
1098
  callback_simple(id_on_element_end);
1059
1099
  }}
1060
1100
  break;
1061
- case 65:
1062
- // line 471 "ext/ragel/base_lexer.rl"
1101
+ case 68:
1102
+ // line 505 "ext/ragel/base_lexer.rl"
1063
1103
  {te = p+1;{
1064
1104
  p--;
1065
- ( this.cs) = 66;
1105
+ ( this.cs) = 80;
1066
1106
  }}
1067
1107
  break;
1068
- case 66:
1069
- // line 245 "ext/ragel/base_lexer.rl"
1108
+ case 69:
1109
+ // line 255 "ext/ragel/base_lexer.rl"
1070
1110
  {te = p;p--;{
1071
1111
  callback_simple(id_on_doctype_start);
1072
- ( this.cs) = 43;
1112
+
1113
+ if ( lines > 0 )
1114
+ {
1115
+ advance_line(lines);
1116
+
1117
+ lines = 0;
1118
+ }
1119
+
1120
+ ( this.cs) = 55;
1073
1121
  }}
1074
1122
  break;
1075
- case 67:
1076
- // line 155 "ext/ragel/base_lexer.rl"
1123
+ case 70:
1124
+ // line 165 "ext/ragel/base_lexer.rl"
1077
1125
  {te = p;p--;{
1078
1126
  callback_simple(id_on_proc_ins_start);
1079
1127
  callback(id_on_proc_ins_name, data, encoding, ts + 2, te);
1080
1128
 
1081
- ( this.cs) = 34;
1129
+ ( this.cs) = 46;
1082
1130
  }}
1083
1131
  break;
1084
- case 68:
1085
- // line 471 "ext/ragel/base_lexer.rl"
1132
+ case 71:
1133
+ // line 505 "ext/ragel/base_lexer.rl"
1086
1134
  {te = p;p--;{
1087
1135
  p--;
1088
- ( this.cs) = 66;
1136
+ ( this.cs) = 80;
1089
1137
  }}
1090
1138
  break;
1091
- case 69:
1092
- // line 471 "ext/ragel/base_lexer.rl"
1139
+ case 72:
1140
+ // line 505 "ext/ragel/base_lexer.rl"
1093
1141
  {{p = ((te))-1;}{
1094
1142
  p--;
1095
- ( this.cs) = 66;
1143
+ ( this.cs) = 80;
1096
1144
  }}
1097
1145
  break;
1098
- case 70:
1146
+ case 73:
1099
1147
  // line 1 "NONE"
1100
1148
  { switch( ( this.act) ) {
1101
- case 45:
1149
+ case 48:
1102
1150
  {{p = ((te))-1;}
1103
1151
  callback_simple(id_on_xml_decl_start);
1104
- ( this.cs) = 55;
1152
+ ( this.cs) = 68;
1105
1153
  }
1106
1154
  break;
1107
- case 48:
1155
+ case 51:
1108
1156
  {{p = ((te))-1;}
1109
1157
  callback_simple(id_on_proc_ins_start);
1110
1158
  callback(id_on_proc_ins_name, data, encoding, ts + 2, te);
1111
1159
 
1112
- ( this.cs) = 34;
1160
+ ( this.cs) = 46;
1113
1161
  }
1114
1162
  break;
1115
1163
  }
1116
1164
  }
1117
1165
  break;
1118
- // line 1119 "ext/java/org/liboga/xml/Lexer.java"
1166
+ // line 1167 "ext/java/org/liboga/xml/Lexer.java"
1119
1167
  }
1120
1168
  }
1121
1169
  }
@@ -1125,15 +1173,11 @@ case 2:
1125
1173
  _nacts = (int) _java_lexer_actions[_acts++];
1126
1174
  while ( _nacts-- > 0 ) {
1127
1175
  switch ( _java_lexer_actions[_acts++] ) {
1128
- case 3:
1176
+ case 2:
1129
1177
  // line 1 "NONE"
1130
1178
  {ts = -1;}
1131
1179
  break;
1132
- case 4:
1133
- // line 1 "NONE"
1134
- {( this.act) = 0;}
1135
- break;
1136
- // line 1137 "ext/java/org/liboga/xml/Lexer.java"
1180
+ // line 1181 "ext/java/org/liboga/xml/Lexer.java"
1137
1181
  }
1138
1182
  }
1139
1183
 
@@ -1221,16 +1265,26 @@ case 5:
1221
1265
  }
1222
1266
 
1223
1267
  /**
1224
- * See * Oga::XML::Lexer#literal_html_element? for more information.
1268
+ * @see Oga::XML::Lexer#html_script?
1269
+ */
1270
+ public Boolean html_script_p()
1271
+ {
1272
+ ThreadContext context = this.runtime.getCurrentContext();
1273
+
1274
+ return this.callMethod(context, "html_script?").isTrue();
1275
+ }
1276
+
1277
+ /**
1278
+ * @see Oga::XML::Lexer#html_style?
1225
1279
  */
1226
- public Boolean literal_html_element_p()
1280
+ public Boolean html_style_p()
1227
1281
  {
1228
1282
  ThreadContext context = this.runtime.getCurrentContext();
1229
1283
 
1230
- return this.callMethod(context, "literal_html_element?").isTrue();
1284
+ return this.callMethod(context, "html_style?").isTrue();
1231
1285
  }
1232
1286
  }
1233
1287
 
1234
1288
 
1235
- // line 214 "ext/java/org/liboga/xml/Lexer.rl"
1289
+ // line 224 "ext/java/org/liboga/xml/Lexer.rl"
1236
1290