From 46d790cdeb8bef4cee5d724fc2cc1a9e24605041 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Enrico=20Tr=C3=B6ger?= Date: Wed, 17 Sep 2008 18:00:37 +0000 Subject: [PATCH] Add missing 'directive' style to filetype CSS (patch from Jason Oster, #2114697, thanks). git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2962 ea778897-0a13-0410-b9d1-a72fbfd435f5 --- ChangeLog | 7 +++++++ data/filetypes.css | 1 + src/highlighting.c | 4 +++- 3 files changed, 11 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 37246946..b06e789e 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2008-09-17 Enrico Tröger + + * data/filetypes.css, src/highlighting.c: + Add missing 'directive' style to filetype CSS + (patch from Jason Oster, #2114697, thanks). + + 2008-09-17 Nick Treleaven * src/callbacks.c, THANKS: diff --git a/data/filetypes.css b/data/filetypes.css index bcca4e0b..059c4613 100644 --- a/data/filetypes.css +++ b/data/filetypes.css @@ -17,6 +17,7 @@ value=0x303030;0xffffff;false;false id=0x7f0000;0xffffff;false;false identifier2=0x6b6bff;0xffffff;false;false important=0xff0000;0xffffff;false;false +directive=0x006bff;0xffffff;false;true [keywords] # CSS 1 keywords diff --git a/src/highlighting.c b/src/highlighting.c index 73c268ef..79562172 100644 --- a/src/highlighting.c +++ b/src/highlighting.c @@ -1888,7 +1888,7 @@ static void styleset_none(ScintillaObject *sci) 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 @@ static void styleset_css_init(gint ft_id, GKeyFile *config, GKeyFile *config_hom 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 @@ static void styleset_css(ScintillaObject *sci) 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); }