ruby-ts-mode: Fix an out-of-bounds error with heredoc at eob
* lisp/progmodes/ruby-ts-mode.el (ruby-ts--syntax-propertize): Fix an out-of-bounds error with heredoc at eob.
This commit is contained in:
parent
6ea507296a
commit
da2e440462
1 changed files with 3 additions and 2 deletions
|
@ -1063,8 +1063,9 @@ leading double colon is not added."
|
|||
('heredoc
|
||||
(put-text-property (treesit-node-start node) (1+ (treesit-node-start node))
|
||||
'syntax-table (string-to-syntax "\""))
|
||||
(put-text-property (treesit-node-end node) (1+ (treesit-node-end node))
|
||||
'syntax-table (string-to-syntax "\"")))
|
||||
(when (< (treesit-node-end node) (point-max))
|
||||
(put-text-property (treesit-node-end node) (1+ (treesit-node-end node))
|
||||
'syntax-table (string-to-syntax "\""))))
|
||||
('percent
|
||||
;; FIXME: Put the first one on the first paren in both %Q{} and %().
|
||||
;; That would stop electric-pair-mode from pairing, though. Hmm.
|
||||
|
|
Loading…
Add table
Reference in a new issue