Skip to content

Commit

Permalink
Add detection support for various Shell scripts
Browse files Browse the repository at this point in the history
* Add shebang detection of mksh and tcsh.
* Add file extension detection of mksh, tcsh, and the various
"profile" shell scripts.

Closes #126
  • Loading branch information
Ypnose authored and codebrainz committed Aug 15, 2013
1 parent 01b7191 commit b11a3ad
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion data/filetype_extensions.conf
Expand Up @@ -53,7 +53,7 @@ R=*.R;*.r;
Rust=*.rs
Ruby=*.rb;*.rhtml;*.ruby;*.gemspec;Gemfile;rakefile;Rakefile;
Scala=*.scala;*.scl;
Sh=*.sh;configure;configure.in;configure.in.in;configure.ac;*.ksh;*.zsh;*.ash;*.bash;*.m4;
Sh=*.sh;configure;configure.in;configure.in.in;configure.ac;*.ksh;*.mksh;*.zsh;*.ash;*.bash;*.m4;*profile;
SQL=*.sql;
Tcl=*.tcl;*.tk;*.wish;
Txt2tags=*.t2t;
Expand Down
2 changes: 2 additions & 0 deletions src/filetypes.c
Expand Up @@ -925,7 +925,9 @@ static GeanyFiletype *find_shebang(const gchar *utf8_filename, const gchar *line
{ "make", GEANY_FILETYPES_MAKE },
{ "zsh", GEANY_FILETYPES_SH },
{ "ksh", GEANY_FILETYPES_SH },
{ "mksh", GEANY_FILETYPES_SH },
{ "csh", GEANY_FILETYPES_SH },
{ "tcsh", GEANY_FILETYPES_SH },
{ "ash", GEANY_FILETYPES_SH },
{ "dmd", GEANY_FILETYPES_D },
{ "wish", GEANY_FILETYPES_TCL },
Expand Down

0 comments on commit b11a3ad

Please sign in to comment.