|
From: | Emanuel Berg |
Subject: | Re: When is a syntax-propertize-function called when parse-sexp-lookup-properties is t for a current buffer? |
Date: | Tue, 05 Oct 2021 06:15:17 +0200 |
User-agent: | Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) |
Pierre Rouleau wrote: > I'm trying to modify the behaviour of erlang.el Oh! Erlang, the 1986 functional programming language from Ericsson for concurrent/distributed real-time high-availability, or massively scalable soft real-time systems ... *buzz* > erlang-mode wrt. the handling of binaries in order to get > forward-sexp and friends to handle << >> pair matching. Maybe start with something simpler and see if you get that to work, and then advance from there ... E.g. from markdown-mode.el (GNU Emacs 29.0.50) (defun markdown-syntax-propertize-blockquotes (start end) "Match blockquotes from START to END." (save-excursion (goto-char start) (while (and (re-search-forward markdown-regex-blockquote end t) (not (markdown-code-block-at-pos (match-beginning 0)))) (put-text-property (match-beginning 0) (match-end 0) 'markdown-blockquote (match-data t))))) -- underground experts united https://dataswamp.org/~incal
[Prev in Thread] | Current Thread | [Next in Thread] |