lib/opulent/parser/node.rb in opulent-1.4.8 vs lib/opulent/parser/node.rb in opulent-1.5.0
- old
+ new
@@ -9,10 +9,10 @@
#
# @param parent [Node] Parent node to which we append the node
#
def node(parent, indent = nil)
if (name = lookahead(:node_lookahead) || lookahead(:shorthand_lookahead))
- return nil if Keywords.include? name[0].to_sym
+ return nil if KEYWORDS.include? name[0].to_sym
# Accept either explicit node_name or implicit :div node_name
# with shorthand attributes
if (node_name = accept :node)
node_name = node_name.to_sym