From: phillip.lord@russet.org.uk (Phillip Lord)
To: Stefan Monnier <monnier@iro.umontreal.ca>
Cc: Phillip Lord <phillip.lord@newcastle.ac.uk>, emacs-devel@gnu.org
Subject: Re: syntax identification (Request for Help)
Date: Tue, 11 Aug 2015 22:33:41 +0100 [thread overview]
Message-ID: <877fp1o6h6.fsf@russet.org.uk> (raw)
In-Reply-To: <jwvsi7vqh9y.fsf-monnier+emacs@gnu.org> (Stefan Monnier's message of "Fri, 7 Aug 2015 10:57:51 -0400")
Stefan Monnier <monnier@iro.umontreal.ca> 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
prev parent reply other threads:[~2015-08-11 21:33 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-08-04 16:49 syntax identification (Request for Help) Phillip Lord
2015-08-07 14:57 ` Stefan Monnier
2015-08-11 21:33 ` Phillip Lord [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=877fp1o6h6.fsf@russet.org.uk \
--to=phillip.lord@russet.org.uk \
--cc=emacs-devel@gnu.org \
--cc=monnier@iro.umontreal.ca \
--cc=phillip.lord@newcastle.ac.uk \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.