all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Trouble with quotes in comments for mode derived from sql-mode
@ 2006-01-19 14:20 colin.florendo
  2006-01-19 21:21 ` albrns
                   ` (3 more replies)
  0 siblings, 4 replies; 7+ messages in thread
From: colin.florendo @ 2006-01-19 14:20 UTC (permalink / raw)


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

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2006-01-25  4:53 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-01-19 14:20 Trouble with quotes in comments for mode derived from sql-mode colin.florendo
2006-01-19 21:21 ` albrns
2006-01-20  9:55 ` Andreas Röhler
2006-01-24 15:03   ` colin.florendo
2006-01-25  4:53     ` Stefan Monnier
2006-01-20 10:42 ` Tim X
2006-01-20 15:05 ` David Hansen

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.