]> git.ipfire.org Git - thirdparty/vala.git/commit
libvaladoc: Add support for single line documentation comments
authorMichael James Gratton <mike@vee.net>
Tue, 9 Jan 2018 01:30:50 +0000 (12:30 +1100)
committerRico Tzschichholz <ricotz@ubuntu.com>
Tue, 9 Jan 2018 07:13:08 +0000 (08:13 +0100)
commit45792e40c2acb2f19e3124d2f41632f044c1158d
treec8dff5ce6a03709c4e3e50583e0be730f2c9ea3d
parenta52b4ac85ba48bb334d68976b94448cc66ce6f83
libvaladoc: Add support for single line documentation comments

This is useful for example in annotating properties:

   /** Returns the current state of the frobnocator. */
   public State frob { get; set; };

* libvaladoc/documentation/documentationparser.vala
  (DocumentationParser.init_valadoc_rules): Split Comment rule up into
  single and multi-line versions. Duplication Paragraph creation and
  cleanup for single-line comments.

https://bugzilla.gnome.org/show_bug.cgi?id=736483
libvaladoc/documentation/documentationparser.vala