SF.net SVN: geany-plugins:[1327] trunk/geanygendoc/data/filetypes
colombanw at users.sourceforge.net
colombanw at xxxxx
Sat May 1 17:48:47 UTC 2010
Revision: 1327
http://geany-plugins.svn.sourceforge.net/geany-plugins/?rev=1327&view=rev
Author: colombanw
Date: 2010-05-01 17:48:47 +0000 (Sat, 01 May 2010)
Log Message:
-----------
GeanyGenDoc: Add basic rules for Vala
Modified Paths:
--------------
trunk/geanygendoc/data/filetypes/Makefile.am
Added Paths:
-----------
trunk/geanygendoc/data/filetypes/vala.conf
Modified: trunk/geanygendoc/data/filetypes/Makefile.am
===================================================================
--- trunk/geanygendoc/data/filetypes/Makefile.am 2010-05-01 17:48:14 UTC (rev 1326)
+++ trunk/geanygendoc/data/filetypes/Makefile.am 2010-05-01 17:48:47 UTC (rev 1327)
@@ -1,4 +1,5 @@
filetypesdir = $(plugindatadir)/filetypes
-filetypes_DATA = c.conf
+filetypes_DATA = c.conf \
+ vala.conf
EXTRA_DIST = $(filetypes_DATA)
Added: trunk/geanygendoc/data/filetypes/vala.conf
===================================================================
--- trunk/geanygendoc/data/filetypes/vala.conf (rev 0)
+++ trunk/geanygendoc/data/filetypes/vala.conf 2010-05-01 17:48:47 UTC (rev 1327)
@@ -0,0 +1,40 @@
+
+settings = {
+ # [[direction ]type ]arg[...](,|EOL)
+ #
+ # Detailed expression:
+ #function_args=(?:
+ # matches () not to try to extract an argument for it
+ # ^\([ \t]*\)$
+ # |
+ # type or modifier (e.g. "char *", "string?[42]" or "List<string>")
+ # (?:[a-zA-Z0-9_]+[ \t*?]*(?:(?:\\[|<)[a-zA-Z0-9_\[\]*?]*(?:\\]|>))?[ \t*?]+)*
+ # the argument name itself (only capture)
+ # ([a-zA-Z0-9_.]+)
+ # prototype end (e.g. ")", end of (*arg))
+ # (?:[ \t]*\))?
+ # possible white-spaces
+ # [ \t]*
+ # permissive match for post-arg (any shit we didn't thought about)
+ # [^,]*
+ # , or EOL
+ # (?:,|$)
+ # )
+ # note that \ are escaped, so to have a \ you need to put \\
+ match_function_arguments = "(?:^\\([ \t]*\\)$|(?:[a-zA-Z0-9_]+[ \t*?]*(?:(?:\\[|<)[a-zA-Z0-9_\\[\\]*?]*(?:\\]|>))?[ \t*?]+)*([a-zA-Z0-9_.]+)[ \t]*[^,]*(?:,|$))";
+
+ # global env
+ global_environment = "write_since = 0;";
+}
+
+doctypes = {
+ valadoc = {
+ enumval.policy = FORWARD;
+
+ class.template = "/**\n * {cursor}\n{if write_since} * \n * @since \n{end} */\n";
+ field.template = "/**\n * {cursor}\n{if write_since} * \n * @since \n{end} */\n";
+ method.template = "/**\n * {cursor}\n * \n{for arg in argument_list} * @param {arg} {cursor}\n{end}{if returns} * @return {cursor}\n{end}{if write_since} * \n * @since {cursor}\n{end} */\n";
+ enum.template = "/**\n * {cursor}\n * \n{for enumval in enumval_list} * @param {enumval} {cursor}\n{end}{if write_since} * \n * @since {cursor}\n{end} */\n";
+ }
+}
+
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the Plugins-Commits
mailing list