This file is indexed.

/usr/share/gedit/plugins/snippets/c.xml is in gedit-common 3.4.1-0ubuntu1.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
<?xml version="1.0" encoding="UTF-8"?>
<snippets language="C">
  <snippet id="gpl">
    <text><![CDATA[/*
 * ${1:[$GEDIT_CURRENT_DOCUMENT_NAME,<filename>]}
 * This file is part of ${2:<program name>}
 *
 * Copyright (C) $<3: import datetime; return str(datetime.date.today().year)> - $<4:
import pwd, os
try:
  return pwd.getpwuid(os.getuid()).pw_gecos.split(',')[0]
except KeyError:
  return '<author\>' >
 *
 * ${2} is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 2 of the License, or
 * (at your option) any later version.
 *
 * ${2} is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with ${2}. If not, see <http://www.gnu.org/licenses/>.
 */

$0]]></text>
    <tag>gpl</tag>
    <description>GPL License</description>
  </snippet>
  <snippet id="lgpl">
    <text><![CDATA[/*
 * ${1:[$GEDIT_CURRENT_DOCUMENT_NAME,<filename>]}
 * This file is part of ${2:<library name>}
 *
 * Copyright (C) $<3: import datetime; return str(datetime.date.today().year)> - $<4:
import pwd, os
try:
  return pwd.getpwuid(os.getuid()).pw_gecos.split(',')[0]
except KeyError:
  return '<author\>' >
 *
 * ${2} is free software; you can redistribute it and/or
 * modify it under the terms of the GNU Lesser General Public
 * License as published by the Free Software Foundation; either
 * version 2.1 of the License, or (at your option) any later version.
 *
 * ${2} is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 * Lesser General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public License
 * along with ${2}. If not, see <http://www.gnu.org/licenses/>.
 */

$0]]></text>
    <tag>lgpl</tag>
    <description>LGPL License</description>
  </snippet>
  <snippet id="do">
    <text><![CDATA[do
{
	$0
} while ($1);]]></text>
    <tag>do</tag>
    <description>do .. while</description>
  </snippet>
  <snippet id="for">
    <text><![CDATA[for (${1:i} = ${2:0}; ${1:i} < ${3:count}; ${1:i} += ${4:1})
{
	$0
}]]></text>
    <tag>for</tag>
    <description>for loop</description>
  </snippet>
  <snippet id="while">
    <text><![CDATA[while (${1:condition})
{
	$0
}]]></text>
    <tag>while</tag>
    <description>while loop</description>
  </snippet>
  <snippet id="if">
    <text><![CDATA[if (${1:condition})
{
	$0
}]]></text>
    <tag>if</tag>
    <description>if</description>
  </snippet>
  <snippet id="elif">
    <text><![CDATA[else if (${1:condition})
{
	$0
}]]></text>
    <tag>elif</tag>
    <description>else if</description>
  </snippet>
  <snippet id="else">
    <text><![CDATA[else
{
	$0
}]]></text>
    <tag>else</tag>
    <description>else</description>
  </snippet>
  <snippet id="Inc">
    <text><![CDATA[#include <${1:file}.h>
$0]]></text>
    <tag>Inc</tag>
    <description>#include &lt;..&gt;</description>
  </snippet>
  <snippet id="inc">
    <text><![CDATA[#include "${1:file}.h"
$0]]></text>
    <tag>inc</tag>
    <description>#include ".."</description>
  </snippet>
  <snippet id="main">
    <text><![CDATA[int
main (int argc, char *argv[])
{
	$0
	return 0;
}]]></text>
    <tag>main</tag>
    <description>main</description>
  </snippet>
  <snippet id="struct">
    <text><![CDATA[struct ${1:name}
{
	${0:/* data */}
};]]></text>
    <tag>struct</tag>
    <description>struct</description>
  </snippet>
  <snippet id="endif">
    <text><![CDATA[#endif
$0]]></text>
    <description>#endif</description>
    <accelerator><![CDATA[<Control><Alt>period]]></accelerator>
  </snippet>
  <snippet id="td">
    <text><![CDATA[typedef ${1:newtype} ${2:type};
$0]]></text>
    <tag>td</tag>
    <description>typedef</description>
  </snippet>
  <snippet id="gobject">
    <text><![CDATA[#include "$1.h"
$<
global camel_str,low_str, type_str, is_str, up_str
components = $1.split('-')
low_str = '_'.join(components).lower()
up_str = '_'.join(components).upper()
type_str = '_'.join([components[0], 'TYPE'] + components[1:]).upper()
is_str = '_'.join([components[0], 'IS'] + components[1:]).upper()
camel_str = ''

for t in components:
  camel_str += t.capitalize()
>

#define $<[1]: return up_str >_GET_PRIVATE(object)(G_TYPE_INSTANCE_GET_PRIVATE((object), $<[1]: return type_str >, $<[1]: return camel_str >Private))

struct _$<[1]: return camel_str >Private
{
};

G_DEFINE_TYPE ($<[1]: return camel_str >, $<[1]: return low_str >, ${2:G_TYPE_OBJECT})

static void
$<[1]: return low_str>_finalize (GObject *object)
{
	G_OBJECT_CLASS ($<[1]: return low_str >_parent_class)->finalize (object);
}

static void
$<[1]: return low_str >_class_init ($<[1]: return camel_str >Class *klass)
{
	GObjectClass *object_class = G_OBJECT_CLASS (klass);

	object_class->finalize = $<[1]: return low_str >_finalize;

	g_type_class_add_private (object_class, sizeof ($<[1]: return camel_str >Private));
}

static void
$<[1]: return low_str >_init ($<[1]: return camel_str> *self)
{
	self->priv = $<[1]: return up_str >_GET_PRIVATE (self);
}

$<[1]: return camel_str > *
$<[1]: return low_str >_new ()
{
	return g_object_new ($<[1]: return type_str >, NULL);
}]]></text>
    <tag>gobject</tag>
    <description>GObject template</description>
  </snippet>
  <snippet id="ginterface">
    <text><![CDATA[#include "$1.h"
$<
global camel_str,low_str,up_str
components = $1.split('-')
low_str = '_'.join(components).lower()
up_str = '_'.join(components).upper()
camel_str = ''

for t in components:
  camel_str += t.capitalize()
>
/* Default implementation */
static const gchar *
$<[1]: return low_str>_example_method_default ($<[1]: return camel_str > *self)
{
	g_return_val_if_reached (NULL);
}

static void
$<[1]: return low_str>_init ($<[1]: return camel_str >Iface *iface)
{
	static gboolean initialized = FALSE;

	iface->example_method = $<[1]: return low_str>_example_method_default;

	if (!initialized)
	{
		initialized = TRUE;
	}
}

/*
 * This is an method example for an interface
 */
const gchar *
$<[1]: return low_str>_example_method ($<[1]: return camel_str > *self)
{
	g_return_val_if_fail ($<[1]: return up_str> (self), NULL);
	return $<[1]: return up_str>_GET_INTERFACE (self)->example_method (self);
}

GType
$<[1]: return low_str>_get_type ()
{
	static GType $<[1]: return low_str>_type_id = 0;

	if (!$<[1]: return low_str>_type_id)
	{
		static const GTypeInfo g_define_type_info =
		{
			sizeof ($<[1]: return camel_str >Iface),
			(GBaseInitFunc) $<[1]: return low_str>_init,
			NULL,
			NULL,
			NULL,
			NULL,
			0,
			0,
			NULL
		};

		$<[1]: return low_str>_type_id =
			g_type_register_static (G_TYPE_INTERFACE,
						"$<[1]: return camel_str>",
						&g_define_type_info,
						0);
	}

	return $<[1]: return low_str>_type_id;
}]]></text>
    <tag>ginterface</tag>
    <description>GObject interface</description>
  </snippet>
    <snippet>
    <text><![CDATA[#include "$1.h"
$<
global camel_str,low_str, type_str, is_str, up_str
components = $1.split('-')
low_str = '_'.join(components).lower()
up_str = '_'.join(components).upper()
type_str = '_'.join([components[0], 'TYPE'] + components[1:]).upper()
camel_str = ''

for t in components:
  camel_str += t.capitalize()
>

struct _$<[1]: return camel_str >
{
};

G_DEFINE_BOXED_TYPE ($<[1]: return camel_str >, $<[1]: return low_str >, $<[1]: return low_str >_${2:copy}, $<[1]: return low_str >_${3:free})

$<[1]: return camel_str > *
$<[1]: return low_str >_${2:copy} ($<[1]: return camel_str > *${4:boxed_name})
{
	
}

void
$<[1]: return low_str >_${3:free} ($<[1]: return camel_str > *${4:boxed_name})
{
	
}]]></text>
    <tag>gboxed</tag>
    <description>GBoxed template</description>
  </snippet>
</snippets>