emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: syntax identification (Request for Help)


From: Stefan Monnier
Subject: Re: syntax identification (Request for Help)
Date: Fri, 07 Aug 2015 10:57:51 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux)

> Stefan added comments to omn-mode saying "We could use a
> syntax-propertize-function to do more carefully.". Would anyone be
> willing to help explain to me how this works and help me? I found the
> manual a bit confusing.

You could start by removing the

    (modify-syntax-entry ?\< "|" st)
    (modify-syntax-entry ?\> "|" st)

and using

    (setq-local syntax-propertize-function
                (syntax-propertize-rules
                 ("\\(<\\)[^ ]*\\(>\\)" (1 "|") (2 "|"))))

Guaranteed 100% untested.


        Stefan



reply via email to

[Prev in Thread] Current Thread [Next in Thread]