oga 0.2.2 → 0.2.3

Sign up to get free protection for your applications and to get access to all the features.
data/ext/c/lexer.rl CHANGED
@@ -19,11 +19,11 @@ 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 inside_html_script_p() \
23
- rb_funcall(self, id_inside_html_script_p, 0) == Qtrue
22
+ #define literal_html_element_p() \
23
+ rb_funcall(self, id_literal_html_element_p, 0) == Qtrue
24
24
 
25
25
  ID id_advance_line;
26
- ID id_inside_html_script_p;
26
+ ID id_literal_html_element_p;
27
27
 
28
28
  %%machine c_lexer;
29
29
 
@@ -173,8 +173,8 @@ void Init_liboga_xml_lexer()
173
173
  VALUE mXML = rb_const_get(mOga, rb_intern("XML"));
174
174
  VALUE cLexer = rb_define_class_under(mXML, "Lexer", rb_cObject);
175
175
 
176
- id_advance_line = rb_intern("advance_line");
177
- id_inside_html_script_p = rb_intern("inside_html_script?");
176
+ id_advance_line = rb_intern("advance_line");
177
+ id_literal_html_element_p = rb_intern("literal_html_element?");
178
178
 
179
179
  rb_define_method(cLexer, "advance_native", oga_xml_lexer_advance, 1);
180
180
  rb_define_method(cLexer, "reset_native", oga_xml_lexer_reset, 0);