Removed the on_newline XML lexer callback.
This commit is contained in:
1 parent
ead5c71fee
commit
be3f8fb494
2 files changed
+1
-8
No files matched your search
@@ -184,7 +184,7 @@
|
||||
whitespace | '=';
|
||||
|
||||
newline => {
|
||||
callback_simple("on_newline");
|
||||
callback_simple("advance_line");
|
||||
};
|
||||
|
||||
# Attribute names.
|
||||
|
||||
@@ -362,13 +362,6 @@ module Oga
|
||||
def on_attribute(value)
|
||||
add_token(:T_ATTR, value)
|
||||
end
|
||||
|
||||
##
|
||||
# Gee, I wonder when this gets called.
|
||||
#
|
||||
def on_newline
|
||||
@line += 1
|
||||
end
|
||||
end # Lexer
|
||||
end # XML
|
||||
end # Oga
|
||||
Reference in new issue
Block a user