all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: f00biebletch <f00biebletch@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: comment start in cc-mode extension
Date: Fri, 30 Jan 2009 19:16:09 -0800 (PST)	[thread overview]
Message-ID: <44d49dc2-5077-47a0-ba80-7bdc986972dd@v4g2000vbb.googlegroups.com> (raw)

I am trying to write a major mode based on cc-mode for the Fan
programming language and need to support comments starting with "**"
and am having problems.  I've set the following variables to no avail:

(c-lang-defconst c-comment-start-regexp
;  fan "\\(\\(//+\\|/\\*+\\)\\|\\*\\*\\)\\s *")
  fan "\\(//+\\|/\\*+\\)\\|\\*\\*")

(c-lang-defconst c-block-comment-starter fan "**")
(c-lang-defconst c-block-comment-ender   fan "**")

(c-lang-defconst c-comment-start-regexp  fan "\\(//|\\*\\*\\)")
(c-lang-defconst c-block-comment-start-regexp fan "\\(/[*+]|\\*\\*\
\)")

I've also tried fandoc-font-lock-keywords and then adding fandoc to c-
doc-comment-style per the documentation on cc-mode, but that has not
worked either.

I'm pretty incompetent with lisp, and more so with cc-mode, so any
help would be appreciated.


                 reply	other threads:[~2009-01-31  3:16 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=44d49dc2-5077-47a0-ba80-7bdc986972dd@v4g2000vbb.googlegroups.com \
    --to=f00biebletch@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.