Skip to content

Conversation

@dakennguyen
Copy link
Contributor

Previously on my PR #79, these 3 scenarios are working:

# "if" is not at the start of a line -> end is added
class SomeClass
  if flag
  end 
...

# "if" is right after an equal sign -> end is added
tmp = if flag
      end

# "if" is not after an equal sign -> end is not ended
return "ok" if flag

However, I couldn't handle the case when some of the keywords are at the beginning of a line. Now this PR should do the trick:

# "if" is at the start of a line -> end is added
if flag
end

@windwp windwp merged commit e698fdf into windwp:master Apr 6, 2025
1 check failed
@windwp
Copy link
Owner

windwp commented Apr 6, 2025

thank

@dakennguyen dakennguyen deleted the patch-1 branch April 6, 2025 22:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants