From: Glenn Morris <rgm+news@stanford.edu>
To: help-gnu-emacs@gnu.org
Subject: Re: Need help with some changes in c-mode
Date: Mon, 19 Feb 2007 11:34:19 -0800 [thread overview]
Message-ID: <88zm7a6ix0.fsf@xoc2.stanford.EDU> (raw)
In-Reply-To: 1171694044.136703.270700@h3g2000cwc.googlegroups.com
nemshilov@gmail.com wrote:
> I'm trying to create a custom mode based on the c-mode and there are
> a pair of questions which I cannot figure out by myself.
>
> First, I need to be able to use strings like that
>
> var_a = <<<EOL
> some string inside of it
> EOL;
>
> I with to have all the text between "<<<EOL\n" and "\nEOL;" to be
> marked as a string.
[...]
> The second stuff, I wish to have strings like "#....\n" as single-line
> comments.
>From the information presented, it sounds like you might be better off
basing your mode on sh-mode. Have at look at how sh-script.el handles
here documents (which is what your first construct is, save for an
extra "<"). Look for "heredocs" in the code.
next prev parent reply other threads:[~2007-02-19 19:34 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-02-17 6:34 Need help with some changes in c-mode nemshilov
2007-02-19 19:34 ` Glenn Morris [this message]
2007-02-20 4:03 ` nemshilov
2007-02-20 15:50 ` Robert Thorpe
2007-02-21 3:19 ` MadRabbit
2007-02-21 10:25 ` Robert Thorpe
2007-02-21 13:33 ` MadRabbit
2007-02-21 17:34 ` Robert Thorpe
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=88zm7a6ix0.fsf@xoc2.stanford.EDU \
--to=rgm+news@stanford.edu \
--cc=help-gnu-emacs@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.
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).