Revision: 426 Author: eht16 Date: 2006-06-10 07:37:24 -0700 (Sat, 10 Jun 2006) ViewCVS: http://svn.sourceforge.net/geany/?rev=426&view=rev
Log Message: ----------- Added additional patterns to detect configure scripts as Shell scripts
Modified Paths: -------------- trunk/src/filetypes.c Modified: trunk/src/filetypes.c =================================================================== --- trunk/src/filetypes.c 2006-06-08 15:12:55 UTC (rev 425) +++ trunk/src/filetypes.c 2006-06-10 14:37:24 UTC (rev 426) @@ -242,12 +242,15 @@ 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;
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.