[gedit-list] classbrowser: support for vala language
- From: Mikael Hermansson <mike tielie gmail com>
- To: gedit-list gnome org
- Subject: [gedit-list] classbrowser: support for vala language
- Date: Mon, 24 Mar 2008 01:42:09 +0100
I have started to use Vala for development/testing.
Here is a very small patch that add support for vala language in gedit
classbrowser plugin.
It just checks the file and force ctags to read it as an C# file.
For those that dont know about Vala language please take a look at
live.gnome.org/Vala this language ROCKS because it creates plan C
GObbject code at the end :-) Someone should create bindings for gedit
too :-)
Greets
Mikael Hermansson
Index: parser_ctags.py
===================================================================
--- parser_ctags.py (revision 48)
+++ parser_ctags.py (working copy)
@@ -86,8 +86,10 @@
# simply replacing blanks is the best variant because both gnomevfs
# and the fs understand it.
arg = arg.replace(" ","\ ")
-
- return self._generate_tagfile(arg,options)
+ if filename.find(".vala") :
+ return self._generate_tagfile(docpath, "-n --language-force=C#")
+ else :
+ return self._generate_tagfile(arg,options)
def _generate_tagfile(self, filestr, options = "-n"):
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]