help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

comment start in cc-mode extension


From: f00biebletch
Subject: comment start in cc-mode extension
Date: Fri, 30 Jan 2009 19:16:09 -0800 (PST)
User-agent: G2/1.0

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 via email to

[Prev in Thread] Current Thread [Next in Thread]