Debian Codegraph @

scripts/syntax/gedit/nasal.xml

raw symbols SCIP
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!--
3
4 gedit snippet-addon support for the Nasal scripting language.
5
6 http://wiki.flightgear.org/Howto:Syntax_highlighting_for_Nasal#gedit
7
8 Moved into /usr/share/gedit/plugins/snippets/ folder or install using the
9 gedit "import" feature.
10
11 Copyright (C) 2013 Philosopher
12 Author: Philosopher (Flightgear forums)
13
14 This library is free software; you can redistribute it and/or
15 modify it under the terms of the GNU Library General Public
16 License as published by the Free Software Foundation; either
17 version 2 of the License, or (at your option) any later version.
18
19 This library is distributed in the hope that it will be useful,
20 but WITHOUT ANY WARRANTY; without even the implied warranty of
21 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
22 Library General Public License for more details.
23
24 You should have received a copy of the GNU Library General Public
25 License along with this library; if not, write to the
26 Free Software Foundation, Inc., 59 Temple Place - Suite 330,
27 Boston, MA 02111-1307, USA.
28
29 -->
30 <snippets language="Nasal">
31 <snippet id="else">
32 <text><![CDATA[else {
33 ${0:# body...}
34 }]]></text>
35 <description>else statement</description>
36 <tag>else</tag>
37 </snippet>
38 <snippet id="elsif">
39 <text><![CDATA[elsif (${0:condition}) {
40 ${0:# body...}
41 }]]></text>
42 <description>conditional elsif statement</description>
43 <tag>elsif</tag>
44 </snippet>
45 <snippet id="}">
46 <text><![CDATA[} elsif (${1:variable} == ${2:constant}) {
47 ${0:# body...}
48 }]]></text>
49 <description>equality elsif statement</description>
50 <tag>}</tag>
51 </snippet>
52 <snippet id="if">
53 <text><![CDATA[if (${0:condition}) {
54 ${0:# body...}
55 }]]></text>
56 <description>conditional if statement</description>
57 <tag>if</tag>
58 </snippet>
59 <snippet id="=">
60 <text><![CDATA[if (${1:variable} == ${2:constant}) {
61 ${0:# body...}
62 }]]></text>
63 <description>equality if statement</description>
64 <tag>=</tag>
65 </snippet>
66 <snippet id="typeif">
67 <text><![CDATA[if (typeof(${1:variable}) == "${2:type}") {
68 ${0:# body...}
69 }]]></text>
70 <description>typeof if statement</description>
71 <tag>typeif</tag>
72 </snippet>
73 </snippets>