[anjuta] indentation-c-style: enable the plugin for Rust files



commit 9e5e8eb4dcfde2749c5c993c379f55b92b99e071
Author: Carl-Anton Ingmarsson <mail carlanton se>
Date:   Tue Jan 21 19:17:55 2014 +0100

    indentation-c-style: enable the plugin for Rust files
    
    https://bugzilla.gnome.org/show_bug.cgi?id=722721

 .../anjuta-indentation-c-style.plugin.in           |    4 ++--
 plugins/indentation-c-style/plugin.c               |    3 ++-
 2 files changed, 4 insertions(+), 3 deletions(-)
---
diff --git a/plugins/indentation-c-style/anjuta-indentation-c-style.plugin.in 
b/plugins/indentation-c-style/anjuta-indentation-c-style.plugin.in
index f74719e..1db2674 100644
--- a/plugins/indentation-c-style/anjuta-indentation-c-style.plugin.in
+++ b/plugins/indentation-c-style/anjuta-indentation-c-style.plugin.in
@@ -7,5 +7,5 @@ Interfaces=IAnjutaLanguageSupport,IAnjutaIndenter
 UserActivatable=no
 
 [Language Support]
-Languages=C,C++,Java,Vala,JavaScript,IDL
-MimeTypes=text/x-c,text/x-java-source,text/x-vala,application/javascript,text/x-idl
+Languages=C,C++,Java,Vala,JavaScript,IDL,Rust
+MimeTypes=text/x-c,text/x-java-source,text/x-vala,application/javascript,text/x-idl,text/x-rust
diff --git a/plugins/indentation-c-style/plugin.c b/plugins/indentation-c-style/plugin.c
index 28acbe9..f734b6e 100644
--- a/plugins/indentation-c-style/plugin.c
+++ b/plugins/indentation-c-style/plugin.c
@@ -90,7 +90,8 @@ language_is_supported (const gchar* language)
              g_str_equal (language, "Vala") ||
              g_str_equal (language, "Java") ||
              g_str_equal (language, "JavaScript") ||
-             g_str_equal (language, "IDL")));
+             g_str_equal (language, "IDL") ||
+             g_str_equal (language, "Rust")));
 }
 
 /* Enable/Disable language-support */


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]