Hi,

Terribly sorry for the long delay, I've been away on vacation till
now.

At 14:29 +0200 on 2006-6-27 Jorgen Schaefer wrote:
 >
 > When the character '0' comes before a close parenthesis ')' on mercury
 > mode, it ignores the close parenthesis at matching.
 > 
 > So, when writting:
 > (predName(0))
 > Emacs will ignore the parenthesis that comes just after 0, reporting a
 > not closed parethesis.
 > 
 > When the character before parenthesis is not '0', like:
 > (predName(0 ))
 > Emacs matches the parentesis correctly.

This is a general problem, does not apply only to Mercury.  The
problem is caused by `prolog-char-quote-workaround' being set
(non-nil, default).  When this variable is set the character 0 is
defined as a quote characrer in order to handle pseudo-correctly the
construct 0'a and the such.  The side effect is that in the construct
0) the parenthesis is in effect quoted.

I know about this problem annd I have no idea how to fix it (help is
appreciated by the way).  I quote the documentation of the variable:
"If non-nil, declare 0 as a quote character so that 0'<char> does not
break syntax highlighting.  This is really kludgy but I have not found
any better way of handling it."

In all, the fix of this bug is to set `prolog-char-quote-workaround'
(customizable variable in the group "Prolog Other") to nil.  This will
break the character escape sequence but I have no idea how to handle
both.

If you have a better idea I would again be extatic to hear it.

Cheers,
Stefan

-- 
If it was so, it might be; and if it were so, it would be; but as
it isn't, it ain't.  That's logic.
    --Lewis Carroll, Through the Looking-Glass



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to