all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: nemshilov@gmail.com
To: help-gnu-emacs@gnu.org
Subject: Need help with some changes in c-mode
Date: 16 Feb 2007 22:34:04 -0800	[thread overview]
Message-ID: <1171694044.136703.270700@h3g2000cwc.googlegroups.com> (raw)

Hello there,

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. I do mean that it should be colorized as a string
and behave as a multi-line string. And "EOL" is just an identifier,
it's not necessarily "EOL", it's anything like that "[a-zA-Z]+". And
if it's possible I would like to have the "<<<EOL" and "EOL" markers
to be marked somehow diffrent of the string by itself. Say as a
constant or keyword, I'll choose something later, just I need a hint
there.

The second stuff, I wish to have strings like "#....\n" as single-line
comments. I've allready added it like a comment, but there's a
problem, when I'm typing down something like " # =Synopsis ", I've got
problems with indentation case the "="-symbol handles as some kind of
operation by the c-mode. How can I switch it off?

That's it, Thanks.

             reply	other threads:[~2007-02-17  6:34 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-02-17  6:34 nemshilov [this message]
2007-02-19 19:34 ` Need help with some changes in c-mode Glenn Morris
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

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1171694044.136703.270700@h3g2000cwc.googlegroups.com \
    --to=nemshilov@gmail.com \
    --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.
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.