tenaja | 13 Jun 2012 18:13
Picon
Favicon

What can make SCI_SETLEXER fail?

I have been using a custom "one size fits all" lexer written by a third party, for a custom language. It is
working great. Now I want to add C lexing with Scinitlla's built in lexers, but something in the custom
lexer causes the SCI_SETLEXER command to fail. If I SCI_GETLEXER before, the value is 0, and then I execute
SCI_SETLEXER(SCLEX_CPP), and another GetLexer shows 0 still (should return 3). I tried inserting a
SetLexer(SCLEX_NULL) first, but that also failed.

I searched this list and did not get any hits for "SCI_SETLEXER fail".
Is this common, or expected in certain circumstances? What could cause it?

Thanks much... and thank you, Neil, for a great tool!

--

-- 
You received this message because you are subscribed to the Google Groups "scintilla-interest" group.
To view this discussion on the web visit https://groups.google.com/d/msg/scintilla-interest/-/jA-PrYbRJc0J.
To post to this group, send email to scintilla-interest <at> googlegroups.com.
To unsubscribe from this group, send email to scintilla-interest+unsubscribe <at> googlegroups.com.
For more options, visit this group at http://groups.google.com/group/scintilla-interest?hl=en.

Matthew Brush | 14 Jun 2012 02:11
Picon

Re: What can make SCI_SETLEXER fail?

On 12-06-13 09:13 AM, tenaja wrote:
> I have been using a custom "one size fits all" lexer written by a third party, for a custom language. It is
working great. Now I want to add C lexing with Scinitlla's built in lexers, but something in the custom
lexer causes the SCI_SETLEXER command to fail. If I SCI_GETLEXER before, the value is 0, and then I execute
SCI_SETLEXER(SCLEX_CPP), and another GetLexer shows 0 still (should return 3). I tried inserting a
SetLexer(SCLEX_NULL) first, but that also failed.
>
> I searched this list and did not get any hits for "SCI_SETLEXER fail".
> Is this common, or expected in certain circumstances? What could cause it?
>
> Thanks much... and thank you, Neil, for a great tool!
>

Just a guess, but does your Scintilla have LexCPP.cxx compiled in? Also 
I think you need to define SCI_LEXER or similar at compile time. Some 
ideas anyway :)

Cheers,
Matthew Brush

--

-- 
You received this message because you are subscribed to the Google Groups "scintilla-interest" group.
To post to this group, send email to scintilla-interest <at> googlegroups.com.
To unsubscribe from this group, send email to scintilla-interest+unsubscribe <at> googlegroups.com.
For more options, visit this group at http://groups.google.com/group/scintilla-interest?hl=en.

tenaja | 14 Jun 2012 15:15
Picon
Favicon

Re: What can make SCI_SETLEXER fail?

Thanks for the try. Turns out I needed to load SciLexer.DLL and not Scintilla.DLL.

--
You received this message because you are subscribed to the Google Groups "scintilla-interest" group.
To view this discussion on the web visit https://groups.google.com/d/msg/scintilla-interest/-/lGAGx5ZpfxYJ.
To post to this group, send email to scintilla-interest <at> googlegroups.com.
To unsubscribe from this group, send email to scintilla-interest+unsubscribe <at> googlegroups.com.
For more options, visit this group at http://groups.google.com/group/scintilla-interest?hl=en.

Gmane