From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: f00biebletch Newsgroups: gmane.emacs.help Subject: comment start in cc-mode extension Date: Fri, 30 Jan 2009 19:16:09 -0800 (PST) Organization: http://groups.google.com Message-ID: <44d49dc2-5077-47a0-ba80-7bdc986972dd@v4g2000vbb.googlegroups.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1233377350 11876 80.91.229.12 (31 Jan 2009 04:49:10 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 31 Jan 2009 04:49:10 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Jan 31 05:50:24 2009 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1LT7oF-0003oY-Du for geh-help-gnu-emacs@m.gmane.org; Sat, 31 Jan 2009 05:50:23 +0100 Original-Received: from localhost ([127.0.0.1]:44439 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LT7mx-0006qi-5H for geh-help-gnu-emacs@m.gmane.org; Fri, 30 Jan 2009 23:49:03 -0500 Original-Path: news.stanford.edu!newsfeed.stanford.edu!postnews.google.com!v4g2000vbb.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 21 Original-NNTP-Posting-Host: 76.160.150.36 Original-X-Trace: posting.google.com 1233371769 13425 127.0.0.1 (31 Jan 2009 03:16:09 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Sat, 31 Jan 2009 03:16:09 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: v4g2000vbb.googlegroups.com; posting-host=76.160.150.36; posting-account=sFfdswoAAABWVqLodTvYdNCaM8J_ZUb0 User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.0.5) Gecko/2008121622 Ubuntu/8.10 (intrepid) Firefox/3.0.5, gzip(gfe), gzip(gfe) Original-Xref: news.stanford.edu gnu.emacs.help:166465 X-Mailman-Approved-At: Fri, 30 Jan 2009 23:48:42 -0500 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:61787 Archived-At: 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.