Colomban Wendling
unread,Nov 18, 2016, 10:55:37 AM11/18/16Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to scintilla...@googlegroups.com
Le 18/11/2016 à 08:55, Slv Prometheen a écrit :
> @Colomban Wendling,
> Sorry for disturbing you one again. I discovered the source code
> yesterday and it's hard to find any documentation to describe its logic.
> Would you know where properties are set ?
Properties are defined in each lexer, and in the CPP one it's the
classes OptionSetCPP and OptionsCPP.
> I mean, Lexer is not the main problem as it works for C & C++, so it
> should be a problem when assigning properties to JS, am I right ? If
> it's the case, where is it defined ?
No, you need to alter the lexer so that it understand a new property (a
setting if you will). Then, it's the application's responsibility to
set those properties to the desired value, through the SCI_SETPROPERTY
Scintilla API.
So what you would need to do is:
* add a new property to OptionSetCPP (and OptionsCPP)
* alter LexerCPP::Lex() to check that property and do the appropriate thing
* modify application code/data files to set that property for the
JavaScript language
Regards,
Colomban