Re: [code] Fixes to Prolog and Logtalk lexers in 10.6

From: Mitchell <>
Date: Wed, 18 Sep 2019 18:45:11 -0400 (EDT)

Hi Michael,

On Thu, 19 Sep 2019, Michael Richter wrote:

> That colours the whole line, including the :-, as lexer.PREPROCESSOR. It's
> not a show-stopper (it's the solution I have in place right now, in fact)
> but it looks a bit ugly.
> Is there some trick I could use involving captures maybe?

Sorry, I read one thing you said, but interpreted your provided code in another way. Perhaps you can try:

     token(lexer.DEFAULT, ':-' *^0) *
     token(lexer.PREPROCESSOR, word_match[[foo bar baz]]))


You are subscribed to
To change subscription settings, send an e-mail to
To unsubscribe, send an e-mail to
Received on Wed 18 Sep 2019 - 18:45:11 EDT

This archive was generated by hypermail 2.2.0 : Thu 19 Sep 2019 - 06:47:50 EDT