From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "colin.florendo@sybase.com" Newsgroups: gmane.emacs.help Subject: Trouble with quotes in comments for mode derived from sql-mode Date: 19 Jan 2006 06:20:41 -0800 Organization: http://groups.google.com Message-ID: <1137680440.990855.5430@f14g2000cwb.googlegroups.com> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" X-Trace: sea.gmane.org 1137694471 1376 80.91.229.2 (19 Jan 2006 18:14:31 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 19 Jan 2006 18:14:31 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Jan 19 19:14:28 2006 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1EzeGi-0006qV-Nv for geh-help-gnu-emacs@m.gmane.org; Thu, 19 Jan 2006 19:12:21 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EzeJA-0000uV-Hs for geh-help-gnu-emacs@m.gmane.org; Thu, 19 Jan 2006 13:14:52 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!postnews.google.com!f14g2000cwb.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 29 Original-NNTP-Posting-Host: 130.214.17.33 Original-X-Trace: posting.google.com 1137680446 27744 127.0.0.1 (19 Jan 2006 14:20:46 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Thu, 19 Jan 2006 14:20:46 +0000 (UTC) User-Agent: G2/0.2 X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7,gzip(gfe),gzip(gfe) Complaints-To: groups-abuse@google.com Injection-Info: f14g2000cwb.googlegroups.com; posting-host=130.214.17.33; posting-account=ITbbcA0AAAC-aDuk8Bp3RbfBDrrES4np Original-Xref: shelby.stanford.edu gnu.emacs.help:137117 Original-To: help-gnu-emacs@gnu.org 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:32739 Archived-At: Hello, I've written a very simple derived mode 'isq' mode which adds c++ style comments to sql-mode. The problem am having is unbalanced quotes in comments mess up string highlighting. I've seen similar problems in this group but haven't found a solution. Here's my derived mode: (define-derived-mode isq-mode sql-mode "ISQ" "Major mode to edit Sybase ISQ files." (setq indent-tabs-mode nil) (setq comment-start "// ") ) (font-lock-add-keywords 'isq-mode '(("\\(--.*\\|//.*\\)$" (0 'font-lock-comment-face t)))) (add-to-list 'auto-mode-alist '(".isq\\'" . isq-mode)) I'm not sure if this is a shortcoming of sql-mode itself or if I'm missing something. Any help would be appreciated. I'm using gnu emacs 21.1.1 on solaris 2.8 -Colin