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

Added additional patterns to detect configure scripts as Shell scripts

git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@426 ea778897-0a13-0410-b9d1-a72fbfd435f5
üst e14cbbae
......@@ -242,12 +242,15 @@ void filetypes_init_types(void)
filetypes[GEANY_FILETYPES_SH]->has_tags = TRUE;
filetypes[GEANY_FILETYPES_SH]->title = g_strdup(_("Shell script file"));
filetypes[GEANY_FILETYPES_SH]->extension = g_strdup("sh");
filetypes[GEANY_FILETYPES_SH]->pattern = g_new0(gchar*, 5);
filetypes[GEANY_FILETYPES_SH]->pattern = g_new0(gchar*, 8);
filetypes[GEANY_FILETYPES_SH]->pattern[0] = g_strdup("*.sh");
filetypes[GEANY_FILETYPES_SH]->pattern[1] = g_strdup("configure");
filetypes[GEANY_FILETYPES_SH]->pattern[2] = g_strdup("*.ksh");
filetypes[GEANY_FILETYPES_SH]->pattern[3] = g_strdup("*.zsh");
filetypes[GEANY_FILETYPES_SH]->pattern[4] = NULL;
filetypes[GEANY_FILETYPES_SH]->pattern[2] = g_strdup("configure.in");
filetypes[GEANY_FILETYPES_SH]->pattern[3] = g_strdup("configure.in.in");
filetypes[GEANY_FILETYPES_SH]->pattern[4] = g_strdup("configure.ac");
filetypes[GEANY_FILETYPES_SH]->pattern[5] = g_strdup("*.ksh");
filetypes[GEANY_FILETYPES_SH]->pattern[6] = g_strdup("*.zsh");
filetypes[GEANY_FILETYPES_SH]->pattern[7] = NULL;
filetypes[GEANY_FILETYPES_SH]->style_func_ptr = styleset_sh;
filetypes[GEANY_FILETYPES_SH]->comment_open = g_strdup("#");
filetypes[GEANY_FILETYPES_SH]->comment_close = 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