Added Java keywords true and false.

Converted "NULL" to lower case.


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@970 ea778897-0a13-0410-b9d1-a72fbfd435f5
This commit is contained in:
Enrico Tröger 2006-11-06 20:56:18 +00:00
parent c037341315
commit 84fc71ef56
3 changed files with 14 additions and 7 deletions

View File

@ -1,3 +1,10 @@
2006-11-06 Enrico Tröger <enrico.troeger@uvena.de>
* data/filetypes.java, src/highlighting.c:
Added Java keywords true and false.
Converted "NULL" to lower case.
2006-11-05 Enrico Tröger <enrico.troeger@uvena.de>
* src/sci_cb.c: Fixed (hopefully) wrong indentation in some cases when

View File

@ -22,9 +22,9 @@ commentdockeyword=0xd00000;0xffffff;true;true
globalclass=0x0000d0;0xffffff;true;false
[keywords]
primary=abstract assert break case catch class const continue default do else extends final finally for future generic goto if implements import inner instanceof interface native new outer package private protected public rest return static super switch synchronized this throw throws transient try var volatile while
secondary=boolean byte char double float int long null short void NULL
doccomment=return param author
primary=abstract assert break case catch class const continue default do else extends final finally for future generic goto if implements import inner instanceof interface native new outer package private protected public rest return static super switch synchronized this throw throws transient try var volatile while true false null
secondary=boolean byte char double float int long null short void
doccomment=return param author throws
typedefs=

View File

@ -1132,7 +1132,7 @@ static void styleset_markup(ScintillaObject *sci, gboolean set_keywords)
if (style_sets[GEANY_FILETYPES_XML].styling == NULL) styleset_markup_init();
// don't set keywords for plain XML
if(set_keywords)
if(set_keywords)
{
SSM(sci, SCI_SETKEYWORDS, 0, (sptr_t) style_sets[GEANY_FILETYPES_XML].keywords[0]);
SSM(sci, SCI_SETKEYWORDS, 1, (sptr_t) style_sets[GEANY_FILETYPES_XML].keywords[1]);
@ -1366,9 +1366,9 @@ static void styleset_java_init(void)
generic goto if implements import inner instanceof interface \
native new outer package private protected public rest \
return static super switch synchronized this throw throws \
transient try var volatile while");
get_keyfile_keywords(config, config_home, "keywords", "secondary", GEANY_FILETYPES_JAVA, 1, "boolean byte char double float int long null short void NULL");
get_keyfile_keywords(config, config_home, "keywords", "doccomment", GEANY_FILETYPES_JAVA, 2, "return param author");
transient try var volatile while true false null");
get_keyfile_keywords(config, config_home, "keywords", "secondary", GEANY_FILETYPES_JAVA, 1, "boolean byte char double float int long null short void");
get_keyfile_keywords(config, config_home, "keywords", "doccomment", GEANY_FILETYPES_JAVA, 2, "return param author throws");
get_keyfile_keywords(config, config_home, "keywords", "typedefs", GEANY_FILETYPES_JAVA, 3, "");
style_sets[GEANY_FILETYPES_JAVA].keywords[4] = NULL;