1
<?xml version="1.0" encoding="UTF-8"?>
4
Author: Yevgen Muntyan <muntyan@tamu.edu>
5
Copyright (C) 2006-2007 Yevgen Muntyan <muntyan@tamu.edu>
7
This library is free software; you can redistribute it and/or
8
modify it under the terms of the GNU Library General Public
9
License as published by the Free Software Foundation; either
10
version 2 of the License, or (at your option) any later version.
12
This library is distributed in the hope that it will be useful,
13
but WITHOUT ANY WARRANTY; without even the implied warranty of
14
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15
Library General Public License for more details.
17
You should have received a copy of the GNU Library General Public
18
License along with this library; if not, write to the
19
Free Software Foundation, Inc., 59 Temple Place - Suite 330,
20
Boston, MA 02111-1307, USA.
23
<!-- Copyright (C) 2006-2007 - Yevgen Muntyan <muntyan@tamu.edu> -->
24
<language id="gtk-doc" _name="gtk-doc" version="2.0" _section="Markup" hidden="true">
26
<style id="inline-docs-section" _name="Inline Documentation Section" map-to="def:doc-comment"/>
27
<style id="function-name" _name="Function Name" map-to="def:doc-comment-element"/>
28
<style id="signal-name" _name="Signal Name" map-to="def:doc-comment-element"/>
29
<style id="property-name" _name="Property Name" map-to="def:doc-comment-element"/>
30
<style id="parameter" _name="Parameter" map-to="def:doc-comment-element"/>
31
<style id="constant" _name="Constant" map-to="def:doc-comment-element"/>
32
<style id="type" _name="Type" map-to="def:doc-comment-element"/>
33
<style id="function" _name="Function" map-to="def:doc-comment-element"/>
34
<style id="return" _name="Return" map-to="def:doc-comment-element"/>
35
<style id="since" _name="Since" map-to="def:doc-comment-element"/>
39
<context id="skip-asterisk">
40
<match>^\s*\*(?!/)\s*</match>
43
<context id="inline-docs-body">
45
<context ref="skip-asterisk"/>
46
<context ref="def:in-comment"/>
47
<context style-ref="parameter">
48
<match>\@[\w_]+</match>
50
<context style-ref="constant">
51
<match>%[\w_]+</match>
53
<context style-ref="type">
54
<match>\#[\w_]+</match>
56
<context style-ref="function">
57
<match>[\w_]+\(\s*\)</match>
59
<context style-ref="return">
60
<match>(Returns|Return value)\:</match>
62
<context style-ref="since">
63
<match>Since\:</match>
68
<context id="inline-docs-section" style-ref="inline-docs-section">
69
<start>/\*\*(?!\S)</start>
72
<context ref="skip-asterisk"/>
73
<context extend-parent="false">
74
<start>(([\w_]+\:\:[\w_-]+)|([\w_]+\:[\w_-]+)|([\w_]+))\:?</start>
76
<context sub-pattern="2" where="start" style-ref="function-name"/>
77
<context sub-pattern="3" where="start" style-ref="signal-name"/>
78
<context sub-pattern="4" where="start" style-ref="property-name"/>
79
<context ref="inline-docs-body"/>
82
<context ref="inline-docs-body"/>