I just noticed a bug: it doesn't fold on opening brace. I am not sure why.


What do you mean? I cannot find this bug.


Well, if I have:
CREATE TABLE foo (
...
);

I should have a fold mark on the line where the opening brace is, but I don't have it..

This works for me. I have a fold mark on the line where opening brace is.

I had problems with SQL*Plus remark and prompt. Philipp's implementation didn't worked for me. So I moved the code into
case SCE_SQL_IDENTIFIER:
...
                sc.GetCurrentLowered(s, sizeof(s));
                if (MatchIgnoreCaseSubstring("rem~ark", s)) {
                    sc.ChangeState(SCE_SQL_SQLPLUS_COMMENT);
                    sc.SetState(SCE_SQL_SQLPLUS_COMMENT);
                    continue;
                } else if (MatchIgnoreCaseSubstring("pro~mpt", s)) {
                    sc.ChangeState(SCE_SQL_SQLPLUS_PROMPT);
                    sc.SetState(SCE_SQL_SQLPLUS_PROMPT);
                    continue;
                } else if (keywords1.InList(s)) {


I must admit I didn't tested this part. I will try your change.

I had to rewrite MatchIgnoreCaseSubstring too. This work for me but I don't like the construct with ChangeState, SetState and continue. Do you know a better solution?


I am not sure to follow you. Why rewrite this function. What works for you? Can you give your code?

I meant the following lines:

sc.ChangeState(SCE_SQL_SQLPLUS_COMMENT);
sc.SetState(SCE_SQL_SQLPLUS_COMMENT);
continue;

I don't like this construct. Is there a better solution?


My new MatchIgnoreCaseSubstring has a string for the second parameter. There was a style context in your version.

_______________________________________________
Scintilla-interest mailing list
[email protected]
http://mailman.lyra.org/mailman/listinfo/scintilla-interest

Reply via email to