[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: syntax identification (Request for Help)
From: |
Phillip Lord |
Subject: |
Re: syntax identification (Request for Help) |
Date: |
Tue, 11 Aug 2015 22:33:41 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux) |
Stefan Monnier <address@hidden> writes:
>> 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.
I've just tested it and it seems to work pretty well, actually!
Phil