Charly Dante
2014-01-25 13:45:17 UTC
Hi,
I have a question regarding the SCI_GETSTYLEAT message in scintilla. I need
this message because I don't wan't to show the autocomplete list inside of
strings or comments. It is working fine, however at the end of the document
it doesn't work as I expect it.
If I have the following code in myx scintilla control:
void myfunction()
{
string s = "
The caret is now at the very last position in the document, namely after
the " char. If I now use SCI_GETSTYLEAT from the current position, it
returns the default value as if there would be normal text - but as the
string isn't closed yet, the last position should be also marked as string,
otherwise my method will bug at the end of the document.
Its also not possible to look at the second last char, because even if it
is a " char, its not possible to say whether it is the string opening char
or the string closing char.
Is it possible to tell Scintilla to detect the style at the end correctly?
Btw, I'm using the standard LUA lexer, if this is important.
Best,
CD
I have a question regarding the SCI_GETSTYLEAT message in scintilla. I need
this message because I don't wan't to show the autocomplete list inside of
strings or comments. It is working fine, however at the end of the document
it doesn't work as I expect it.
If I have the following code in myx scintilla control:
void myfunction()
{
string s = "
The caret is now at the very last position in the document, namely after
the " char. If I now use SCI_GETSTYLEAT from the current position, it
returns the default value as if there would be normal text - but as the
string isn't closed yet, the last position should be also marked as string,
otherwise my method will bug at the end of the document.
Its also not possible to look at the second last char, because even if it
is a " char, its not possible to say whether it is the string opening char
or the string closing char.
Is it possible to tell Scintilla to detect the style at the end correctly?
Btw, I'm using the standard LUA lexer, if this is important.
Best,
CD
--
You received this message because you are subscribed to the Google Groups "scintilla-interest" group.
To unsubscribe from this group and stop receiving emails from it, send an email to scintilla-interest+***@googlegroups.com.
To post to this group, send email to scintilla-***@googlegroups.com.
Visit this group at http://groups.google.com/group/scintilla-interest.
For more options, visit https://groups.google.com/groups/opt_out.
You received this message because you are subscribed to the Google Groups "scintilla-interest" group.
To unsubscribe from this group and stop receiving emails from it, send an email to scintilla-interest+***@googlegroups.com.
To post to this group, send email to scintilla-***@googlegroups.com.
Visit this group at http://groups.google.com/group/scintilla-interest.
For more options, visit https://groups.google.com/groups/opt_out.