Add Vala keywords to conf file.

git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4270 ea778897-0a13-0410-b9d1-a72fbfd435f5
This commit is contained in:
Nick Treleaven 2009-09-30 12:10:24 +00:00
parent f8a9f3fb65
commit d83caa6481
3 changed files with 9 additions and 2 deletions

View File

@ -1,3 +1,9 @@
2009-09-30 Nick Treleaven <nick(dot)treleaven(at)btinternet(dot)com>
* src/highlighting.c, data/filetypes.vala:
Add Vala keywords to conf file.
2009-09-29 Nick Treleaven <nick(dot)treleaven(at)btinternet(dot)com>
* src/symbols.c, tagmanager/perl.c:

View File

@ -26,10 +26,10 @@ globalclass=type
[keywords]
# all items must be in one line
#primary=
primary=else if switch case default break continue return for foreach in do while is try catch finally throw namespace interface class struct enum signal errordomain construct callback get set base const static var weak virtual abstract override inline extern public protected private delegate out ref lock using true false null generic new delete base this value typeof sizeof throws requires ensures void bool char uchar int uint short ushort long ulong size_t ssize_t int8 uint8 int16 uint16 int32 uint32 int64 uint64 float double unichar string constpointer time_t
#secondary=
# these are some doxygen keywords (incomplete)
#docComment=attention author brief bug class code date def enum example exception file fn namespace note param remarks return see since struct throw todo typedef var version warning union
docComment=attention author brief bug class code date def enum example exception file fn namespace note param remarks return see since struct throw todo typedef var version warning union
[settings]
# default extension used when saving files

View File

@ -1329,6 +1329,7 @@ static void styleset_markup(ScintillaObject *sci, gboolean set_keywords)
keywords = (set_keywords) ? style_sets[GEANY_FILETYPES_XML].keywords[i] : "";
sci_set_keywords(sci, i, keywords);
}
/* always set SGML keywords */
sci_set_keywords(sci, 5, style_sets[GEANY_FILETYPES_XML].keywords[5]);
set_sci_style(sci, STYLE_DEFAULT, GEANY_FILETYPES_XML, 0);