Permalink
Browse files

Add shebang filetype detection for Rust

  • Loading branch information...
1 parent 3d7ade4 commit 828df0ab5fc6a2a25a3b1a524a34c442dc01921f @SiegeLord SiegeLord committed Oct 16, 2013
Showing with 2 additions and 1 deletion.
  1. +2 −1 src/filetypes.c
View
@@ -946,7 +946,8 @@ static GeanyFiletype *find_shebang(const gchar *utf8_filename, const gchar *line
{ "ash", GEANY_FILETYPES_SH },
{ "dmd", GEANY_FILETYPES_D },
{ "wish", GEANY_FILETYPES_TCL },
- { "node", GEANY_FILETYPES_JS }
+ { "node", GEANY_FILETYPES_JS },
+ { "rust", GEANY_FILETYPES_RUST }
};
gchar *tmp = g_path_get_basename(line + 2);
gchar *basename_interpreter = tmp;

0 comments on commit 828df0a

Please sign in to comment.