On 22 February 2010 19:24, Jon Senior jon@restlesslemon.co.uk wrote:
On Mon, 22 Feb 2010 08:27:43 +0100 Jon Senior jon@restlesslemon.co.uk wrote:
I did notice that when I was tweaking it. I think the capitals are probably to blame. Is there anyone who can confirm this?
OK. A little testing reveals that if the entries in filetypes.r are in lowercase, then capitalised versions of those keywords will be correctly highlighted.
Strangely, this implies that some aspect of the keyword storage is case-insensitive. To be honest, I'm floundering out of my depth here. Could someone point me in the direction of the code that loads the keywords from the filetypes.xxx file. I've found the structures in Scintilla that hold the keywords, but I'm not sure how they're being populated. If I can track the process through from start to finish, I might get a better idea as to what is going on!
A quick look at LexR.cxx shows that it converts text that matches an identifier to lower case before searching the keyword list, so as far as the Scintilla lexer is concerned keywords are case insensitive, and the keyword list is expected to be lower case.
Cheers Lex
Jon
Geany-devel mailing list Geany-devel@uvena.de http://lists.uvena.de/cgi-bin/mailman/listinfo/geany-devel