Kaydet (Commit) 84fc71ef authored tarafından Enrico Tröger's avatar Enrico Tröger

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
üst c0373413
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> 2006-11-05 Enrico Tröger <enrico.troeger@uvena.de>
* src/sci_cb.c: Fixed (hopefully) wrong indentation in some cases when * src/sci_cb.c: Fixed (hopefully) wrong indentation in some cases when
......
...@@ -22,9 +22,9 @@ commentdockeyword=0xd00000;0xffffff;true;true ...@@ -22,9 +22,9 @@ commentdockeyword=0xd00000;0xffffff;true;true
globalclass=0x0000d0;0xffffff;true;false globalclass=0x0000d0;0xffffff;true;false
[keywords] [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 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 NULL secondary=boolean byte char double float int long null short void
doccomment=return param author doccomment=return param author throws
typedefs= typedefs=
......
...@@ -1132,7 +1132,7 @@ static void styleset_markup(ScintillaObject *sci, gboolean set_keywords) ...@@ -1132,7 +1132,7 @@ static void styleset_markup(ScintillaObject *sci, gboolean set_keywords)
if (style_sets[GEANY_FILETYPES_XML].styling == NULL) styleset_markup_init(); if (style_sets[GEANY_FILETYPES_XML].styling == NULL) styleset_markup_init();
// don't set keywords for plain XML // 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, 0, (sptr_t) style_sets[GEANY_FILETYPES_XML].keywords[0]);
SSM(sci, SCI_SETKEYWORDS, 1, (sptr_t) style_sets[GEANY_FILETYPES_XML].keywords[1]); SSM(sci, SCI_SETKEYWORDS, 1, (sptr_t) style_sets[GEANY_FILETYPES_XML].keywords[1]);
...@@ -1366,9 +1366,9 @@ static void styleset_java_init(void) ...@@ -1366,9 +1366,9 @@ static void styleset_java_init(void)
generic goto if implements import inner instanceof interface \ generic goto if implements import inner instanceof interface \
native new outer package private protected public rest \ native new outer package private protected public rest \
return static super switch synchronized this throw throws \ return static super switch synchronized this throw throws \
transient try var volatile while"); 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 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"); 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, ""); get_keyfile_keywords(config, config_home, "keywords", "typedefs", GEANY_FILETYPES_JAVA, 3, "");
style_sets[GEANY_FILETYPES_JAVA].keywords[4] = NULL; style_sets[GEANY_FILETYPES_JAVA].keywords[4] = NULL;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment