[VW-MODE][COMMITTED] Use syntax-multiline property in pragmatics block
Jose E. Marchesi
jemarch@gnu.org
Mon Apr 21 10:50:27 GMT 2025
---
vw-mode.el | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/vw-mode.el b/vw-mode.el
index 95200cf..b95e088 100644
--- a/vw-mode.el
+++ b/vw-mode.el
@@ -231,7 +231,9 @@
(group (*? anychar))
(group "}"))
(1 "<")
- (3 ">")))
+ (3 ">")
+ (0 (ignore (put-text-property (match-beginning 0) (match-end 0)
+ 'syntax-multiline t)))))
(point) end)))
(defvar vw-mode-syntax-table
@@ -250,6 +252,8 @@
:backward-token #'vw--smie-backward-token)
(setq-local comment-start "{")
(setq-local comment-end "}")
+ (add-hook 'syntax-propertize-extend-region-functions
+ #'syntax-propertize-multiline 'append 'local)
(setq-local syntax-propertize-function #'vw-syntax-propertize-function))
(defun vw--set-comment-invisible-attr (attr)
--
2.30.2
More information about the Algol68
mailing list