We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Given the following code
module Rfmt module Rewriters class AlignEq < Parser::Rewriter def on_begin(node) eq_nodes = [] node.children.each do |child_node| if assignment?(child_node) eq_nodes << child_node elsif eq_nodes.any? align(eq_nodes) eq_nodes = [] end end align(eq_nodes) super end def align(eq_nodes) aligned_column = eq_nodes. map { |node| node.loc.operator.column }. max eq_nodes.each do |node| if(column = node.loc.operator.column) < aligned_column insert_before node.loc.operator, ' ' * (aligned_column - column) end end end end end end
I get the following error:
Search failed. This means there is unmatched expression somewhere or we are at the beginning/end of file.
Issue #514 may be related as well.
Note that this code does use tabs.
The text was updated successfully, but these errors were encountered:
Right, using spaces this parses fine, so I suppose there's some broken regexp somewhere which only uses space and not whitespace.
Sorry, something went wrong.
199006a
[Fix Fuco1#638] Fix ruby pre and post handlers to process tabs properly
9dbef2c
No branches or pull requests
Given the following code
I get the following error:
Issue #514 may be related as well.
Note that this code does use tabs.
The text was updated successfully, but these errors were encountered: