Hi Phil

To test the waters I changed the last two lines in lexcpp.cpp

LexerModule lmCPP(SCLEX_CPP, ColouriseCppDocSensitive, "xxcppxx", FoldCppDoc, cppWordLists); LexerModule lmCPPNoCase(SCLEX_CPPNOCASE, ColouriseCppDocInsensitive, "xxcppnocasexx", FoldCppDoc, cppWordLists);

And then execute: mingw32-make clean and mingw32-make install. Then I recompile my source code that uses the QScilexerCpp and the texts are still showing the right syntax highlighting. I was expecting that because I have changed the name returned by the lexer the syntax highlighting will stop working for cpp files. I have checked the time/date of the files:

C:\Qt\2010.05\qt\lib\libqscintilla2.a and qscintilla2.dll

And the time/date match shows that the files have been updated.

I think I'm not noticing something very obvious...

Thanks for your help.

Phil Thompson escribió:
On Mon, 29 Nov 2010 19:18:22 +0100, David Moreno <[email protected]>
wrote:
Hello

I'm trying to write a lexer for INFORM 6. My initial plan was to make a copy of LEXERCPP.cpp and modify it to suit my needs. To make a long story short I think I'm not working with the proper lexer files. In one of my tests I commented all the lexers in src\keywords.cpp (all the LINK_LEXER lines), recompiled it and checked the time of the libqscintilla2.a in my QT installation. When in my source code I open a qscintilla text box using the qscilexerCPP.cpp I can still see the text
properly highlighted (Build clean, Buill All). How can this be possible?

Where are the
lexers located in Qscintilla?

src/Lex*.cpp

Phil


_______________________________________________
QScintilla mailing list
[email protected]
http://www.riverbankcomputing.com/mailman/listinfo/qscintilla

Reply via email to