lib/hemingway/special/special.rb in hemingway-0.0.2 vs lib/hemingway/special/special.rb in hemingway-0.0.3
- old
+ new
@@ -105,11 +105,22 @@
r9 = nil
end
if r9
r2 = r9
else
- @index = i2
- r2 = nil
+ if has_terminal?("textbackslash{}", false, index)
+ r10 = instantiate_node(SyntaxNode,input, index...(index + 15))
+ @index += 15
+ else
+ terminal_parse_failure("textbackslash{}")
+ r10 = nil
+ end
+ if r10
+ r2 = r10
+ else
+ @index = i2
+ r2 = nil
+ end
end
end
end
end
end
\ No newline at end of file