unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* CC-mode comment syntax does not use `<'
@ 2004-05-28 16:55 mj s
  0 siblings, 0 replies; only message in thread
From: mj s @ 2004-05-28 16:55 UTC (permalink / raw)


I was attempting to write a function that would look for the beginning and ending of comments in C files.  I planned on using (skip-syntax-forward "^<") and (skip-syntax-forward "^>") or something similar.  However, the C syntax table of C-h s only defines the C++ endcomment as `>'.  C-style comments are defined as `.' (punctuation).  I did not understand why the CC-mode would not bother to define the comment-start and comment-end syntaxes; the Lisp Mode Syntax has done so.  Is comment syntax deprecated; and if so, what is the currently preferred non-mode-specific method?

Thank you.
-- 
______________________________________________
Check out the latest SMS services @ http://www.linuxmail.org 
This allows you to send and receive SMS through your mailbox.


Powered by Outblaze

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2004-05-28 16:55 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-05-28 16:55 CC-mode comment syntax does not use `<' mj s

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).