gtksourceview3 2.0.0-x86-mingw32 → 2.0.1-x86-mingw32
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/Rakefile +1 -1
- data/lib/2.0/gtksourceview3.so +0 -0
- data/vendor/local/bin/libgtksourceview-3.0-1.dll +0 -0
- data/vendor/local/include/gtksourceview-3.0/gtksourceview/completion-providers/words/gtksourcecompletionwords.h +0 -1
- data/vendor/local/include/gtksourceview-3.0/gtksourceview/gtksourcebuffer.h +0 -4
- data/vendor/local/include/gtksourceview-3.0/gtksourceview/gtksourcecompletion.h +18 -5
- data/vendor/local/include/gtksourceview-3.0/gtksourceview/gtksourcecompletioncontext.h +8 -7
- data/vendor/local/include/gtksourceview-3.0/gtksourceview/gtksourcecompletioninfo.h +2 -1
- data/vendor/local/include/gtksourceview-3.0/gtksourceview/gtksourcecompletionitem.h +1 -2
- data/vendor/local/include/gtksourceview-3.0/gtksourceview/gtksourcecompletionproposal.h +21 -0
- data/vendor/local/include/gtksourceview-3.0/gtksourceview/gtksourcecompletionprovider.h +28 -9
- data/vendor/local/include/gtksourceview-3.0/gtksourceview/gtksourcegutter.h +0 -3
- data/vendor/local/include/gtksourceview-3.0/gtksourceview/gtksourcegutterrenderer.h +0 -2
- data/vendor/local/include/gtksourceview-3.0/gtksourceview/gtksourcelanguage.h +0 -2
- data/vendor/local/include/gtksourceview-3.0/gtksourceview/gtksourcelanguagemanager.h +0 -1
- data/vendor/local/include/gtksourceview-3.0/gtksourceview/gtksourcemarkattributes.h +0 -2
- data/vendor/local/include/gtksourceview-3.0/gtksourceview/gtksourceprintcompositor.h +0 -1
- data/vendor/local/include/gtksourceview-3.0/gtksourceview/gtksourcestylescheme.h +0 -1
- data/vendor/local/include/gtksourceview-3.0/gtksourceview/gtksourcestyleschememanager.h +1 -0
- data/vendor/local/include/gtksourceview-3.0/gtksourceview/gtksourcetypes.h +0 -9
- data/vendor/local/include/gtksourceview-3.0/gtksourceview/gtksourceview.h +1 -11
- data/vendor/local/lib/libgtksourceview-3.0.dll.a +0 -0
- data/vendor/local/lib/libgtksourceview-3.0.la +3 -3
- data/vendor/local/lib/locale/as/LC_MESSAGES/gtksourceview-3.0.mo +0 -0
- data/vendor/local/lib/locale/be/LC_MESSAGES/gtksourceview-3.0.mo +0 -0
- data/vendor/local/lib/locale/bg/LC_MESSAGES/gtksourceview-3.0.mo +0 -0
- data/vendor/local/lib/locale/ca/LC_MESSAGES/gtksourceview-3.0.mo +0 -0
- data/vendor/local/lib/locale/ca@valencia/LC_MESSAGES/gtksourceview-3.0.mo +0 -0
- data/vendor/local/lib/locale/cs/LC_MESSAGES/gtksourceview-3.0.mo +0 -0
- data/vendor/local/lib/locale/da/LC_MESSAGES/gtksourceview-3.0.mo +0 -0
- data/vendor/local/lib/locale/de/LC_MESSAGES/gtksourceview-3.0.mo +0 -0
- data/vendor/local/lib/locale/el/LC_MESSAGES/gtksourceview-3.0.mo +0 -0
- data/vendor/local/lib/locale/eo/LC_MESSAGES/gtksourceview-3.0.mo +0 -0
- data/vendor/local/lib/locale/es/LC_MESSAGES/gtksourceview-3.0.mo +0 -0
- data/vendor/local/lib/locale/eu/LC_MESSAGES/gtksourceview-3.0.mo +0 -0
- data/vendor/local/lib/locale/fi/LC_MESSAGES/gtksourceview-3.0.mo +0 -0
- data/vendor/local/lib/locale/fr/LC_MESSAGES/gtksourceview-3.0.mo +0 -0
- data/vendor/local/lib/locale/gl/LC_MESSAGES/gtksourceview-3.0.mo +0 -0
- data/vendor/local/lib/locale/he/LC_MESSAGES/gtksourceview-3.0.mo +0 -0
- data/vendor/local/lib/locale/hi/LC_MESSAGES/gtksourceview-3.0.mo +0 -0
- data/vendor/local/lib/locale/hu/LC_MESSAGES/gtksourceview-3.0.mo +0 -0
- data/vendor/local/lib/locale/id/LC_MESSAGES/gtksourceview-3.0.mo +0 -0
- data/vendor/local/lib/locale/it/LC_MESSAGES/gtksourceview-3.0.mo +0 -0
- data/vendor/local/lib/locale/ja/LC_MESSAGES/gtksourceview-3.0.mo +0 -0
- data/vendor/local/lib/locale/ko/LC_MESSAGES/gtksourceview-3.0.mo +0 -0
- data/vendor/local/lib/locale/lt/LC_MESSAGES/gtksourceview-3.0.mo +0 -0
- data/vendor/local/lib/locale/lv/LC_MESSAGES/gtksourceview-3.0.mo +0 -0
- data/vendor/local/lib/locale/nb/LC_MESSAGES/gtksourceview-3.0.mo +0 -0
- data/vendor/local/lib/locale/pa/LC_MESSAGES/gtksourceview-3.0.mo +0 -0
- data/vendor/local/lib/locale/pl/LC_MESSAGES/gtksourceview-3.0.mo +0 -0
- data/vendor/local/lib/locale/pt/LC_MESSAGES/gtksourceview-3.0.mo +0 -0
- data/vendor/local/lib/locale/pt_BR/LC_MESSAGES/gtksourceview-3.0.mo +0 -0
- data/vendor/local/lib/locale/ru/LC_MESSAGES/gtksourceview-3.0.mo +0 -0
- data/vendor/local/lib/locale/sk/LC_MESSAGES/gtksourceview-3.0.mo +0 -0
- data/vendor/local/lib/locale/sl/LC_MESSAGES/gtksourceview-3.0.mo +0 -0
- data/vendor/local/lib/locale/sr/LC_MESSAGES/gtksourceview-3.0.mo +0 -0
- data/vendor/local/lib/locale/sr@latin/LC_MESSAGES/gtksourceview-3.0.mo +0 -0
- data/vendor/local/lib/locale/ta/LC_MESSAGES/gtksourceview-3.0.mo +0 -0
- data/vendor/local/lib/locale/tg/LC_MESSAGES/gtksourceview-3.0.mo +0 -0
- data/vendor/local/lib/locale/ug/LC_MESSAGES/gtksourceview-3.0.mo +0 -0
- data/vendor/local/lib/locale/vi/LC_MESSAGES/gtksourceview-3.0.mo +0 -0
- data/vendor/local/lib/locale/zh_HK/LC_MESSAGES/gtksourceview-3.0.mo +0 -0
- data/vendor/local/lib/locale/zh_TW/LC_MESSAGES/gtksourceview-3.0.mo +0 -0
- data/vendor/local/lib/pkgconfig/gtksourceview-3.0.pc +2 -2
- data/vendor/local/share/gtk-doc/html/gtksourceview-3.0/GtkSourceBuffer.html +204 -165
- data/vendor/local/share/gtk-doc/html/gtksourceview-3.0/GtkSourceCompletion.html +216 -86
- data/vendor/local/share/gtk-doc/html/gtksourceview-3.0/GtkSourceCompletionContext.html +45 -37
- data/vendor/local/share/gtk-doc/html/gtksourceview-3.0/GtkSourceCompletionInfo.html +82 -31
- data/vendor/local/share/gtk-doc/html/gtksourceview-3.0/GtkSourceCompletionItem.html +47 -43
- data/vendor/local/share/gtk-doc/html/gtksourceview-3.0/GtkSourceCompletionProposal.html +111 -33
- data/vendor/local/share/gtk-doc/html/gtksourceview-3.0/GtkSourceCompletionProvider.html +182 -46
- data/vendor/local/share/gtk-doc/html/gtksourceview-3.0/GtkSourceCompletionWords.html +245 -0
- data/vendor/local/share/gtk-doc/html/gtksourceview-3.0/GtkSourceGutter.html +99 -39
- data/vendor/local/share/gtk-doc/html/gtksourceview-3.0/GtkSourceGutterRenderer.html +1312 -0
- data/vendor/local/share/gtk-doc/html/gtksourceview-3.0/GtkSourceGutterRendererPixbuf.html +247 -0
- data/vendor/local/share/gtk-doc/html/gtksourceview-3.0/GtkSourceGutterRendererText.html +171 -0
- data/vendor/local/share/gtk-doc/html/gtksourceview-3.0/GtkSourceLanguage.html +50 -50
- data/vendor/local/share/gtk-doc/html/gtksourceview-3.0/GtkSourceLanguageManager.html +37 -37
- data/vendor/local/share/gtk-doc/html/gtksourceview-3.0/GtkSourceMark.html +38 -38
- data/vendor/local/share/gtk-doc/html/gtksourceview-3.0/GtkSourceMarkAttributes.html +75 -74
- data/vendor/local/share/gtk-doc/html/gtksourceview-3.0/GtkSourcePrintCompositor.html +175 -175
- data/vendor/local/share/gtk-doc/html/gtksourceview-3.0/GtkSourceStyle.html +34 -34
- data/vendor/local/share/gtk-doc/html/gtksourceview-3.0/GtkSourceStyleScheme.html +31 -31
- data/vendor/local/share/gtk-doc/html/gtksourceview-3.0/GtkSourceStyleSchemeManager.html +26 -26
- data/vendor/local/share/gtk-doc/html/gtksourceview-3.0/GtkSourceUndoManager.html +24 -24
- data/vendor/local/share/gtk-doc/html/gtksourceview-3.0/GtkSourceView.html +163 -137
- data/vendor/local/share/gtk-doc/html/gtksourceview-3.0/annotation-glossary.html +21 -31
- data/vendor/local/share/gtk-doc/html/gtksourceview-3.0/api-index-3-0.html +1 -1
- data/vendor/local/share/gtk-doc/html/gtksourceview-3.0/api-index-deprecated.html +19 -4
- data/vendor/local/share/gtk-doc/html/gtksourceview-3.0/api-index-full.html +212 -44
- data/vendor/local/share/gtk-doc/html/gtksourceview-3.0/ch01.html +98 -0
- data/vendor/local/share/gtk-doc/html/gtksourceview-3.0/ch02.html +47 -0
- data/vendor/local/share/gtk-doc/html/gtksourceview-3.0/gtksourceview-3.0.devhelp2 +111 -61
- data/vendor/local/share/gtk-doc/html/gtksourceview-3.0/index.html +14 -10
- data/vendor/local/share/gtk-doc/html/gtksourceview-3.0/index.sgml +128 -60
- data/vendor/local/share/gtk-doc/html/gtksourceview-3.0/lang-reference.html +26 -26
- data/vendor/local/share/gtk-doc/html/gtksourceview-3.0/lang-tutorial.html +6 -6
- data/vendor/local/share/gtk-doc/html/gtksourceview-3.0/object-tree.html +64 -0
- data/vendor/local/share/gtk-doc/html/gtksourceview-3.0/style-reference.html +6 -6
- data/vendor/local/share/gtksourceview-3.0/language-specs/R.lang +2082 -13
- data/vendor/local/share/gtksourceview-3.0/language-specs/bluespec.lang +188 -0
- data/vendor/local/share/gtksourceview-3.0/language-specs/def.lang +2 -0
- data/vendor/local/share/gtksourceview-3.0/language-specs/idl-exelis.lang +620 -0
- data/vendor/local/share/gtksourceview-3.0/language-specs/latex.lang +277 -233
- data/vendor/local/share/gtksourceview-3.0/language-specs/modelica.lang +262 -0
- data/vendor/local/share/gtksourceview-3.0/language-specs/ocaml.lang +4 -4
- data/vendor/local/share/gtksourceview-3.0/language-specs/perl.lang +26 -9
- data/vendor/local/share/gtksourceview-3.0/language-specs/php.lang +2 -0
- data/vendor/local/share/gtksourceview-3.0/language-specs/ruby.lang +192 -33
- data/vendor/local/share/gtksourceview-3.0/language-specs/verilog.lang +12 -0
- data/vendor/local/share/gtksourceview-3.0/styles/classic.xml +6 -3
- data/vendor/local/share/gtksourceview-3.0/styles/cobalt.xml +1 -0
- data/vendor/local/share/gtksourceview-3.0/styles/kate.xml +5 -3
- data/vendor/local/share/gtksourceview-3.0/styles/oblivion.xml +4 -2
- data/vendor/local/share/gtksourceview-3.0/styles/tango.xml +1 -0
- metadata +18 -6
@@ -0,0 +1,262 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
+
<!--
|
3
|
+
|
4
|
+
This file is part of GtkSourceView
|
5
|
+
|
6
|
+
Authors: Jorn Baayen
|
7
|
+
Copyright (C) 2012 Jorn Baayen <jorn.baayen@moct7.com>
|
8
|
+
|
9
|
+
Based on modelica.xml from Kate, Copyright (C) 2008 Federico Zenith.
|
10
|
+
|
11
|
+
GtkSourceView is free software; you can redistribute it and/or
|
12
|
+
modify it under the terms of the GNU Lesser General Public
|
13
|
+
License as published by the Free Software Foundation; either
|
14
|
+
version 2.1 of the License, or (at your option) any later version.
|
15
|
+
|
16
|
+
GtkSourceView is distributed in the hope that it will be useful,
|
17
|
+
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
18
|
+
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
19
|
+
Lesser General Public License for more details.
|
20
|
+
|
21
|
+
You should have received a copy of the GNU Lesser General Public
|
22
|
+
License along with this library; if not, write to the Free Software
|
23
|
+
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
24
|
+
|
25
|
+
-->
|
26
|
+
<language id="modelica" _name="Modelica" version="2.0" _section="Scientific">
|
27
|
+
<metadata>
|
28
|
+
<property name="mimetypes">text/x-modelica</property>
|
29
|
+
<property name="globs">*.mo;*.mop</property>
|
30
|
+
<property name="line-comment-start">//</property>
|
31
|
+
<property name="block-comment-start">/*</property>
|
32
|
+
<property name="block-comment-end">*/</property>
|
33
|
+
</metadata>
|
34
|
+
|
35
|
+
<styles>
|
36
|
+
<style id="comment" _name="Comment" map-to="def:comment"/>
|
37
|
+
<style id="string" _name="String" map-to="def:string"/>
|
38
|
+
<style id="operator" _name="Operator" map-to="def:operator"/>
|
39
|
+
<style id="class-type" _name="Class type" map-to="def:type"/>
|
40
|
+
<style id="data-type" _name="Data type" map-to="def:type"/>
|
41
|
+
<style id="default-attribute" _name="Default Attribute" map-to="def:identifier"/>
|
42
|
+
<style id="boolean" _name="Boolean" map-to="def:boolean"/>
|
43
|
+
<style id="decimal" _name="Decimal" map-to="def:decimal"/>
|
44
|
+
<style id="floating-point" _name="Floating Point" map-to="def:floating-point"/>
|
45
|
+
<style id="base-n-integer" _name="Base-N Integer" map-to="def:base-n-integer"/>
|
46
|
+
<style id="keyword" _name="Keyword" map-to="def:keyword"/>
|
47
|
+
<style id="builtin" _name="Builtin" map-to="def:builtin"/>
|
48
|
+
</styles>
|
49
|
+
|
50
|
+
<definitions>
|
51
|
+
|
52
|
+
<context id="double-quoted-string" style-ref="string" end-at-line-end="false" class="string" class-disabled="no-spell-check">
|
53
|
+
<start>"</start>
|
54
|
+
<end>"</end>
|
55
|
+
</context>
|
56
|
+
|
57
|
+
<!--To see the list of operators, use the function __operators__-->
|
58
|
+
<context id="operator" style-ref="operator">
|
59
|
+
<match extended="true">
|
60
|
+
(\.)?\+{1,2}?(?!\+) | # arithmetic operators
|
61
|
+
(\.)?\-{1,2}?(?!\-) | # already counting
|
62
|
+
(\.)?\*{1,2}?(?!\*) | # with auto increment,
|
63
|
+
(\.)?\/(?!\^) | # element by element,
|
64
|
+
(\.)?\\(?!\^) | # left division
|
65
|
+
(\.)?\^(?!\^) | # and both exp
|
66
|
+
(?<=[0-9a-zA-Z_)\]}])(\.)?' | # transpose operator
|
67
|
+
<=? | >=? | != | ~= | == | <> | # comparison operators
|
68
|
+
&{1,2}?(?!&) | \|{1,2}?(?!\|) | ! | ~ | # boolean operators
|
69
|
+
= | # assignment operator
|
70
|
+
: | # range operator
|
71
|
+
</match>
|
72
|
+
</context>
|
73
|
+
|
74
|
+
<context id="class-type" style-ref="class-type">
|
75
|
+
<keyword>class</keyword>
|
76
|
+
<keyword>block</keyword>
|
77
|
+
<keyword>connector</keyword>
|
78
|
+
<keyword>function</keyword>
|
79
|
+
<keyword>model</keyword>
|
80
|
+
<keyword>package</keyword>
|
81
|
+
<keyword>record</keyword>
|
82
|
+
<keyword>type</keyword>
|
83
|
+
</context>
|
84
|
+
|
85
|
+
<context id="data-type" style-ref="data-type">
|
86
|
+
<keyword>Boolean</keyword>
|
87
|
+
<keyword>enumeration</keyword>
|
88
|
+
<keyword>ExternalObject</keyword>
|
89
|
+
<keyword>Integer</keyword>
|
90
|
+
<keyword>Real</keyword>
|
91
|
+
<keyword>StateSelect</keyword>
|
92
|
+
<keyword>String</keyword>
|
93
|
+
</context>
|
94
|
+
|
95
|
+
<context id="default-attribute" style-ref="default-attribute">
|
96
|
+
<keyword>display</keyword>
|
97
|
+
<keyword>fixed</keyword>
|
98
|
+
<keyword>max</keyword>
|
99
|
+
<keyword>min</keyword>
|
100
|
+
<keyword>nominal</keyword>
|
101
|
+
<keyword>quantity</keyword>
|
102
|
+
<keyword>start</keyword>
|
103
|
+
<keyword>stateSelect</keyword>
|
104
|
+
<keyword>unit</keyword>
|
105
|
+
<keyword>value</keyword>
|
106
|
+
</context>
|
107
|
+
|
108
|
+
<context id="boolean" style-ref="boolean">
|
109
|
+
<!-- falase and true can be used as functions too. Do not highlight as
|
110
|
+
boolean if followed by parentheses -->
|
111
|
+
<suffix>\b(?!(\s)*\()</suffix>
|
112
|
+
<keyword>false</keyword>
|
113
|
+
<keyword>true</keyword>
|
114
|
+
</context>
|
115
|
+
|
116
|
+
<context id="decimal" style-ref="decimal">
|
117
|
+
<match>\b([1-9][0-9]*|0)([Uu]([Ll]|LL|ll)?|([Ll]|LL|ll)[Uu]?)?\b</match>
|
118
|
+
</context>
|
119
|
+
|
120
|
+
<context id="floating-point-number" style-ref="floating-point">
|
121
|
+
<match>\b([0-9]+[Ee][-]?[0-9]+|([0-9]*\.[0-9]+|[0-9]+\.)([Ee][-]?[0-9]+)?)[fFlL]?</match>
|
122
|
+
</context>
|
123
|
+
|
124
|
+
<!--To see the list of keywords, use the function __keywords__-->
|
125
|
+
<context id="keyword" style-ref="keyword">
|
126
|
+
<keyword>algorithm</keyword>
|
127
|
+
<keyword>and</keyword>
|
128
|
+
<keyword>annotation</keyword>
|
129
|
+
<keyword>assert</keyword>
|
130
|
+
<keyword>break</keyword>
|
131
|
+
<keyword>connect</keyword>
|
132
|
+
<keyword>constant</keyword>
|
133
|
+
<keyword>constrainedby</keyword>
|
134
|
+
<keyword>discrete</keyword>
|
135
|
+
<keyword>else</keyword>
|
136
|
+
<keyword>elseif</keyword>
|
137
|
+
<keyword>elsewhen</keyword>
|
138
|
+
<keyword>encapsulated</keyword>
|
139
|
+
<keyword>end</keyword>
|
140
|
+
<keyword>equation</keyword>
|
141
|
+
<keyword>expandable</keyword>
|
142
|
+
<keyword>extends</keyword>
|
143
|
+
<keyword>external</keyword>
|
144
|
+
<keyword>false</keyword>
|
145
|
+
<keyword>final</keyword>
|
146
|
+
<keyword>flow</keyword>
|
147
|
+
<keyword>for</keyword>
|
148
|
+
<keyword>if</keyword>
|
149
|
+
<keyword>import</keyword>
|
150
|
+
<keyword>in</keyword>
|
151
|
+
<keyword>inner</keyword>
|
152
|
+
<keyword>input</keyword>
|
153
|
+
<keyword>loop</keyword>
|
154
|
+
<keyword>not</keyword>
|
155
|
+
<keyword>or</keyword>
|
156
|
+
<keyword>outer</keyword>
|
157
|
+
<keyword>output</keyword>
|
158
|
+
<keyword>parameter</keyword>
|
159
|
+
<keyword>partial</keyword>
|
160
|
+
<keyword>protected</keyword>
|
161
|
+
<keyword>public</keyword>
|
162
|
+
<keyword>redeclare</keyword>
|
163
|
+
<keyword>replaceable</keyword>
|
164
|
+
<keyword>return</keyword>
|
165
|
+
<keyword>then</keyword>
|
166
|
+
<keyword>true</keyword>
|
167
|
+
<keyword>when</keyword>
|
168
|
+
<keyword>while</keyword>
|
169
|
+
<keyword>within</keyword>
|
170
|
+
</context>
|
171
|
+
|
172
|
+
<context id="builtin" style-ref="builtin">
|
173
|
+
<!-- NOTE this is more like a built-in variable, but as it changes
|
174
|
+
its value during the simulation it is more like a function
|
175
|
+
without the (), and has therefore been placed here.-->
|
176
|
+
<keyword>time</keyword>
|
177
|
+
|
178
|
+
<keyword>abs</keyword>
|
179
|
+
<keyword>ceil</keyword>
|
180
|
+
<keyword>div</keyword>
|
181
|
+
<keyword>floor</keyword>
|
182
|
+
<keyword>integer</keyword>
|
183
|
+
<keyword>mod</keyword>
|
184
|
+
<keyword>rem</keyword>
|
185
|
+
<keyword>sign</keyword>
|
186
|
+
<keyword>sqrt</keyword>
|
187
|
+
|
188
|
+
<keyword>sin</keyword>
|
189
|
+
<keyword>cos</keyword>
|
190
|
+
<keyword>tan</keyword>
|
191
|
+
<keyword>asin</keyword>
|
192
|
+
<keyword>acos</keyword>
|
193
|
+
<keyword>atan</keyword>
|
194
|
+
<keyword>atan2</keyword>
|
195
|
+
<keyword>sinh</keyword>
|
196
|
+
<keyword>cosh</keyword>
|
197
|
+
<keyword>tanh</keyword>
|
198
|
+
<keyword>exp</keyword>
|
199
|
+
<keyword>log</keyword>
|
200
|
+
<keyword>log10</keyword>
|
201
|
+
|
202
|
+
<keyword>analysisType</keyword>
|
203
|
+
<keyword>cardinality</keyword> <!-- NOTE deprecated in 3.0. -->
|
204
|
+
<keyword>change</keyword>
|
205
|
+
<keyword>delay</keyword>
|
206
|
+
<keyword>der</keyword>
|
207
|
+
<keyword>direction</keyword>
|
208
|
+
<keyword>edge</keyword>
|
209
|
+
<keyword>initial</keyword>
|
210
|
+
<keyword>isPresent</keyword>
|
211
|
+
<keyword>noEvent</keyword>
|
212
|
+
<keyword>pre</keyword>
|
213
|
+
<keyword>reinit</keyword>
|
214
|
+
<keyword>sample</keyword>
|
215
|
+
<keyword>semiLinear</keyword>
|
216
|
+
<keyword>smooth</keyword>
|
217
|
+
<keyword>terminal</keyword>
|
218
|
+
<keyword>terminate</keyword>
|
219
|
+
|
220
|
+
<keyword>ndims</keyword>
|
221
|
+
<keyword>size</keyword>
|
222
|
+
<keyword>scalar</keyword>
|
223
|
+
<keyword>vector</keyword>
|
224
|
+
<keyword>matrix</keyword>
|
225
|
+
<keyword>array</keyword>
|
226
|
+
<keyword>zeros</keyword>
|
227
|
+
<keyword>ones</keyword>
|
228
|
+
<keyword>fill</keyword>
|
229
|
+
<keyword>identity</keyword>
|
230
|
+
<keyword>diagonal</keyword>
|
231
|
+
<keyword>linspace</keyword>
|
232
|
+
<keyword>min</keyword>
|
233
|
+
<keyword>max</keyword>
|
234
|
+
<keyword>sum</keyword>
|
235
|
+
<keyword>product</keyword>
|
236
|
+
<keyword>transpose</keyword>
|
237
|
+
<keyword>outerProduct</keyword>
|
238
|
+
<keyword>symmetric</keyword>
|
239
|
+
<keyword>cross</keyword>
|
240
|
+
<keyword>skew</keyword>
|
241
|
+
<keyword>cat</keyword>
|
242
|
+
</context>
|
243
|
+
|
244
|
+
<context id="modelica" class="no-spell-check">
|
245
|
+
<include>
|
246
|
+
<context ref="def:c-like-comment"/>
|
247
|
+
<context ref="def:c-like-comment-multiline"/>
|
248
|
+
<context ref="def:c-like-close-comment-outside-comment"/>
|
249
|
+
<context ref="double-quoted-string"/>
|
250
|
+
<context ref="operator"/>
|
251
|
+
<context ref="class-type"/>
|
252
|
+
<context ref="data-type"/>
|
253
|
+
<context ref="default-attribute"/>
|
254
|
+
<context ref="boolean"/>
|
255
|
+
<context ref="decimal"/>
|
256
|
+
<context ref="floating-point-number"/>
|
257
|
+
<context ref="keyword"/>
|
258
|
+
<context ref="builtin"/>
|
259
|
+
</include>
|
260
|
+
</context>
|
261
|
+
</definitions>
|
262
|
+
</language>
|
@@ -24,7 +24,7 @@
|
|
24
24
|
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
25
25
|
|
26
26
|
-->
|
27
|
-
<language id="
|
27
|
+
<language id="ocaml" _name="OCaml" version="2.0" _section="Sources">
|
28
28
|
<metadata>
|
29
29
|
<property name="mimetypes">text/x-ocaml</property>
|
30
30
|
<property name="globs">*.ml;*.mli;*.mll;*.mly</property>
|
@@ -64,7 +64,7 @@
|
|
64
64
|
</context>
|
65
65
|
|
66
66
|
<!-- here's the main context -->
|
67
|
-
<context id="
|
67
|
+
<context id="ocaml" class="no-spell-check">
|
68
68
|
<include>
|
69
69
|
<context id="ocamldoc" style-ref="ocamldoc">
|
70
70
|
<start>\(\*\*</start>
|
@@ -137,7 +137,7 @@
|
|
137
137
|
<start>\[\|</start>
|
138
138
|
<end>\|\]</end>
|
139
139
|
<include>
|
140
|
-
<context ref="
|
140
|
+
<context ref="ocaml"/>
|
141
141
|
</include>
|
142
142
|
</context>
|
143
143
|
<context id="badarray" style-ref="error" extend-parent="false">
|
@@ -147,7 +147,7 @@
|
|
147
147
|
<start>\[</start>
|
148
148
|
<end>(?<!\|)\]</end>
|
149
149
|
<include>
|
150
|
-
<context ref="
|
150
|
+
<context ref="ocaml"/>
|
151
151
|
</include>
|
152
152
|
</context>
|
153
153
|
<context id="badlist" style-ref="error" extend-parent="false">
|
@@ -26,7 +26,7 @@ FIXME: =pod should require an empty line before/after, as written in perlpod
|
|
26
26
|
<language id="perl" _name="Perl" version="2.0" _section="Scripts">
|
27
27
|
<metadata>
|
28
28
|
<property name="mimetypes">text/x-perl;application/x-perl</property>
|
29
|
-
<property name="globs">*.pl;*.pm;*.al;*.perl</property>
|
29
|
+
<property name="globs">*.pl;*.pm;*.al;*.perl;*.t</property>
|
30
30
|
<property name="line-comment-start">#</property>
|
31
31
|
</metadata>
|
32
32
|
|
@@ -93,6 +93,7 @@ FIXME: =pod should require an empty line before/after, as written in perlpod
|
|
93
93
|
</context>
|
94
94
|
|
95
95
|
<define-regex id="operator" extended="true">
|
96
|
+
\-[rwxoRWXOezsfdlpSbctugkTBMAC](?=\s) |
|
96
97
|
\-> |
|
97
98
|
\+\+ | \-\- |
|
98
99
|
\*\* |
|
@@ -120,10 +121,12 @@ FIXME: =pod should require an empty line before/after, as written in perlpod
|
|
120
121
|
<!-- $ is not defined in this regexp because it would conflict with
|
121
122
|
\%{plain-variable}. $ is the current module. -->
|
122
123
|
<define-regex id="special-variable" extended="true">
|
123
|
-
|
124
|
+
\$\^[ADEFHILMOPSTWX]? | # ($^A, ...)
|
124
125
|
\$[\\\"\[\]'&`+*.,;=%~?@$><\(|/!-] | # ($|, $', ...)
|
125
126
|
\$:[^:] | # avoid confusion with $::foo (equiv. to $main::foo)
|
126
|
-
\$(0|[1-9][0-9]*)
|
127
|
+
\$(0|[1-9][0-9]*) | # numbered variables (regex matches)
|
128
|
+
@[+-] | # special array variables
|
129
|
+
%[!+-] | %\^H # special hash variables
|
127
130
|
</define-regex>
|
128
131
|
|
129
132
|
<define-regex id="plain-variable" extended="true">
|
@@ -540,7 +543,7 @@ FIXME: =pod should require an empty line before/after, as written in perlpod
|
|
540
543
|
</include>
|
541
544
|
</context>
|
542
545
|
<context style-inside="true" style-ref="regex">
|
543
|
-
<start
|
546
|
+
<start>([!=]\~)\s*(/)</start>
|
544
547
|
<end>/[cgimosx]*</end>
|
545
548
|
<include>
|
546
549
|
<context sub-pattern="1" where="start" style-ref="operator"/>
|
@@ -553,11 +556,25 @@ FIXME: =pod should require an empty line before/after, as written in perlpod
|
|
553
556
|
</context>
|
554
557
|
|
555
558
|
<!-- #### HEREDOC STRINGS ############################################# -->
|
559
|
+
<!--
|
560
|
+
There may not be a space between the << and the identifier, unless the
|
561
|
+
identifier is explicitly quoted (hence the \s* when using quotes.
|
556
562
|
|
557
|
-
|
563
|
+
This also means that usage of null identifier <<"" is only valid
|
564
|
+
when using quotes (hence \%{here-doc-bound-char}* when using quotes
|
565
|
+
and \%{here-doc-bound-char}+ when not).
|
566
|
+
-->
|
567
|
+
|
568
|
+
<define-regex id="here-doc-bound-char">[^\s'"=;)]</define-regex>
|
558
569
|
|
559
570
|
<context id="here-doc-no-ve">
|
560
|
-
<start
|
571
|
+
<start extended="true" dupnames="true">
|
572
|
+
<<
|
573
|
+
(
|
574
|
+
\s*\'(?P<HDB>\%{here-doc-bound-char}*)\'| # 'EOF'
|
575
|
+
\\(?P<HDB>\%{here-doc-bound-char}+) # \EOF
|
576
|
+
)
|
577
|
+
</start>
|
561
578
|
<end>^\%{HDB@start}$</end>
|
562
579
|
<include>
|
563
580
|
<context sub-pattern="0" where="start" style-ref="here-doc-bound"/>
|
@@ -573,8 +590,8 @@ FIXME: =pod should require an empty line before/after, as written in perlpod
|
|
573
590
|
<start extended="true" dupnames="true">
|
574
591
|
<<
|
575
592
|
(
|
576
|
-
\"(?P<HDB>\%{here-doc-bound-char}*)\"| # "EOF"
|
577
|
-
|
593
|
+
\s*\"(?P<HDB>\%{here-doc-bound-char}*)\"| # "EOF"
|
594
|
+
(?P<HDB>\%{here-doc-bound-char}+) # EOF
|
578
595
|
)
|
579
596
|
</start>
|
580
597
|
<end>^\%{HDB@start}$</end>
|
@@ -995,7 +1012,7 @@ FIXME: =pod should require an empty line before/after, as written in perlpod
|
|
995
1012
|
</include>
|
996
1013
|
</context>
|
997
1014
|
|
998
|
-
<context id="pod" style-ref="pod">
|
1015
|
+
<context id="pod" style-ref="pod" class-disabled="no-spell-check">
|
999
1016
|
<start>^(?=(=[a-z]))</start>
|
1000
1017
|
<end>^=(cut)$</end>
|
1001
1018
|
<include>
|
@@ -205,6 +205,7 @@
|
|
205
205
|
<keyword>exit</keyword>
|
206
206
|
<keyword>extends</keyword>
|
207
207
|
<keyword>final</keyword>
|
208
|
+
<keyword>finally</keyword>
|
208
209
|
<keyword>for</keyword>
|
209
210
|
<keyword>foreach</keyword>
|
210
211
|
<keyword>function</keyword>
|
@@ -239,6 +240,7 @@
|
|
239
240
|
<keyword>var</keyword>
|
240
241
|
<keyword>while</keyword>
|
241
242
|
<keyword>xor</keyword>
|
243
|
+
<keyword>yield</keyword>
|
242
244
|
</context>
|
243
245
|
|
244
246
|
<context id="common-function" style-ref="keyword">
|
@@ -6,21 +6,22 @@
|
|
6
6
|
Author: Archit Baweja <bighead@users.sourceforge.net>
|
7
7
|
Copyright (C) 2004 Archit Baweja <bighead@users.sourceforge.net>
|
8
8
|
Copyright (C) 2005 Michael Witrant <mike@lepton.fr>
|
9
|
-
Copyright (C) 2006 Gabriel Bauman <
|
9
|
+
Copyright (C) 2006 Gabriel Bauman <gabe@codehaus.org>
|
10
|
+
Copyright (C) 2013 Jesse van den Kieboom <jessevdk@gnome.org>
|
10
11
|
|
11
|
-
|
12
|
-
it under the terms of the GNU General Public
|
13
|
-
the Free Software Foundation; either
|
14
|
-
(at your option) any later version.
|
12
|
+
GtkSourceView is free software; you can redistribute it and/or
|
13
|
+
modify it under the terms of the GNU Lesser General Public
|
14
|
+
License as published by the Free Software Foundation; either
|
15
|
+
version 2.1 of the License, or (at your option) any later version.
|
15
16
|
|
16
|
-
|
17
|
+
GtkSourceView is distributed in the hope that it will be useful,
|
17
18
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
18
|
-
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
19
|
-
|
19
|
+
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
20
|
+
Lesser General Public License for more details.
|
20
21
|
|
21
|
-
You should have received a copy of the GNU General Public
|
22
|
-
along with this
|
23
|
-
Foundation, Inc.,
|
22
|
+
You should have received a copy of the GNU Lesser General Public
|
23
|
+
License along with this library; if not, write to the Free Software
|
24
|
+
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
24
25
|
|
25
26
|
-->
|
26
27
|
<language id="ruby" _name="Ruby" version="2.0" _section="Scripts">
|
@@ -43,6 +44,7 @@
|
|
43
44
|
<style id="base-n-integer" _name="Base-N number" map-to="def:base-n-integer"/>
|
44
45
|
<style id="numeric-literal" _name="Numeric literal" map-to="def:base-n-integer"/>
|
45
46
|
<style id="string" _name="String" map-to="def:string"/>
|
47
|
+
<style id="literal" _name="Literal" map-to="def:special-char"/>
|
46
48
|
<!-- Translators: functions that are provided in the language -->
|
47
49
|
<style id="builtin" _name="Builtin" map-to="def:type"/>
|
48
50
|
<style id="constant" _name="Constant" map-to="def:type"/>
|
@@ -380,8 +382,8 @@
|
|
380
382
|
<define-regex id="underscore_num">\d(_?\d)*</define-regex>
|
381
383
|
|
382
384
|
<define-regex id="float" extended="true">
|
383
|
-
(
|
384
|
-
( (\%{underscore_num}
|
385
|
+
( \%{underscore_num}\.\%{underscore_num} ) |
|
386
|
+
( (\%{underscore_num}(\.\%{underscore_num})?)[eE][+-]?\%{underscore_num} )
|
385
387
|
</define-regex>
|
386
388
|
|
387
389
|
<context id="float" style-ref="floating-point">
|
@@ -430,6 +432,15 @@
|
|
430
432
|
</include>
|
431
433
|
</context>
|
432
434
|
|
435
|
+
<context id="inside-interpolated-string">
|
436
|
+
<include>
|
437
|
+
<context ref="escape"/>
|
438
|
+
<context ref="def:line-continue"/>
|
439
|
+
<context ref="complex-interpolation"/>
|
440
|
+
<context ref="simple-interpolation"/>
|
441
|
+
</include>
|
442
|
+
</context>
|
443
|
+
|
433
444
|
<!-- ruby strings do not end at line end,
|
434
445
|
so we cannot use def:string
|
435
446
|
(parts lifted from perl.lang) -->
|
@@ -437,10 +448,7 @@
|
|
437
448
|
<start>"</start>
|
438
449
|
<end>"</end>
|
439
450
|
<include>
|
440
|
-
<context ref="
|
441
|
-
<context ref="def:line-continue"/>
|
442
|
-
<context ref="complex-interpolation"/>
|
443
|
-
<context ref="simple-interpolation"/>
|
451
|
+
<context ref="inside-interpolated-string"/>
|
444
452
|
</include>
|
445
453
|
</context>
|
446
454
|
|
@@ -458,10 +466,7 @@
|
|
458
466
|
<start>`</start>
|
459
467
|
<end>`</end>
|
460
468
|
<include>
|
461
|
-
<context ref="
|
462
|
-
<context ref="def:line-continue"/>
|
463
|
-
<context ref="complex-interpolation"/>
|
464
|
-
<context ref="simple-interpolation"/>
|
469
|
+
<context ref="inside-interpolated-string"/>
|
465
470
|
</include>
|
466
471
|
</context>
|
467
472
|
|
@@ -469,10 +474,7 @@
|
|
469
474
|
<start><<([a-zA-Z_]\w*)</start>
|
470
475
|
<end>^\%{1@start}</end>
|
471
476
|
<include>
|
472
|
-
<context ref="
|
473
|
-
<context ref="def:line-continue"/>
|
474
|
-
<context ref="complex-interpolation"/>
|
475
|
-
<context ref="simple-interpolation"/>
|
477
|
+
<context ref="inside-interpolated-string"/>
|
476
478
|
</include>
|
477
479
|
</context>
|
478
480
|
|
@@ -480,10 +482,7 @@
|
|
480
482
|
<start><<-([a-zA-Z_]\w*)</start>
|
481
483
|
<end>^\s*\%{1@start}</end>
|
482
484
|
<include>
|
483
|
-
<context ref="
|
484
|
-
<context ref="def:line-continue"/>
|
485
|
-
<context ref="complex-interpolation"/>
|
486
|
-
<context ref="simple-interpolation"/>
|
485
|
+
<context ref="inside-interpolated-string"/>
|
487
486
|
</include>
|
488
487
|
</context>
|
489
488
|
|
@@ -502,10 +501,168 @@
|
|
502
501
|
<include>
|
503
502
|
<context sub-pattern="0" where="start" style-ref="here-doc-bound"/>
|
504
503
|
<context sub-pattern="0" where="end" style-ref="here-doc-bound"/>
|
505
|
-
<context ref="
|
506
|
-
|
507
|
-
|
508
|
-
|
504
|
+
<context ref="inside-interpolated-string"/>
|
505
|
+
</include>
|
506
|
+
</context>
|
507
|
+
|
508
|
+
<context id="interpolated-literal">
|
509
|
+
<include>
|
510
|
+
<context style-ref="string" style-inside="true">
|
511
|
+
<start>[%][QWx]?\(</start>
|
512
|
+
<end>\)</end>
|
513
|
+
<include>
|
514
|
+
<context where="start" sub-pattern="0" style-ref="literal"/>
|
515
|
+
<context where="end" sub-pattern="0" style-ref="literal"/>
|
516
|
+
|
517
|
+
<context ref="inside-interpolated-string"/>
|
518
|
+
<context>
|
519
|
+
<start>\(</start>
|
520
|
+
<end>\)</end>
|
521
|
+
</context>
|
522
|
+
</include>
|
523
|
+
</context>
|
524
|
+
|
525
|
+
<context style-ref="string" style-inside="true" >
|
526
|
+
<start>[%][QWx]?\[</start>
|
527
|
+
<end>]</end>
|
528
|
+
<include>
|
529
|
+
<context where="start" sub-pattern="0" style-ref="literal"/>
|
530
|
+
<context where="end" sub-pattern="0" style-ref="literal"/>
|
531
|
+
|
532
|
+
<context ref="inside-interpolated-string"/>
|
533
|
+
<context>
|
534
|
+
<start>\[</start>
|
535
|
+
<end>]</end>
|
536
|
+
</context>
|
537
|
+
|
538
|
+
</include>
|
539
|
+
</context>
|
540
|
+
|
541
|
+
<context style-ref="string" style-inside="true">
|
542
|
+
<start>[%][QWx]?{</start>
|
543
|
+
<end>}</end>
|
544
|
+
<include>
|
545
|
+
<context where="start" sub-pattern="0" style-ref="literal"/>
|
546
|
+
<context where="end" sub-pattern="0" style-ref="literal"/>
|
547
|
+
|
548
|
+
<context ref="inside-interpolated-string"/>
|
549
|
+
<context>
|
550
|
+
<start>{</start>
|
551
|
+
<end>}</end>
|
552
|
+
</context>
|
553
|
+
</include>
|
554
|
+
</context>
|
555
|
+
|
556
|
+
<context style-ref="string" style-inside="true">
|
557
|
+
<start>[%][QWx]?<</start>
|
558
|
+
<end>></end>
|
559
|
+
<include>
|
560
|
+
<context where="start" sub-pattern="0" style-ref="literal"/>
|
561
|
+
<context where="end" sub-pattern="0" style-ref="literal"/>
|
562
|
+
|
563
|
+
<context ref="inside-interpolated-string"/>
|
564
|
+
<context>
|
565
|
+
<start><</start>
|
566
|
+
<end>></end>
|
567
|
+
</context>
|
568
|
+
</include>
|
569
|
+
</context>
|
570
|
+
|
571
|
+
<context style-ref="string" style-inside="true">
|
572
|
+
<start>[%][QWx]?([^[:alnum:]{<[(])</start>
|
573
|
+
<end>\%{1@start}</end>
|
574
|
+
<include>
|
575
|
+
<context where="start" sub-pattern="0" style-ref="literal"/>
|
576
|
+
<context where="end" sub-pattern="0" style-ref="literal"/>
|
577
|
+
|
578
|
+
<context ref="inside-interpolated-string"/>
|
579
|
+
</include>
|
580
|
+
</context>
|
581
|
+
</include>
|
582
|
+
</context>
|
583
|
+
|
584
|
+
<context id="non-interpolated-literal">
|
585
|
+
<include>
|
586
|
+
<context style-ref="string" style-inside="true">
|
587
|
+
<start>[%][qsw]\(</start>
|
588
|
+
<end>\)</end>
|
589
|
+
<include>
|
590
|
+
<context where="start" sub-pattern="0" style-ref="literal"/>
|
591
|
+
<context where="end" sub-pattern="0" style-ref="literal"/>
|
592
|
+
|
593
|
+
<context style-ref="escape">
|
594
|
+
<match>\\['\\]</match>
|
595
|
+
</context>
|
596
|
+
<context>
|
597
|
+
<start>\(</start>
|
598
|
+
<end>\)</end>
|
599
|
+
</context>
|
600
|
+
</include>
|
601
|
+
</context>
|
602
|
+
|
603
|
+
<context style-ref="string" style-inside="true">
|
604
|
+
<start>[%][qsw]\[</start>
|
605
|
+
<end>]</end>
|
606
|
+
<include>
|
607
|
+
<context where="start" sub-pattern="0" style-ref="literal"/>
|
608
|
+
<context where="end" sub-pattern="0" style-ref="literal"/>
|
609
|
+
|
610
|
+
<context style-ref="escape">
|
611
|
+
<match>\\['\\]</match>
|
612
|
+
</context>
|
613
|
+
<context>
|
614
|
+
<start>\[</start>
|
615
|
+
<end>]</end>
|
616
|
+
</context>
|
617
|
+
</include>
|
618
|
+
</context>
|
619
|
+
|
620
|
+
<context style-ref="string" style-inside="true">
|
621
|
+
<start>[%][qsw]\{</start>
|
622
|
+
<end>\}</end>
|
623
|
+
<include>
|
624
|
+
<context where="start" sub-pattern="0" style-ref="literal"/>
|
625
|
+
<context where="end" sub-pattern="0" style-ref="literal"/>
|
626
|
+
|
627
|
+
<context style-ref="escape">
|
628
|
+
<match>\\['\\]</match>
|
629
|
+
</context>
|
630
|
+
<context>
|
631
|
+
<start>\{</start>
|
632
|
+
<end>\}</end>
|
633
|
+
</context>
|
634
|
+
</include>
|
635
|
+
</context>
|
636
|
+
|
637
|
+
<context style-ref="string" style-inside="true">
|
638
|
+
<start>[%][qsw]<</start>
|
639
|
+
<end>></end>
|
640
|
+
<include>
|
641
|
+
<context where="start" sub-pattern="0" style-ref="literal"/>
|
642
|
+
<context where="end" sub-pattern="0" style-ref="literal"/>
|
643
|
+
|
644
|
+
<context style-ref="escape">
|
645
|
+
<match>\\['\\]</match>
|
646
|
+
</context>
|
647
|
+
<context>
|
648
|
+
<start><</start>
|
649
|
+
<end>></end>
|
650
|
+
</context>
|
651
|
+
</include>
|
652
|
+
</context>
|
653
|
+
|
654
|
+
<context style-ref="string" style-inside="true">
|
655
|
+
<start>[%][qsw]([^[:alnum:]{<[(])</start>
|
656
|
+
<end>\%{1@start}</end>
|
657
|
+
<include>
|
658
|
+
<context where="start" sub-pattern="0" style-ref="literal"/>
|
659
|
+
<context where="end" sub-pattern="0" style-ref="literal"/>
|
660
|
+
|
661
|
+
<context style-ref="escape">
|
662
|
+
<match>\\['\\]</match>
|
663
|
+
</context>
|
664
|
+
</include>
|
665
|
+
</context>
|
509
666
|
</include>
|
510
667
|
</context>
|
511
668
|
|
@@ -584,6 +741,8 @@
|
|
584
741
|
<context ref="numeric-literal"/>
|
585
742
|
<context ref="regex-alt-form"/>
|
586
743
|
<context ref="regex-simple"/>
|
744
|
+
<context ref="non-interpolated-literal"/>
|
745
|
+
<context ref="interpolated-literal"/>
|
587
746
|
</include>
|
588
747
|
</context>
|
589
748
|
|