From: Stefan Monnier <monnier@iro.umontreal.ca>
To: Miles Bader <miles@gnu.org>
Cc: emacs-devel@gnu.org
Subject: Re: good "modern" example code for a programming-language mode?
Date: Tue, 15 Feb 2011 12:43:33 -0500 [thread overview]
Message-ID: <jwv8vxhkxjp.fsf-monnier+emacs@gnu.org> (raw)
In-Reply-To: <AANLkTim1AkmA1qJ=4qpK0g1qAw=d6NHAc74uxzLSM5Fe@mail.gmail.com> (Miles Bader's message of "Tue, 15 Feb 2011 09:11:29 +0000")
> Does anyone have any suggestions for an Emacs programming-language
> mode implementation that makes good use of "modern" Emacs features
> (font-lock, syntax-ppss, etc) to do indentation/syntax-highlighting
> (for a language that has at least somewhat complicated features like
> multiple-line comments with multiple-character comment delimiters),
> etc?
> I'd like to read some code to see how these features are used in practice.
I've used octave-mod.el as a testbed for the new SMIE stuff, so it's
probably worth looking at it. The sad thing is that outline-mod.el
included a lot more to start with, and some of hit has been replaced by
the SMIE features, but not all of it (some more could be removed,
I guess), so it's fairly large and I don't recommend to treat all of
it as a good example.
Maybe a cleaner example for SMIE would be modula2.el since that mode did
not provide any feature (or close enough), so it's still very lean.
Stefan
next prev parent reply other threads:[~2011-02-15 17:43 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-02-15 9:11 good "modern" example code for a programming-language mode? Miles Bader
2011-02-15 17:43 ` Stefan Monnier [this message]
2011-02-16 5:16 ` Miles Bader
2011-02-15 22:22 ` Michael Welsh Duggan
2011-02-16 0:47 ` Miles Bader
2011-02-16 10:19 ` David Engster
2011-02-16 13:59 ` Andy Moreton
2011-02-16 15:00 ` David Kastrup
2011-02-16 14:56 ` Stefan Monnier
2011-02-16 15:54 ` Tassilo Horn
2011-02-16 21:00 ` Stefan Monnier
2011-02-16 16:58 ` David Engster
2011-02-16 21:07 ` Stefan Monnier
2011-02-17 3:42 ` Miles Bader
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
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=jwv8vxhkxjp.fsf-monnier+emacs@gnu.org \
--to=monnier@iro.umontreal.ca \
--cc=emacs-devel@gnu.org \
--cc=miles@gnu.org \
/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 public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).