[geany/geany] 828df0: Add shebang filetype detection for Rust

SiegeLord git-noreply at xxxxx
Tue Jan 14 17:50:38 UTC 2014


Branch:      refs/heads/master
Author:      SiegeLord <slabode at aim.com>
Committer:   SiegeLord <slabode at aim.com>
Date:        Tue, 14 Jan 2014 17:50:38 UTC
Commit:      828df0ab5fc6a2a25a3b1a524a34c442dc01921f
             https://github.com/geany/geany/commit/828df0ab5fc6a2a25a3b1a524a34c442dc01921f

Log Message:
-----------
Add shebang filetype detection for Rust


Modified Paths:
--------------
    src/filetypes.c

Modified: src/filetypes.c
3 files changed, 2 insertions(+), 1 deletions(-)
===================================================================
@@ -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;



--------------
This E-Mail was brought to you by github_commit_mail.py (Source: https://github.com/geany/infrastructure).


More information about the Commits mailing list