Skip to content

Commit

Permalink
Fix Ruby endless case (#634)
Browse files Browse the repository at this point in the history
Detection of equal sign scope logic was not quite right
  • Loading branch information
facelessuser authored Jul 27, 2024
1 parent 8b6bdb2 commit e2f8630
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# BracketHighlighter

## 2.31.5

- **FIX**: Fix endless Ruby method case.

## 2.31.4

- **FIX**: Fix PHP arrow case that could break bracket highlighting.
Expand Down
2 changes: 1 addition & 1 deletion bh_modules/rubykeywords.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ def validate(view, name, bracket, bracket_side, bfr):

b = bfr[bracket.begin:bracket.end]
if bracket_side == 1 and b.strip() == '=':
if view.match_selector(bracket.begin, 'meta.function.parameters.default-value.ruby, string, comment'):
if view.match_selector(bracket.end, 'meta.function.parameters.default-value.ruby, string, comment'):
return False
view.score_selector
left = max(0, bracket.begin - 1)
Expand Down
2 changes: 1 addition & 1 deletion support.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
import webbrowser
import re

__version__ = "2.31.4"
__version__ = "2.31.5"
__pc_name__ = 'BracketHighlighter'

CSS = '''
Expand Down

0 comments on commit e2f8630

Please sign in to comment.