Skip to content

Commit

Permalink
Work around ruby-ts-mode not syntax-propertizing !? method def names
Browse files Browse the repository at this point in the history
Fixes #149
  • Loading branch information
dgutov committed Dec 26, 2024
1 parent d65bafd commit b461e47
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions robe.el
Original file line number Diff line number Diff line change
Expand Up @@ -1170,9 +1170,10 @@ Only works with Rails, see e.g. `rinari-console'."
(* (in " \t"))
"def"
(* (in " \t"))
(optional (+ (in "a-z" "A-Z" ?:)) ?.))
(and method-name (regexp-quote method-name))
(rx symbol-end)))
(optional (+ (in "a-z" "A-Z" ?:)) ?.)
(literal (or method-name ""))
;; For major modes which don't s-p ?! methods.
(or " " "#" "(" "\n" point))))
(block-regexp (rx
(or
(syntax ?w) (syntax ?_) (syntax ?\)) (syntax ?\") (syntax ?|))
Expand Down

0 comments on commit b461e47

Please sign in to comment.