Skip to content
This repository was archived by the owner on Jul 31, 2023. It is now read-only.

Fix getEntry regex to handle additional cases - #250

Merged
rebornix merged 1 commit into
rubyide:masterfrom
wingrunr21:fix_highlighting
Jan 25, 2018
Merged

rebornix merged 1 commit into
rubyide:masterfrom
wingrunr21:fix_highlighting

Conversation

@wingrunr21

Copy link
Copy Markdown
Collaborator

This updates the entry regex to handle the uses cases outlined in #234. The original regex did not correctly match on patterns like def foo(params = {}) or bar = if ....

This fixes #234.

It will not handle default arguments being a hash  (eg def foo(params =
{})) as well as other text coming before the entry (eg foo = if …)
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Indentation and detection for end's

2 participants