<br><br><div class="gmail_quote">On 22 February 2010 19:24, Jon Senior <span dir="ltr"><<a href="mailto:jon@restlesslemon.co.uk">jon@restlesslemon.co.uk</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
On Mon, 22 Feb 2010 08:27:43 +0100<br>
Jon Senior <<a href="mailto:jon@restlesslemon.co.uk">jon@restlesslemon.co.uk</a>> wrote:<br>
> I did notice that when I was tweaking it. I think the capitals are<br>
> probably to blame. Is there anyone who can confirm this?<br>
<br>
OK. A little testing reveals that if the entries in filetypes.r are in<br>
lowercase, then capitalised versions of those keywords will be<br>
correctly highlighted.<br>
<br>
Strangely, this implies that some aspect of the keyword storage is<br>
case-insensitive. To be honest, I'm floundering out of my depth here.<br>
Could someone point me in the direction of the code that loads the<br>
keywords from the filetypes.xxx file. I've found the structures in<br>
Scintilla that hold the keywords, but I'm not sure how they're being<br>
populated. If I can track the process through from start to finish, I<br>
might get a better idea as to what is going on!<br></blockquote><div><br>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.<br>
<br>Cheers<br>Lex<br> </div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<font color="#888888"><br>
Jon<br>
<br>
</font><br>_______________________________________________<br>
Geany-devel mailing list<br>
<a href="mailto:Geany-devel@uvena.de">Geany-devel@uvena.de</a><br>
<a href="http://lists.uvena.de/cgi-bin/mailman/listinfo/geany-devel" target="_blank">http://lists.uvena.de/cgi-bin/mailman/listinfo/geany-devel</a><br>
<br></blockquote></div><br>