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

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

Re: outrageous comment syntax


From: Ian Zimmerman
Subject: Re: outrageous comment syntax
Date: Wed, 02 Nov 2005 22:50:25 -0500
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.8) Gecko/20050927 Debian/1.7.8-1sarge3

rgb wrote:
Ian Zimmerman wrote:

comment-start-skip's value is
"\\(\\(^\\|[^\\\\\n]\\)\\(\\\\\\\\\\)*\\);+ *"
Local in buffer simple-haskell.el; global value is nil

Documentation:
*Regexp to match the start of a comment plus everything up to its body.
If there are any \(...\) pairs, the comment delimiter text is held to begin
at the place matched by the close of the first pair.


However, I have a language with two comment syntaxes, one of which
depends on leading context and the other doesn't.  How in the world can
I set this variable properly?  The context must be within the first
group, and it cannot be :-(


When you san "cannot be" I assume you mean that use of shy groups
(?: ...) is insufficient to your needs?


I didn't know Emacs had them.  Thanks for pointing them out to me.


reply via email to

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