gtksourceview3 2.2.5-x64-mingw32 → 3.0.0-x64-mingw32

Sign up to get free protection for your applications and to get access to all the features.
Files changed (168) hide show
  1. checksums.yaml +4 -4
  2. data/Rakefile +3 -4
  3. data/lib/gtksourceview3/loader.rb +46 -0
  4. data/lib/gtksourceview3/mark-attributes.rb +29 -0
  5. data/lib/gtksourceview3.rb +47 -12
  6. data/test/run-test.rb +2 -0
  7. data/test/{test_mark_attributes.rb → test-mark-attributes.rb} +1 -1
  8. data/test/{test_source_gutter_renderer.rb → test-source-gutter-renderer.rb} +0 -0
  9. data/test/{test_source_language_manager.rb → test-source-language-manager.rb} +6 -6
  10. data/test/{test_source_view.rb → test-source-view.rb} +1 -1
  11. data/vendor/local/bin/libgtksourceview-3.0-1.dll +0 -0
  12. data/vendor/local/include/gtksourceview-3.0/gtksourceview/gtksource.h +3 -0
  13. data/vendor/local/include/gtksourceview-3.0/gtksourceview/gtksourcebuffer.h +4 -5
  14. data/vendor/local/include/gtksourceview-3.0/gtksourceview/gtksourcecompletioncontext.h +1 -1
  15. data/vendor/local/include/gtksourceview-3.0/gtksourceview/gtksourcegutter.h +0 -3
  16. data/vendor/local/include/gtksourceview-3.0/gtksourceview/gtksourcesearchcontext.h +5 -0
  17. data/vendor/local/include/gtksourceview-3.0/gtksourceview/gtksourcestylescheme.h +5 -4
  18. data/vendor/local/include/gtksourceview-3.0/gtksourceview/gtksourcestyleschemechooser.h +60 -0
  19. data/vendor/local/include/gtksourceview-3.0/gtksourceview/gtksourcestyleschemechooserbutton.h +56 -0
  20. data/vendor/local/include/gtksourceview-3.0/gtksourceview/gtksourcestyleschemechooserwidget.h +56 -0
  21. data/vendor/local/include/gtksourceview-3.0/gtksourceview/gtksourcetypes.h +13 -0
  22. data/vendor/local/include/gtksourceview-3.0/gtksourceview/gtksourceview-typebuiltins.h +5 -0
  23. data/vendor/local/include/gtksourceview-3.0/gtksourceview/gtksourceview.h +41 -14
  24. data/vendor/local/lib/girepository-1.0/GtkSource-3.0.typelib +0 -0
  25. data/vendor/local/lib/libgtksourceview-3.0.dll.a +0 -0
  26. data/vendor/local/lib/libgtksourceview-3.0.la +3 -3
  27. data/vendor/local/lib/locale/bs/LC_MESSAGES/gtksourceview-3.0.mo +0 -0
  28. data/vendor/local/lib/locale/cs/LC_MESSAGES/gtksourceview-3.0.mo +0 -0
  29. data/vendor/local/lib/locale/da/LC_MESSAGES/gtksourceview-3.0.mo +0 -0
  30. data/vendor/local/lib/locale/de/LC_MESSAGES/gtksourceview-3.0.mo +0 -0
  31. data/vendor/local/lib/locale/el/LC_MESSAGES/gtksourceview-3.0.mo +0 -0
  32. data/vendor/local/lib/locale/es/LC_MESSAGES/gtksourceview-3.0.mo +0 -0
  33. data/vendor/local/lib/locale/eu/LC_MESSAGES/gtksourceview-3.0.mo +0 -0
  34. data/vendor/local/lib/locale/fi/LC_MESSAGES/gtksourceview-3.0.mo +0 -0
  35. data/vendor/local/lib/locale/fr/LC_MESSAGES/gtksourceview-3.0.mo +0 -0
  36. data/vendor/local/lib/locale/gl/LC_MESSAGES/gtksourceview-3.0.mo +0 -0
  37. data/vendor/local/lib/locale/he/LC_MESSAGES/gtksourceview-3.0.mo +0 -0
  38. data/vendor/local/lib/locale/hu/LC_MESSAGES/gtksourceview-3.0.mo +0 -0
  39. data/vendor/local/lib/locale/id/LC_MESSAGES/gtksourceview-3.0.mo +0 -0
  40. data/vendor/local/lib/locale/it/LC_MESSAGES/gtksourceview-3.0.mo +0 -0
  41. data/vendor/local/lib/locale/kk/LC_MESSAGES/gtksourceview-3.0.mo +0 -0
  42. data/vendor/local/lib/locale/ko/LC_MESSAGES/gtksourceview-3.0.mo +0 -0
  43. data/vendor/local/lib/locale/lt/LC_MESSAGES/gtksourceview-3.0.mo +0 -0
  44. data/vendor/local/lib/locale/lv/LC_MESSAGES/gtksourceview-3.0.mo +0 -0
  45. data/vendor/local/lib/locale/nb/LC_MESSAGES/gtksourceview-3.0.mo +0 -0
  46. data/vendor/local/lib/locale/pl/LC_MESSAGES/gtksourceview-3.0.mo +0 -0
  47. data/vendor/local/lib/locale/pt_BR/LC_MESSAGES/gtksourceview-3.0.mo +0 -0
  48. data/vendor/local/lib/locale/ru/LC_MESSAGES/gtksourceview-3.0.mo +0 -0
  49. data/vendor/local/lib/locale/sk/LC_MESSAGES/gtksourceview-3.0.mo +0 -0
  50. data/vendor/local/lib/locale/sl/LC_MESSAGES/gtksourceview-3.0.mo +0 -0
  51. data/vendor/local/lib/locale/sr/LC_MESSAGES/gtksourceview-3.0.mo +0 -0
  52. data/vendor/local/lib/locale/sr@latin/LC_MESSAGES/gtksourceview-3.0.mo +0 -0
  53. data/vendor/local/lib/locale/sv/LC_MESSAGES/gtksourceview-3.0.mo +0 -0
  54. data/vendor/local/lib/locale/tr/LC_MESSAGES/gtksourceview-3.0.mo +0 -0
  55. data/vendor/local/lib/locale/zh_TW/LC_MESSAGES/gtksourceview-3.0.mo +0 -0
  56. data/vendor/local/lib/pkgconfig/gtksourceview-3.0.pc +2 -2
  57. data/vendor/local/share/gir-1.0/GtkSource-3.0.gir +501 -39
  58. data/vendor/local/share/gtk-doc/html/gtksourceview-3.0/GtkSourceBuffer.html +186 -132
  59. data/vendor/local/share/gtk-doc/html/gtksourceview-3.0/GtkSourceCompletion.html +55 -55
  60. data/vendor/local/share/gtk-doc/html/gtksourceview-3.0/GtkSourceCompletionContext.html +29 -23
  61. data/vendor/local/share/gtk-doc/html/gtksourceview-3.0/GtkSourceCompletionInfo.html +39 -39
  62. data/vendor/local/share/gtk-doc/html/gtksourceview-3.0/GtkSourceCompletionItem.html +9 -9
  63. data/vendor/local/share/gtk-doc/html/gtksourceview-3.0/GtkSourceCompletionProposal.html +22 -22
  64. data/vendor/local/share/gtk-doc/html/gtksourceview-3.0/GtkSourceCompletionProvider.html +35 -35
  65. data/vendor/local/share/gtk-doc/html/gtksourceview-3.0/GtkSourceCompletionWords.html +14 -14
  66. data/vendor/local/share/gtk-doc/html/gtksourceview-3.0/GtkSourceEncoding.html +19 -19
  67. data/vendor/local/share/gtk-doc/html/gtksourceview-3.0/GtkSourceFile.html +19 -19
  68. data/vendor/local/share/gtk-doc/html/gtksourceview-3.0/GtkSourceFileLoader.html +26 -26
  69. data/vendor/local/share/gtk-doc/html/gtksourceview-3.0/GtkSourceFileSaver.html +32 -32
  70. data/vendor/local/share/gtk-doc/html/gtksourceview-3.0/GtkSourceGutter.html +28 -28
  71. data/vendor/local/share/gtk-doc/html/gtksourceview-3.0/GtkSourceGutterRenderer.html +141 -133
  72. data/vendor/local/share/gtk-doc/html/gtksourceview-3.0/GtkSourceGutterRendererPixbuf.html +14 -14
  73. data/vendor/local/share/gtk-doc/html/gtksourceview-3.0/GtkSourceGutterRendererText.html +6 -6
  74. data/vendor/local/share/gtk-doc/html/gtksourceview-3.0/GtkSourceLanguage.html +26 -26
  75. data/vendor/local/share/gtk-doc/html/gtksourceview-3.0/GtkSourceLanguageManager.html +17 -17
  76. data/vendor/local/share/gtk-doc/html/gtksourceview-3.0/GtkSourceMark.html +18 -18
  77. data/vendor/local/share/gtk-doc/html/gtksourceview-3.0/GtkSourceMarkAttributes.html +42 -42
  78. data/vendor/local/share/gtk-doc/html/gtksourceview-3.0/GtkSourcePrintCompositor.html +89 -89
  79. data/vendor/local/share/gtk-doc/html/gtksourceview-3.0/GtkSourceSearchContext.html +155 -56
  80. data/vendor/local/share/gtk-doc/html/gtksourceview-3.0/GtkSourceSearchSettings.html +23 -23
  81. data/vendor/local/share/gtk-doc/html/gtksourceview-3.0/GtkSourceStyle.html +8 -8
  82. data/vendor/local/share/gtk-doc/html/gtksourceview-3.0/GtkSourceStyleScheme.html +17 -19
  83. data/vendor/local/share/gtk-doc/html/gtksourceview-3.0/GtkSourceStyleSchemeChooser.html +215 -0
  84. data/vendor/local/share/gtk-doc/html/gtksourceview-3.0/GtkSourceStyleSchemeChooserButton.html +129 -0
  85. data/vendor/local/share/gtk-doc/html/gtksourceview-3.0/GtkSourceStyleSchemeChooserWidget.html +129 -0
  86. data/vendor/local/share/gtk-doc/html/gtksourceview-3.0/GtkSourceStyleSchemeManager.html +18 -18
  87. data/vendor/local/share/gtk-doc/html/gtksourceview-3.0/GtkSourceUndoManager.html +27 -26
  88. data/vendor/local/share/gtk-doc/html/gtksourceview-3.0/GtkSourceView.html +751 -327
  89. data/vendor/local/share/gtk-doc/html/gtksourceview-3.0/annotation-glossary.html +3 -3
  90. data/vendor/local/share/gtk-doc/html/gtksourceview-3.0/api-index-3-0.html +1 -1
  91. data/vendor/local/share/gtk-doc/html/gtksourceview-3.0/api-index-3-10.html +1 -1
  92. data/vendor/local/share/gtk-doc/html/gtksourceview-3.0/api-index-3-12.html +1 -1
  93. data/vendor/local/share/gtk-doc/html/gtksourceview-3.0/api-index-3-14.html +3 -3
  94. data/vendor/local/share/gtk-doc/html/gtksourceview-3.0/api-index-3-16.html +107 -0
  95. data/vendor/local/share/gtk-doc/html/gtksourceview-3.0/api-index-3-4.html +1 -1
  96. data/vendor/local/share/gtk-doc/html/gtksourceview-3.0/api-index-deprecated.html +1 -1
  97. data/vendor/local/share/gtk-doc/html/gtksourceview-3.0/api-index-full.html +89 -1
  98. data/vendor/local/share/gtk-doc/html/gtksourceview-3.0/ch01.html +9 -90
  99. data/vendor/local/share/gtk-doc/html/gtksourceview-3.0/ch02.html +25 -16
  100. data/vendor/local/share/gtk-doc/html/gtksourceview-3.0/ch03.html +53 -0
  101. data/vendor/local/share/gtk-doc/html/gtksourceview-3.0/ch04.html +44 -0
  102. data/vendor/local/share/gtk-doc/html/gtksourceview-3.0/ch05.html +50 -0
  103. data/vendor/local/share/gtk-doc/html/gtksourceview-3.0/ch06.html +33 -0
  104. data/vendor/local/share/gtk-doc/html/gtksourceview-3.0/ch07.html +38 -0
  105. data/vendor/local/share/gtk-doc/html/gtksourceview-3.0/ch08.html +38 -0
  106. data/vendor/local/share/gtk-doc/html/gtksourceview-3.0/gtksourceview-3.0-GtkSourceUtils.html +10 -10
  107. data/vendor/local/share/gtk-doc/html/gtksourceview-3.0/gtksourceview-3.0.devhelp2 +253 -161
  108. data/vendor/local/share/gtk-doc/html/gtksourceview-3.0/index.html +57 -25
  109. data/vendor/local/share/gtk-doc/html/gtksourceview-3.0/index.sgml +295 -190
  110. data/vendor/local/share/gtk-doc/html/gtksourceview-3.0/lang-reference.html +73 -30
  111. data/vendor/local/share/gtk-doc/html/gtksourceview-3.0/lang-tutorial.html +5 -5
  112. data/vendor/local/share/gtk-doc/html/gtksourceview-3.0/object-tree.html +13 -9
  113. data/vendor/local/share/gtk-doc/html/gtksourceview-3.0/pt01.html +153 -0
  114. data/vendor/local/share/gtk-doc/html/gtksourceview-3.0/pt02.html +50 -0
  115. data/vendor/local/share/gtk-doc/html/gtksourceview-3.0/style-reference.html +3 -3
  116. data/vendor/local/share/gtksourceview-3.0/language-specs/c.lang +4 -4
  117. data/vendor/local/share/gtksourceview-3.0/language-specs/cmake.lang +234 -125
  118. data/vendor/local/share/gtksourceview-3.0/language-specs/css.lang +1 -0
  119. data/vendor/local/share/gtksourceview-3.0/language-specs/cuda.lang +247 -257
  120. data/vendor/local/share/gtksourceview-3.0/language-specs/fortran.lang +1 -1
  121. data/vendor/local/share/gtksourceview-3.0/language-specs/genie.lang +238 -0
  122. data/vendor/local/share/gtksourceview-3.0/language-specs/java.lang +4 -3
  123. data/vendor/local/share/gtksourceview-3.0/language-specs/javascript.lang +1 -1
  124. data/vendor/local/share/gtksourceview-3.0/language-specs/json.lang +3 -1
  125. data/vendor/local/share/gtksourceview-3.0/language-specs/lua.lang +150 -5
  126. data/vendor/local/share/gtksourceview-3.0/language-specs/matlab.lang +1 -1
  127. data/vendor/local/share/gtksourceview-3.0/language-specs/octave.lang +1008 -172
  128. data/vendor/local/share/gtksourceview-3.0/language-specs/pig.lang +283 -0
  129. data/vendor/local/share/gtksourceview-3.0/language-specs/protobuf.lang +2 -1
  130. data/vendor/local/share/gtksourceview-3.0/language-specs/thrift.lang +267 -0
  131. data/vendor/local/share/gtksourceview-3.0/language-specs/xslt.lang +13 -0
  132. data/vendor/local/share/gtksourceview-3.0/language-specs/yacc.lang +1 -1
  133. data/vendor/local/share/gtksourceview-3.0/styles/classic.xml +2 -0
  134. data/vendor/local/share/gtksourceview-3.0/styles/cobalt.xml +3 -0
  135. data/vendor/local/share/gtksourceview-3.0/styles/kate.xml +1 -0
  136. data/vendor/local/share/gtksourceview-3.0/styles/oblivion.xml +3 -0
  137. data/vendor/local/share/gtksourceview-3.0/styles/solarized-dark.xml +3 -1
  138. data/vendor/local/share/gtksourceview-3.0/styles/solarized-light.xml +3 -1
  139. data/vendor/local/share/gtksourceview-3.0/styles/tango.xml +2 -0
  140. data/vendor/local/share/license/gtksourceview/AUTHORS +7 -5
  141. metadata +43 -35
  142. data/ext/gtksourceview3/depend +0 -6
  143. data/ext/gtksourceview3/extconf.rb +0 -67
  144. data/ext/gtksourceview3/gtksourceview3.def +0 -2
  145. data/ext/gtksourceview3/rbgtksource.c +0 -53
  146. data/ext/gtksourceview3/rbgtksourcebuffer.c +0 -318
  147. data/ext/gtksourceview3/rbgtksourcegutter.c +0 -82
  148. data/ext/gtksourceview3/rbgtksourcegutterrenderer.c +0 -143
  149. data/ext/gtksourceview3/rbgtksourcegutterrendererpixbuf.c +0 -42
  150. data/ext/gtksourceview3/rbgtksourcegutterrenderertext.c +0 -40
  151. data/ext/gtksourceview3/rbgtksourcelanguage.c +0 -124
  152. data/ext/gtksourceview3/rbgtksourcelanguagemanager.c +0 -114
  153. data/ext/gtksourceview3/rbgtksourcemark.c +0 -85
  154. data/ext/gtksourceview3/rbgtksourcemarkattributes.c +0 -77
  155. data/ext/gtksourceview3/rbgtksourceprintcompositor.c +0 -171
  156. data/ext/gtksourceview3/rbgtksourcestyle.c +0 -42
  157. data/ext/gtksourceview3/rbgtksourcestylescheme.c +0 -72
  158. data/ext/gtksourceview3/rbgtksourcestyleschememanager.c +0 -140
  159. data/ext/gtksourceview3/rbgtksourceundomanager.c +0 -83
  160. data/ext/gtksourceview3/rbgtksourceview.c +0 -94
  161. data/ext/gtksourceview3/rbgtksourceview3conversions.h +0 -50
  162. data/ext/gtksourceview3/rbgtksourceview3private.h +0 -53
  163. data/extconf.rb +0 -49
  164. data/lib/2.0/gtksourceview3.so +0 -0
  165. data/lib/2.1/gtksourceview3.so +0 -0
  166. data/lib/2.2/gtksourceview3.so +0 -0
  167. data/sample/sourcelanguagemanager.rb +0 -21
  168. data/sample/test.rb +0 -32
@@ -0,0 +1,283 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <!--
3
+
4
+ This file is part of GtkSourceView
5
+
6
+ Syntax highlighting for Pig Latin 0.12
7
+
8
+ Author: Eyal Allweil <eallweil@paypal.com>
9
+ Copyright (C) 2014 Eyal Allweil <eallweil@paypal.com>
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
+
27
+ <language id="pig" _name="Pig" version="2.0" _section="Source">
28
+ <metadata>
29
+ <property name="globs">*.pig</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="datatype" _name="Data Type" map-to="def:type" />
37
+ <style id="reserved-words" _name="Reserved Words" map-to="def:keyword" />
38
+ <style id="builtin-functions" _name="Built In Functions" map-to="def:function" />
39
+ <style id="boolean" _name="Boolean values" map-to="def:boolean" />
40
+ <style id="null" _name="Null" map-to="def:special-constant" />
41
+ <style id="comment" _name="Comment" map-to="def:comment" />
42
+ </styles>
43
+
44
+ <default-regex-options case-sensitive="true" />
45
+
46
+ <definitions>
47
+
48
+ <context id="datatype" style-ref="datatype">
49
+ <prefix>(?i)</prefix>
50
+ <keyword>int</keyword>
51
+ <keyword>long</keyword>
52
+ <keyword>float</keyword>
53
+ <keyword>double</keyword>
54
+ <keyword>boolean</keyword>
55
+ <keyword>datetime</keyword>
56
+ <keyword>chararray</keyword>
57
+ <keyword>bytearray</keyword>
58
+ <keyword>biginteger</keyword>
59
+ <keyword>bigdecimal</keyword>
60
+ </context>
61
+
62
+ <context id="boolean-literal" style-ref="boolean">
63
+ <keyword>false</keyword>
64
+ <keyword>true</keyword>
65
+ </context>
66
+
67
+ <!-- Treat as literal despite it being a reserved word -->
68
+ <context id="null" style-ref="null">
69
+ <keyword>null</keyword>
70
+ </context>
71
+
72
+ <context id="line-comment" style-ref="comment"
73
+ end-at-line-end="true" class="comment" class-disabled="no-spell-check">
74
+ <start>--</start>
75
+ <include>
76
+ <context ref="def:in-line-comment" />
77
+ </include>
78
+ </context>
79
+
80
+ <!-- These are case-insensitive -->
81
+ <context id="reserved-words" style-ref="reserved-words">
82
+ <prefix>(?i)</prefix>
83
+ <keyword>and</keyword>
84
+ <keyword>any</keyword>
85
+ <keyword>all</keyword>
86
+ <keyword>arrange</keyword>
87
+ <keyword>assert</keyword>
88
+ <keyword>asc</keyword>
89
+ <keyword>as</keyword>
90
+ <keyword>bag</keyword>
91
+ <keyword>by</keyword>
92
+ <keyword>cache</keyword>
93
+ <keyword>case</keyword>
94
+ <keyword>cat</keyword>
95
+ <keyword>cd</keyword>
96
+ <keyword>cogroup</keyword>
97
+ <keyword>copyfromlocal</keyword>
98
+ <keyword>copytolocal</keyword>
99
+ <keyword>cp</keyword>
100
+ <keyword>cross</keyword>
101
+ <keyword>cube</keyword>
102
+ <keyword>%declare</keyword>
103
+ <keyword>%default</keyword>
104
+ <keyword>define</keyword>
105
+ <keyword>describe</keyword>
106
+ <keyword>desc</keyword>
107
+ <keyword>dense</keyword>
108
+ <keyword>diff</keyword>
109
+ <keyword>distinct</keyword>
110
+ <keyword>dump</keyword>
111
+ <keyword>du</keyword>
112
+ <keyword>eval</keyword>
113
+ <keyword>exec</keyword>
114
+ <keyword>explain</keyword>
115
+ <keyword>filter</keyword>
116
+ <keyword>flatten</keyword>
117
+ <keyword>foreach</keyword>
118
+ <keyword>full</keyword>
119
+ <keyword>generate</keyword>
120
+ <keyword>group</keyword>
121
+ <keyword>help</keyword>
122
+ <keyword>if</keyword>
123
+ <keyword>illustrate</keyword>
124
+ <keyword>import</keyword>
125
+ <keyword>inner</keyword>
126
+ <keyword>input</keyword>
127
+ <keyword>into</keyword>
128
+ <keyword>is</keyword>
129
+ <keyword>join</keyword>
130
+ <keyword>kill</keyword>
131
+ <keyword>left</keyword>
132
+ <keyword>limit</keyword>
133
+ <keyword>load</keyword>
134
+ <keyword>ls</keyword>
135
+ <keyword>map</keyword>
136
+ <keyword>matches</keyword>
137
+ <keyword>mkdir</keyword>
138
+ <keyword>mv</keyword>
139
+ <keyword>not</keyword>
140
+ <keyword>onschema</keyword>
141
+ <keyword>order</keyword>
142
+ <keyword>or</keyword>
143
+ <keyword>outer</keyword>
144
+ <keyword>output</keyword>
145
+ <keyword>parallel</keyword>
146
+ <keyword>pig</keyword>
147
+ <keyword>pwd</keyword>
148
+ <keyword>quit</keyword>
149
+ <keyword>rank</keyword>
150
+ <keyword>register</keyword>
151
+ <keyword>returns</keyword>
152
+ <keyword>right</keyword>
153
+ <keyword>rmf</keyword>
154
+ <keyword>rm</keyword>
155
+ <keyword>rollup</keyword>
156
+ <keyword>run</keyword>
157
+ <keyword>sample</keyword>
158
+ <keyword>set</keyword>
159
+ <keyword>ship</keyword>
160
+ <keyword>split</keyword>
161
+ <keyword>stderr</keyword>
162
+ <keyword>stdin</keyword>
163
+ <keyword>stdout</keyword>
164
+ <keyword>store</keyword>
165
+ <keyword>stream</keyword>
166
+ <keyword>through</keyword>
167
+ <keyword>tuple</keyword>
168
+ <keyword>union</keyword>
169
+ <keyword>using</keyword>
170
+ <keyword>void</keyword>
171
+ </context>
172
+
173
+ <context id="builtin-functions" style-ref="builtin-functions">
174
+ <keyword>ABS</keyword>
175
+ <keyword>ACOS</keyword>
176
+ <keyword>AddDuration</keyword>
177
+ <keyword>ASIN</keyword>
178
+ <keyword>ATAN</keyword>
179
+ <keyword>AVG</keyword>
180
+ <keyword>AvroStorage</keyword>
181
+ <keyword>BinStorage</keyword>
182
+ <keyword>CBRT</keyword>
183
+ <keyword>CEIL</keyword>
184
+ <keyword>CONCAT</keyword>
185
+ <keyword>COSH</keyword>
186
+ <keyword>COS</keyword>
187
+ <keyword>COUNT_STAR</keyword>
188
+ <keyword>COUNT</keyword>
189
+ <keyword>CurrentTime</keyword>
190
+ <keyword>DaysBetween</keyword>
191
+ <keyword>DIFF</keyword>
192
+ <keyword>ENDSWITH</keyword>
193
+ <keyword>EqualsIgnoreCase</keyword>
194
+ <keyword>EXP</keyword>
195
+ <keyword>FLOOR</keyword>
196
+ <keyword>GetDay</keyword>
197
+ <keyword>GetHour</keyword>
198
+ <keyword>GetMilliSecond</keyword>
199
+ <keyword>GetMinute</keyword>
200
+ <keyword>GetMonth</keyword>
201
+ <keyword>GetSecond</keyword>
202
+ <keyword>GetWeek</keyword>
203
+ <keyword>GetWeekYear</keyword>
204
+ <keyword>GetYear</keyword>
205
+ <keyword>HBaseStorage</keyword>
206
+ <keyword>HoursBetween</keyword>
207
+ <keyword>INDEXOF</keyword>
208
+ <keyword>IsEmpty</keyword>
209
+ <keyword>JsonLoader</keyword>
210
+ <keyword>JsonStorage</keyword>
211
+ <keyword>LAST_INDEX_OF</keyword>
212
+ <keyword>LCFIRST</keyword>
213
+ <keyword>LOG10</keyword>
214
+ <keyword>LOG</keyword>
215
+ <keyword>LOWER</keyword>
216
+ <keyword>LTRIM</keyword>
217
+ <keyword>MAX</keyword>
218
+ <keyword>MilliSecondsBetween</keyword>
219
+ <keyword>MIN</keyword>
220
+ <keyword>MinutesBetween</keyword>
221
+ <keyword>MonthsBetween</keyword>
222
+ <keyword>PigDump</keyword>
223
+ <keyword>PigStorage</keyword>
224
+ <keyword>PluckTuple</keyword>
225
+ <keyword>RANDOM</keyword>
226
+ <keyword>REGEX_EXTRACT_ALL</keyword>
227
+ <keyword>REGEX_EXTRACT</keyword>
228
+ <keyword>REPLACE</keyword>
229
+ <keyword>ROUND</keyword>
230
+ <keyword>RTRIM</keyword>
231
+ <keyword>SecondsBetween</keyword>
232
+ <keyword>SINH</keyword>
233
+ <keyword>SIN</keyword>
234
+ <keyword>SIZE</keyword>
235
+ <keyword>SQRT</keyword>
236
+ <keyword>STARTSWITH</keyword>
237
+ <keyword>STRSPLIT</keyword>
238
+ <keyword>SUBSTRING</keyword>
239
+ <keyword>SubtractDuration</keyword>
240
+ <keyword>SUBTRACT</keyword>
241
+ <keyword>SUM</keyword>
242
+ <keyword>TANH</keyword>
243
+ <keyword>TAN</keyword>
244
+ <keyword>Terms</keyword>
245
+ <keyword>TextLoader</keyword>
246
+ <keyword>TOBAG</keyword>
247
+ <keyword>ToDate</keyword>
248
+ <keyword>TOKENIZE</keyword>
249
+ <keyword>TOMAP</keyword>
250
+ <keyword>ToMilliSeconds</keyword>
251
+ <keyword>TOP</keyword>
252
+ <keyword>ToString</keyword>
253
+ <keyword>TOTUPLE</keyword>
254
+ <keyword>ToUnixTime</keyword>
255
+ <keyword>TRIM</keyword>
256
+ <keyword>TrevniStrorage</keyword>
257
+ <keyword>UCFIRST</keyword>
258
+ <keyword>UPPER</keyword>
259
+ <keyword>Usage</keyword>
260
+ <keyword>WeeksBetween</keyword>
261
+ <keyword>YearsBetween</keyword>
262
+ </context>
263
+
264
+ <context id="pig" class="no-spell-check">
265
+ <include>
266
+ <context ref="def:decimal" />
267
+ <context ref="def:float" />
268
+ <context ref="def:string" />
269
+ <context ref="def:single-quoted-string" />
270
+ <context ref="def:c-like-close-comment-outside-comment" />
271
+ <context ref="def:c-like-comment-multiline" />
272
+
273
+ <context ref="datatype" />
274
+ <context ref="line-comment" />
275
+ <context ref="reserved-words" />
276
+ <context ref="builtin-functions" />
277
+ <context ref="boolean-literal" />
278
+ <context ref="null" />
279
+ </include>
280
+ </context>
281
+
282
+ </definitions>
283
+ </language>
@@ -26,6 +26,7 @@
26
26
  </metadata>
27
27
 
28
28
  <styles>
29
+ <style id="comment" _name="Comment" map-to="def:comment"/>
29
30
  <style id="variable" _name="Variable" map-to="def:type"/>
30
31
  <style id="type" _name="Data Type" map-to="def:type"/>
31
32
  <style id="keyword" _name="Keyword" map-to="def:keyword"/>
@@ -89,7 +90,7 @@
89
90
 
90
91
  <context id="proto" class="no-spell-check">
91
92
  <include>
92
- <context ref="def:c-like-comment"/>
93
+ <context ref="def:c-like-comment" style-ref="comment"/>
93
94
  <context ref="variable"/>
94
95
  <context ref="string"/>
95
96
  <context ref="keywords"/>
@@ -0,0 +1,267 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <!--
3
+
4
+ Author: Randy Abernethy <ra@apache.org>
5
+
6
+ GtkSourceView is free software; you can redistribute it and/or
7
+ modify it under the terms of the GNU Lesser General Public
8
+ License as published by the Free Software Foundation; either
9
+ version 2.1 of the License, or (at your option) any later version.
10
+
11
+ GtkSourceView is distributed in the hope that it will be useful,
12
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
13
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14
+ Lesser General Public License for more details.
15
+
16
+ You should have received a copy of the GNU Lesser General Public
17
+ License along with this library; if not, write to the Free Software
18
+ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
19
+
20
+ -->
21
+ <language id="thrift" _name="Thrift" version="2.0" _section="Source">
22
+ <metadata>
23
+ <property name="globs">*.thrift</property>
24
+ <property name="line-comment-start">//</property>
25
+ <property name="block-comment-start">/*</property>
26
+ <property name="block-comment-end">*/</property>
27
+ </metadata>
28
+
29
+ <styles>
30
+ <style id="comment" _name="Comment" map-to="def:comment"/>
31
+ <style id="type" _name="Data Type" map-to="def:type"/>
32
+ <style id="keyword" _name="Keyword" map-to="def:keyword"/>
33
+ <style id="string" _name="String" map-to="def:string"/>
34
+ </styles>
35
+
36
+ <definitions>
37
+
38
+ <define-regex id="ordinal" extended="true">
39
+ (?&lt;![\w\.]) ([1-9][0-9]*:) (?![\w\.])
40
+ </define-regex>
41
+
42
+ <context id="ordinal" style-ref="def:identifier">
43
+ <match>\%{ordinal}</match>
44
+ </context>
45
+
46
+ <context id="block-comment" style-ref="comment" class="comment" class-disabled="no-spell-check">
47
+ <start>/\*</start>
48
+ <end>\*/</end>
49
+ <include>
50
+ <context ref="def:escape"/>
51
+ <context ref="def:line-continue"/>
52
+ <context ref="def:in-comment"/>
53
+ </include>
54
+ </context>
55
+
56
+ <context id="line-comment" style-ref="comment" end-at-line-end="true" class="comment" class-disabled="no-spell-check">
57
+ <start>//</start>
58
+ <include>
59
+ <context ref="def:escape"/>
60
+ <context ref="def:line-continue"/>
61
+ <context ref="def:in-comment"/>
62
+ </include>
63
+ </context>
64
+
65
+ <context id="hash-line-comment" style-ref="comment" end-at-line-end="true" class="comment" class-disabled="no-spell-check">
66
+ <start>#</start>
67
+ <include>
68
+ <context ref="def:escape"/>
69
+ <context ref="def:line-continue"/>
70
+ <context ref="def:in-comment"/>
71
+ </include>
72
+ </context>
73
+
74
+ <context id="string" style-ref="string" end-at-line-end="true" class="string" class-disabled="no-spell-check">
75
+ <start>"</start>
76
+ <end>"</end>
77
+ <include>
78
+ <context ref="def:escape"/>
79
+ <context ref="def:line-continue"/>
80
+ </include>
81
+ </context>
82
+
83
+ <context id="single-quote-string" style-ref="string" end-at-line-end="true" class="string" class-disabled="no-spell-check">
84
+ <start>'</start>
85
+ <end>'</end>
86
+ <include>
87
+ <context ref="def:escape"/>
88
+ <context ref="def:line-continue"/>
89
+ </include>
90
+ </context>
91
+
92
+ <context id="keywords" style-ref="keyword">
93
+ <keyword>const</keyword>
94
+ <keyword>cpp_include</keyword>
95
+ <keyword>extends</keyword>
96
+ <keyword>false</keyword>
97
+ <keyword>include</keyword>
98
+ <keyword>namespace</keyword>
99
+ <keyword>oneway</keyword>
100
+ <keyword>optional</keyword>
101
+ <keyword>required</keyword>
102
+ <keyword>throws</keyword>
103
+ <keyword>true</keyword>
104
+ <keyword>typedef</keyword>
105
+ </context>
106
+
107
+ <context id="types" style-ref="type">
108
+ <keyword>binary</keyword>
109
+ <keyword>bool</keyword>
110
+ <keyword>byte</keyword>
111
+ <keyword>double</keyword>
112
+ <keyword>enum</keyword>
113
+ <keyword>exception</keyword>
114
+ <keyword>i16</keyword>
115
+ <keyword>i32</keyword>
116
+ <keyword>i64</keyword>
117
+ <keyword>list</keyword>
118
+ <keyword>map</keyword>
119
+ <keyword>service</keyword>
120
+ <keyword>set</keyword>
121
+ <keyword>string</keyword>
122
+ <keyword>struct</keyword>
123
+ <keyword>union</keyword>
124
+ <keyword>void</keyword>
125
+ </context>
126
+
127
+ <context id="reserved" style-ref="def:error">
128
+ <keyword>async</keyword>
129
+ <keyword>cocoa_prefix</keyword>
130
+ <keyword>cpp_namespace</keyword>
131
+ <keyword>csharp_namespace</keyword>
132
+ <keyword>delphi_namespace</keyword>
133
+ <keyword>java_package</keyword>
134
+ <keyword>perl_package</keyword>
135
+ <keyword>php_namespace</keyword>
136
+ <keyword>py_module</keyword>
137
+ <keyword>ruby_namespace</keyword>
138
+ <keyword>senum</keyword>
139
+ <keyword>smalltalk_category</keyword>
140
+ <keyword>slist</keyword>
141
+ <keyword>smalltalk_prefix</keyword>
142
+ <keyword>xsd_all</keyword>
143
+ <keyword>xsd_attrs</keyword>
144
+ <keyword>xsd_namespace</keyword>
145
+ <keyword>xsd_nillable</keyword>
146
+ <keyword>xsd_optional</keyword>
147
+ <keyword>BEGIN</keyword>
148
+ <keyword>END</keyword>
149
+ <keyword>__CLASS__</keyword>
150
+ <keyword>__DIR__</keyword>
151
+ <keyword>__FILE__</keyword>
152
+ <keyword>__FUNCTION__</keyword>
153
+ <keyword>__LINE__</keyword>
154
+ <keyword>__METHOD__</keyword>
155
+ <keyword>__NAMESPACE__</keyword>
156
+ <keyword>abstract</keyword>
157
+ <keyword>alias</keyword>
158
+ <keyword>and</keyword>
159
+ <keyword>args</keyword>
160
+ <keyword>as</keyword>
161
+ <keyword>assert</keyword>
162
+ <keyword>begin</keyword>
163
+ <keyword>break</keyword>
164
+ <keyword>case</keyword>
165
+ <keyword>catch</keyword>
166
+ <keyword>class</keyword>
167
+ <keyword>clone</keyword>
168
+ <keyword>continue</keyword>
169
+ <keyword>declare</keyword>
170
+ <keyword>def</keyword>
171
+ <keyword>default</keyword>
172
+ <keyword>del</keyword>
173
+ <keyword>delete</keyword>
174
+ <keyword>do</keyword>
175
+ <keyword>dynamic</keyword>
176
+ <keyword>elif</keyword>
177
+ <keyword>else</keyword>
178
+ <keyword>elseif</keyword>
179
+ <keyword>elsif</keyword>
180
+ <keyword>end</keyword>
181
+ <keyword>enddeclare</keyword>
182
+ <keyword>endfor</keyword>
183
+ <keyword>endforeach</keyword>
184
+ <keyword>endif</keyword>
185
+ <keyword>endswitch</keyword>
186
+ <keyword>endwhile</keyword>
187
+ <keyword>ensure</keyword>
188
+ <keyword>except</keyword>
189
+ <keyword>exec</keyword>
190
+ <keyword>finally</keyword>
191
+ <keyword>float</keyword>
192
+ <keyword>for</keyword>
193
+ <keyword>foreach</keyword>
194
+ <keyword>function</keyword>
195
+ <keyword>global</keyword>
196
+ <keyword>goto</keyword>
197
+ <keyword>if</keyword>
198
+ <keyword>implements</keyword>
199
+ <keyword>import</keyword>
200
+ <keyword>in</keyword>
201
+ <keyword>inline</keyword>
202
+ <keyword>instanceof</keyword>
203
+ <keyword>interface</keyword>
204
+ <keyword>is</keyword>
205
+ <keyword>lambda</keyword>
206
+ <keyword>module</keyword>
207
+ <keyword>native</keyword>
208
+ <keyword>new</keyword>
209
+ <keyword>next</keyword>
210
+ <keyword>nil</keyword>
211
+ <keyword>not</keyword>
212
+ <keyword>or</keyword>
213
+ <keyword>pass</keyword>
214
+ <keyword>public</keyword>
215
+ <keyword>print</keyword>
216
+ <keyword>private</keyword>
217
+ <keyword>protected</keyword>
218
+ <keyword>public</keyword>
219
+ <keyword>raise</keyword>
220
+ <keyword>redo</keyword>
221
+ <keyword>rescue</keyword>
222
+ <keyword>retry</keyword>
223
+ <keyword>register</keyword>
224
+ <keyword>return</keyword>
225
+ <keyword>self</keyword>
226
+ <keyword>sizeof</keyword>
227
+ <keyword>static</keyword>
228
+ <keyword>super</keyword>
229
+ <keyword>switch</keyword>
230
+ <keyword>synchronized</keyword>
231
+ <keyword>then</keyword>
232
+ <keyword>this</keyword>
233
+ <keyword>throw</keyword>
234
+ <keyword>transient</keyword>
235
+ <keyword>try</keyword>
236
+ <keyword>undef</keyword>
237
+ <keyword>union</keyword>
238
+ <keyword>unless</keyword>
239
+ <keyword>unsigned</keyword>
240
+ <keyword>until</keyword>
241
+ <keyword>use</keyword>
242
+ <keyword>var</keyword>
243
+ <keyword>virtual</keyword>
244
+ <keyword>volatile</keyword>
245
+ <keyword>when</keyword>
246
+ <keyword>while</keyword>
247
+ <keyword>with</keyword>
248
+ <keyword>xor</keyword>
249
+ <keyword>yield</keyword>
250
+ </context>
251
+
252
+ <context id="thrift" class="no-spell-check">
253
+ <include>
254
+ <context ref="block-comment"/>
255
+ <context ref="line-comment"/>
256
+ <context ref="hash-line-comment"/>
257
+ <context ref="string"/>
258
+ <context ref="single-quote-string"/>
259
+ <context ref="keywords"/>
260
+ <context ref="types"/>
261
+ <context ref="ordinal"/>
262
+ <context ref="reserved"/>
263
+ </include>
264
+ </context>
265
+
266
+ </definitions>
267
+ </language>
@@ -49,11 +49,13 @@
49
49
 
50
50
  <context id="elements" once-only="true" style-ref="element">
51
51
  <suffix>\b(?!\s*=)</suffix>
52
+ <keyword>analyze-string</keyword>
52
53
  <keyword>apply-imports</keyword>
53
54
  <keyword>apply-templates</keyword>
54
55
  <keyword>attribute-set</keyword>
55
56
  <keyword>attribute</keyword>
56
57
  <keyword>call-template</keyword>
58
+ <keyword>character-map</keyword>
57
59
  <keyword>choose</keyword>
58
60
  <keyword>comment</keyword>
59
61
  <keyword>copy-of</keyword>
@@ -62,20 +64,31 @@
62
64
  <keyword>document</keyword>
63
65
  <keyword>element</keyword>
64
66
  <keyword>fallback</keyword>
67
+ <keyword>for-each-group</keyword>
65
68
  <keyword>for-each</keyword>
69
+ <keyword>function</keyword>
66
70
  <keyword>if</keyword>
71
+ <keyword>import-schema</keyword>
67
72
  <keyword>import</keyword>
68
73
  <keyword>include</keyword>
69
74
  <keyword>key</keyword>
75
+ <keyword>matching-substring</keyword>
70
76
  <keyword>message</keyword>
71
77
  <keyword>namespace-alias</keyword>
78
+ <keyword>namespace</keyword>
72
79
  <keyword>number</keyword>
80
+ <keyword>next-match</keyword>
81
+ <keyword>non-matching-substring</keyword>
73
82
  <keyword>otherwise</keyword>
83
+ <keyword>output-character</keyword>
74
84
  <keyword>output</keyword>
75
85
  <keyword>param</keyword>
86
+ <keyword>perform-sort</keyword>
76
87
  <keyword>preserve-space</keyword>
77
88
  <keyword>processing-instruction</keyword>
89
+ <keyword>result-document</keyword>
78
90
  <keyword>script</keyword>
91
+ <keyword>sequence</keyword>
79
92
  <keyword>sort</keyword>
80
93
  <keyword>strip-space</keyword>
81
94
  <keyword>stylesheet</keyword>
@@ -123,7 +123,7 @@
123
123
  </include>
124
124
  </context>
125
125
  <context style-ref="keyword">
126
- <match>(\$(&lt;[\w\d_-]*&gt;)?[\$0-9]|[@][$0-9])</match>
126
+ <match>(\$(&lt;[\w\d_-]*&gt;)?[\$0-9]+|[@][$0-9]+)</match>
127
127
  </context>
128
128
  <context ref="c:c"/>
129
129
  </include>
@@ -44,7 +44,9 @@
44
44
 
45
45
  <!-- Global Settings -->
46
46
  <style name="current-line" background="#eeeeec"/>
47
+ <style name="current-line-number" background="#eeeeec"/>
47
48
  <style name="draw-spaces" foreground="#babdb6"/>
49
+ <style name="background-pattern" background="#f3f3f3"/>
48
50
 
49
51
  <!-- Bracket Matching -->
50
52
  <style name="bracket-match" foreground="white" background="gray" bold="true"/>
@@ -49,6 +49,8 @@
49
49
  <color name="bluish_grey" value="#777777"/>
50
50
  <color name="steelblue3" value="#4f94cd"/>
51
51
 
52
+ <color name="dark_medium_blue_blend" value="#00213F"/>
53
+
52
54
  <!-- Global Settings -->
53
55
 
54
56
  <style name="text" foreground="white" background="dark_blue"/>
@@ -58,6 +60,7 @@
58
60
  <style name="line-numbers" foreground="light_blue" background="black_blue"/>
59
61
  <style name="draw-spaces" foreground="bluish_grey"/>
60
62
  <style name="right-margin" foreground="light_grey" background="light_grey"/>
63
+ <style name="background-pattern" background="dark_medium_blue_blend"/>
61
64
 
62
65
  <!-- Bracket Matching -->
63
66
  <style name="bracket-match" background="steelblue3"/>
@@ -45,6 +45,7 @@
45
45
  <style name="bracket-match" bold="true"/>
46
46
  <style name="bracket-mismatch" background="red" bold="true"/>
47
47
  <style name="draw-spaces" foreground="#d3d7cf"/>
48
+ <style name="background-pattern" background="#f3f3f3"/>
48
49
 
49
50
  <!-- Search Matching -->
50
51
  <style name="search-match" background="yellow"/>