Re: [code] [scintillua] Line comments?

From: Mitchell <m.att.foicica.com>
Date: Sun, 13 Jul 2014 13:25:30 -0400 (EDT)

Hi,

On Sun, 13 Jul 2014, klo uo wrote:

> Hi,
>
> I use Scintillua lexers with SciTE. At the moment I'm not familiar with
> this API, and thought it would be easier if I just ask for help.
>
> I'm editing ".less" file, and SciTE loads correctly Scintillua "lpeg_less"
> lexer.
>
> "lexers\less.lua" defines line_comment variable which later is stored in
> some table:
>
> ========================================
> local line_comment = token(l.COMMENT, '//' * l.nonnewline^0)
> ========================================
>
> When I instruct SciTE to make a comment I receive this message:
>
> Block comment variable 'comment.block.lpeg_less' is not defined in
> SciTE *.properties!
>
> SciTE has following commands regarding comments:
>
> IDM_BLOCK_COMMENT
> IDM_BOX_COMMENT
> IDM_STREAM_COMMENT
>
> none of which seem to work with "lpeg_less".
>
> I can define "comment.block.lpeg_less" property in some of my properties
> files, but I wounder if there is better way to use already defined property?

You'll have to define "comment.block.lpeg_less". SciTE knows nothing about
Scintillua's lexer definitions.

Cheers,
Mitchell

-- 
You are subscribed to code.att.foicica.com.
To change subscription settings, send an e-mail to code+help.att.foicica.com.
To unsubscribe, send an e-mail to code+unsubscribe.att.foicica.com.
Received on Sun 13 Jul 2014 - 13:25:30 EDT

This archive was generated by hypermail 2.2.0 : Mon 14 Jul 2014 - 06:50:48 EDT