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

Add new style "media" for filetype CSS.

git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5007 ea778897-0a13-0410-b9d1-a72fbfd435f5
üst 2cebcd73
...@@ -13,6 +13,8 @@ ...@@ -13,6 +13,8 @@
* wscript, scintilla/Makefile.am, scintilla/makefile.win32, * wscript, scintilla/Makefile.am, scintilla/makefile.win32,
scintilla/LexCrontab.cxx: scintilla/LexCrontab.cxx:
Remove unused Crontab lexer. Remove unused Crontab lexer.
* data/filetypes.css, src/highlighting.c:
Add new style "media" for filetype CSS.
2010-06-04 Nick Treleaven <nick(dot)treleaven(at)btinternet(dot)com> 2010-06-04 Nick Treleaven <nick(dot)treleaven(at)btinternet(dot)com>
......
...@@ -23,6 +23,7 @@ pseudoelement=0x666610;0xffffff;true;true ...@@ -23,6 +23,7 @@ pseudoelement=0x666610;0xffffff;true;true
extended_identifier=0x9090a0;0xffffff;true;false extended_identifier=0x9090a0;0xffffff;true;false
extended_pseudoclass=0x907080;0xffffff;true;true extended_pseudoclass=0x907080;0xffffff;true;true
extended_pseudoelement=0x909080;0xffffff;true;true extended_pseudoelement=0x909080;0xffffff;true;true
media=0x006bff;0xffffff;false;true
[keywords] [keywords]
# CSS 1 properties # CSS 1 properties
......
...@@ -1900,7 +1900,7 @@ static void styleset_default(ScintillaObject *sci, gint ft_id) ...@@ -1900,7 +1900,7 @@ static void styleset_default(ScintillaObject *sci, gint ft_id)
static void styleset_css_init(gint ft_id, GKeyFile *config, GKeyFile *config_home) static void styleset_css_init(gint ft_id, GKeyFile *config, GKeyFile *config_home)
{ {
new_styleset(ft_id, 22); new_styleset(ft_id, 23);
get_keyfile_style(config, config_home, "default", &style_sets[ft_id].styling[0]); get_keyfile_style(config, config_home, "default", &style_sets[ft_id].styling[0]);
get_keyfile_style(config, config_home, "comment", &style_sets[ft_id].styling[1]); get_keyfile_style(config, config_home, "comment", &style_sets[ft_id].styling[1]);
get_keyfile_style(config, config_home, "tag", &style_sets[ft_id].styling[2]); get_keyfile_style(config, config_home, "tag", &style_sets[ft_id].styling[2]);
...@@ -1923,6 +1923,7 @@ static void styleset_css_init(gint ft_id, GKeyFile *config, GKeyFile *config_hom ...@@ -1923,6 +1923,7 @@ static void styleset_css_init(gint ft_id, GKeyFile *config, GKeyFile *config_hom
get_keyfile_style(config, config_home, "extended_identifier", &style_sets[ft_id].styling[19]); get_keyfile_style(config, config_home, "extended_identifier", &style_sets[ft_id].styling[19]);
get_keyfile_style(config, config_home, "extended_pseudoclass", &style_sets[ft_id].styling[20]); get_keyfile_style(config, config_home, "extended_pseudoclass", &style_sets[ft_id].styling[20]);
get_keyfile_style(config, config_home, "extended_pseudoelement", &style_sets[ft_id].styling[21]); get_keyfile_style(config, config_home, "extended_pseudoelement", &style_sets[ft_id].styling[21]);
get_keyfile_style(config, config_home, "media", &style_sets[ft_id].styling[22]);
style_sets[ft_id].keywords = g_new(gchar*, 9); style_sets[ft_id].keywords = g_new(gchar*, 9);
get_keyfile_keywords(config, config_home, "primary", ft_id, 0); get_keyfile_keywords(config, config_home, "primary", ft_id, 0);
...@@ -1971,6 +1972,7 @@ static void styleset_css(ScintillaObject *sci, gint ft_id) ...@@ -1971,6 +1972,7 @@ static void styleset_css(ScintillaObject *sci, gint ft_id)
set_sci_style(sci, SCE_CSS_EXTENDED_IDENTIFIER, ft_id, 19); set_sci_style(sci, SCE_CSS_EXTENDED_IDENTIFIER, ft_id, 19);
set_sci_style(sci, SCE_CSS_EXTENDED_PSEUDOCLASS, ft_id, 20); set_sci_style(sci, SCE_CSS_EXTENDED_PSEUDOCLASS, ft_id, 20);
set_sci_style(sci, SCE_CSS_EXTENDED_PSEUDOELEMENT, ft_id, 21); set_sci_style(sci, SCE_CSS_EXTENDED_PSEUDOELEMENT, ft_id, 21);
set_sci_style(sci, SCE_CSS_MEDIA, ft_id, 22);
} }
......
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