Revision: 2962 http://geany.svn.sourceforge.net/geany/?rev=2962&view=rev Author: eht16 Date: 2008-09-17 18:00:37 +0000 (Wed, 17 Sep 2008)
Log Message: ----------- Add missing 'directive' style to filetype CSS (patch from Jason Oster, #2114697, thanks).
Modified Paths: -------------- trunk/ChangeLog trunk/data/filetypes.css trunk/src/highlighting.c
Modified: trunk/ChangeLog =================================================================== --- trunk/ChangeLog 2008-09-17 17:01:38 UTC (rev 2961) +++ trunk/ChangeLog 2008-09-17 18:00:37 UTC (rev 2962) @@ -1,3 +1,10 @@ +2008-09-17 Enrico Tröger <enrico(dot)troeger(at)uvena(dot)de> + + * data/filetypes.css, src/highlighting.c: + Add missing 'directive' style to filetype CSS + (patch from Jason Oster, #2114697, thanks). + + 2008-09-17 Nick Treleaven <nick(dot)treleaven(at)btinternet(dot)com>
* src/callbacks.c, THANKS:
Modified: trunk/data/filetypes.css =================================================================== --- trunk/data/filetypes.css 2008-09-17 17:01:38 UTC (rev 2961) +++ trunk/data/filetypes.css 2008-09-17 18:00:37 UTC (rev 2962) @@ -17,6 +17,7 @@ id=0x7f0000;0xffffff;false;false identifier2=0x6b6bff;0xffffff;false;false important=0xff0000;0xffffff;false;false +directive=0x006bff;0xffffff;false;true
[keywords] # CSS 1 keywords
Modified: trunk/src/highlighting.c =================================================================== --- trunk/src/highlighting.c 2008-09-17 17:01:38 UTC (rev 2961) +++ trunk/src/highlighting.c 2008-09-17 18:00:37 UTC (rev 2962) @@ -1888,7 +1888,7 @@
static void styleset_css_init(gint ft_id, GKeyFile *config, GKeyFile *config_home) { - new_style_array(GEANY_FILETYPES_CSS, 16); + new_style_array(GEANY_FILETYPES_CSS, 17); get_keyfile_hex(config, config_home, "styling", "default", "0x003399", "0xffffff", "false", &style_sets[GEANY_FILETYPES_CSS].styling[0]); get_keyfile_hex(config, config_home, "styling", "comment", "0x808080", "0xffffff", "false", &style_sets[GEANY_FILETYPES_CSS].styling[1]); get_keyfile_hex(config, config_home, "styling", "tag", "0x2166a4", "0xffffff", "true", &style_sets[GEANY_FILETYPES_CSS].styling[2]); @@ -1905,6 +1905,7 @@ get_keyfile_hex(config, config_home, "styling", "id", "0x7f0000", "0xffffff", "false", &style_sets[GEANY_FILETYPES_CSS].styling[13]); get_keyfile_hex(config, config_home, "styling", "identifier2", "0x6b6bff", "0xffffff", "false", &style_sets[GEANY_FILETYPES_CSS].styling[14]); get_keyfile_hex(config, config_home, "styling", "important", "0xff0000", "0xffffff", "true", &style_sets[GEANY_FILETYPES_CSS].styling[15]); + get_keyfile_hex(config, config_home, "styling", "directive", "0x006bff", "0xffffff", "false", &style_sets[GEANY_FILETYPES_CSS].styling[16]);
style_sets[GEANY_FILETYPES_CSS].keywords = g_new(gchar*, 4); get_keyfile_keywords(config, config_home, "keywords", "primary", GEANY_FILETYPES_CSS, 0, @@ -1969,6 +1970,7 @@ set_sci_style(sci, SCE_CSS_ID, GEANY_FILETYPES_CSS, 13); set_sci_style(sci, SCE_CSS_IDENTIFIER2, GEANY_FILETYPES_CSS, 14); set_sci_style(sci, SCE_CSS_IMPORTANT, GEANY_FILETYPES_CSS, 15); + set_sci_style(sci, SCE_CSS_DIRECTIVE, GEANY_FILETYPES_CSS, 16); }
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.