ver 2009.10.14

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.
Files changed (188) hide show
  1. data/CHANGELOG +1404 -0
  2. data/MANIFEST +187 -0
  3. data/Rakefile +30 -0
  4. data/TODO +169 -0
  5. data/bin/ver +19 -0
  6. data/config/detect.rb +109 -0
  7. data/config/keymap/vim.rb +239 -0
  8. data/config/rc.rb +0 -0
  9. data/config/scratch +3 -0
  10. data/config/syntax/ANTLR.json +275 -0
  11. data/config/syntax/ASP VB.net.json +228 -0
  12. data/config/syntax/ASP.json +135 -0
  13. data/config/syntax/ActionScript.json +168 -0
  14. data/config/syntax/Ada.json +108 -0
  15. data/config/syntax/Apache.json +342 -0
  16. data/config/syntax/AppleScript.json +721 -0
  17. data/config/syntax/Bibtex.json +253 -0
  18. data/config/syntax/Blog (HTML).json +47 -0
  19. data/config/syntax/Blog (Markdown).json +50 -0
  20. data/config/syntax/Blog (Text).json +45 -0
  21. data/config/syntax/Blog (Textile).json +45 -0
  22. data/config/syntax/Bulletin Board.json +428 -0
  23. data/config/syntax/C++.json +323 -0
  24. data/config/syntax/C.json +694 -0
  25. data/config/syntax/CSS.json +346 -0
  26. data/config/syntax/DOT.json +79 -0
  27. data/config/syntax/Diff.json +136 -0
  28. data/config/syntax/Dylan.json +104 -0
  29. data/config/syntax/Eiffel.json +128 -0
  30. data/config/syntax/Erlang.json +1636 -0
  31. data/config/syntax/F-Script.json +137 -0
  32. data/config/syntax/FXScript.json +260 -0
  33. data/config/syntax/Gri.json +141 -0
  34. data/config/syntax/HTML (Mason).json +207 -0
  35. data/config/syntax/HTML (Rails).json +52 -0
  36. data/config/syntax/HTML (Tcl).json +42 -0
  37. data/config/syntax/HTML for ASP.net.json +736 -0
  38. data/config/syntax/HTML-ASP.json +45 -0
  39. data/config/syntax/HTML.json +614 -0
  40. data/config/syntax/Haskell.json +407 -0
  41. data/config/syntax/Inform.json +80 -0
  42. data/config/syntax/Ini.json +91 -0
  43. data/config/syntax/Io.json +142 -0
  44. data/config/syntax/Java.json +745 -0
  45. data/config/syntax/JavaProperties.json +42 -0
  46. data/config/syntax/JavaScript.json +446 -0
  47. data/config/syntax/LaTeX Beamer.json +65 -0
  48. data/config/syntax/LaTeX Log.json +88 -0
  49. data/config/syntax/LaTeX.json +962 -0
  50. data/config/syntax/Lighttpd.json +93 -0
  51. data/config/syntax/Lisp.json +101 -0
  52. data/config/syntax/Literate Haskell.json +55 -0
  53. data/config/syntax/Logtalk.json +289 -0
  54. data/config/syntax/Lua.json +146 -0
  55. data/config/syntax/M.json +744 -0
  56. data/config/syntax/MEL.json +161 -0
  57. data/config/syntax/MIPS.json +114 -0
  58. data/config/syntax/Mail.json +224 -0
  59. data/config/syntax/Makefile.json +66 -0
  60. data/config/syntax/Markdown.json +644 -0
  61. data/config/syntax/Modula-3.json +80 -0
  62. data/config/syntax/Movable Type.json +348 -0
  63. data/config/syntax/OCaml.json +1391 -0
  64. data/config/syntax/Objective-C++.json +21 -0
  65. data/config/syntax/OpenGL.json +24 -0
  66. data/config/syntax/PHP.json +2184 -0
  67. data/config/syntax/Pascal.json +128 -0
  68. data/config/syntax/Perl.json +2091 -0
  69. data/config/syntax/Plain text.json +49 -0
  70. data/config/syntax/Processing.json +188 -0
  71. data/config/syntax/Quake3 Config.json +54 -0
  72. data/config/syntax/R.json +157 -0
  73. data/config/syntax/Rez.json +137 -0
  74. data/config/syntax/Ruby on Rails.json +170 -0
  75. data/config/syntax/Ruby.json +1753 -0
  76. data/config/syntax/SQL (Rails).json +31 -0
  77. data/config/syntax/SQL.json +435 -0
  78. data/config/syntax/SWIG.json +96 -0
  79. data/config/syntax/Scheme.json +359 -0
  80. data/config/syntax/Shell-Unix-Generic.json +1198 -0
  81. data/config/syntax/Slate.json +265 -0
  82. data/config/syntax/Smarty.json +110 -0
  83. data/config/syntax/Standard ML.json +322 -0
  84. data/config/syntax/Subversion commit message.json +62 -0
  85. data/config/syntax/Tcl.json +278 -0
  86. data/config/syntax/TeX Math.json +83 -0
  87. data/config/syntax/TeX.json +157 -0
  88. data/config/syntax/Textile.json +273 -0
  89. data/config/syntax/Twiki.json +436 -0
  90. data/config/syntax/Vectorscript.json +97 -0
  91. data/config/syntax/XML strict.json +148 -0
  92. data/config/syntax/XML.json +301 -0
  93. data/config/syntax/XSL.json +96 -0
  94. data/config/syntax/YAML.json +293 -0
  95. data/config/syntax/iCalendar.json +51 -0
  96. data/config/syntax/reStructuredText.json +403 -0
  97. data/config/theme/Active4D.json +260 -0
  98. data/config/theme/All Hallow's Eve.json +171 -0
  99. data/config/theme/Amy.json +359 -0
  100. data/config/theme/BBEdit.json +269 -0
  101. data/config/theme/Bespin.json +322 -0
  102. data/config/theme/Blackboard.json +215 -0
  103. data/config/theme/BoysAndGirls01.json +156 -0
  104. data/config/theme/Brilliance Black.json +1695 -0
  105. data/config/theme/Brilliance Dull.json +1451 -0
  106. data/config/theme/Classic Modified.json +288 -0
  107. data/config/theme/Cobalt.json +345 -0
  108. data/config/theme/Cool Glow.json +215 -0
  109. data/config/theme/Dawn.json +258 -0
  110. data/config/theme/Eiffel.json +270 -0
  111. data/config/theme/Espresso Libre.json +247 -0
  112. data/config/theme/Fluidvision.json +272 -0
  113. data/config/theme/IDLE.json +159 -0
  114. data/config/theme/LAZY.json +178 -0
  115. data/config/theme/Mac Classic.json +277 -0
  116. data/config/theme/MagicWB (Amiga).json +231 -0
  117. data/config/theme/Merbivore Soft.json +181 -0
  118. data/config/theme/Merbivore.json +181 -0
  119. data/config/theme/Monokai.json +177 -0
  120. data/config/theme/Notepad2.json +166 -0
  121. data/config/theme/Pastels on Dark.json +437 -0
  122. data/config/theme/RubyBlue.json +226 -0
  123. data/config/theme/Sin City 2.json +361 -0
  124. data/config/theme/Slate.json +270 -0
  125. data/config/theme/Slush & Poppies.json +232 -0
  126. data/config/theme/SpaceCadet.json +143 -0
  127. data/config/theme/Sunburst.json +415 -0
  128. data/config/theme/Twilight BG FG.json +633 -0
  129. data/config/theme/Twilight.json +321 -0
  130. data/config/theme/Whys Poignant.json +119 -0
  131. data/config/theme/Zenburnesque.json +237 -0
  132. data/config/theme/barf.json +155 -0
  133. data/config/theme/fake.json +418 -0
  134. data/config/theme/happydeluxe.json +114 -0
  135. data/config/theme/iLife 05.json +393 -0
  136. data/config/theme/iPlastic.json +177 -0
  137. data/config/theme/mintBlue Dark.json +414 -0
  138. data/config/theme/mintBlue.json +415 -0
  139. data/config/theme/monoindustrial.json +276 -0
  140. data/config/theme/starlight.json +67 -0
  141. data/config/tutorial +74 -0
  142. data/config/welcome +115 -0
  143. data/help/index.verh +14 -0
  144. data/lib/ver.rb +156 -0
  145. data/lib/ver/entry.rb +97 -0
  146. data/lib/ver/keymap.rb +96 -0
  147. data/lib/ver/layout.rb +107 -0
  148. data/lib/ver/methods.rb +19 -0
  149. data/lib/ver/methods/completion.rb +116 -0
  150. data/lib/ver/methods/control.rb +340 -0
  151. data/lib/ver/methods/insert.rb +6 -0
  152. data/lib/ver/methods/move.rb +65 -0
  153. data/lib/ver/methods/search.rb +33 -0
  154. data/lib/ver/methods/select.rb +145 -0
  155. data/lib/ver/methods/views.rb +21 -0
  156. data/lib/ver/mode.rb +160 -0
  157. data/lib/ver/options.rb +207 -0
  158. data/lib/ver/plist.rb +106 -0
  159. data/lib/ver/status.rb +67 -0
  160. data/lib/ver/syntax.rb +68 -0
  161. data/lib/ver/syntax/detector.rb +53 -0
  162. data/lib/ver/syntax/processor.rb +48 -0
  163. data/lib/ver/text.rb +374 -0
  164. data/lib/ver/textpow.rb +357 -0
  165. data/lib/ver/theme.rb +162 -0
  166. data/lib/ver/vendor/fuzzy_file_finder.rb +340 -0
  167. data/lib/ver/view.rb +163 -0
  168. data/lib/ver/view/entry.rb +28 -0
  169. data/lib/ver/view/list.rb +137 -0
  170. data/lib/ver/view/list/buffer.rb +27 -0
  171. data/lib/ver/view/list/fuzzy_file_finder.rb +44 -0
  172. data/lib/ver/view/list/syntax.rb +13 -0
  173. data/lib/ver/view/list/theme.rb +13 -0
  174. data/spec/keymap.rb +224 -0
  175. data/tasks/bacon.rake +49 -0
  176. data/tasks/changelog.rake +18 -0
  177. data/tasks/gem.rake +22 -0
  178. data/tasks/gem_installer.rake +76 -0
  179. data/tasks/grancher.rake +12 -0
  180. data/tasks/install_dependencies.rake +6 -0
  181. data/tasks/manifest.rake +4 -0
  182. data/tasks/plist2json.rake +35 -0
  183. data/tasks/rcov.rake +18 -0
  184. data/tasks/release.rake +12 -0
  185. data/tasks/reversion.rake +8 -0
  186. data/tasks/syntax_list.rake +31 -0
  187. data/ver.gemspec +29 -0
  188. metadata +241 -0
@@ -0,0 +1,273 @@
1
+ {
2
+ "fileTypes": [
3
+ "textile"
4
+ ],
5
+ "firstLineMatch": "textile",
6
+ "keyEquivalent": "^~T",
7
+ "name": "Textile",
8
+ "patterns": [
9
+ {
10
+ "begin": "(^h[1-6]([<>=()]+)?)(\\([^)]*\\)|{[^}]*})*(\\.)",
11
+ "captures": {
12
+ "1": {
13
+ "name": "entity.name.tag.heading.textile"
14
+ },
15
+ "3": {
16
+ "name": "entity.name.type.textile"
17
+ },
18
+ "4": {
19
+ "name": "entity.name.tag.heading.textile"
20
+ }
21
+ },
22
+ "end": "^$",
23
+ "name": "markup.heading.textile",
24
+ "patterns": [
25
+ {
26
+ "include": "#inline"
27
+ },
28
+ {
29
+ "include": "text.html.basic"
30
+ }
31
+ ]
32
+ },
33
+ {
34
+ "begin": "(^bq([<>=()]+)?)(\\([^)]*\\)|{[^}]*})*(\\.)",
35
+ "captures": {
36
+ "1": {
37
+ "name": "entity.name.tag.blockquote.textile"
38
+ },
39
+ "3": {
40
+ "name": "entity.name.type.textile"
41
+ },
42
+ "4": {
43
+ "name": "entity.name.tag.blockquote.textile"
44
+ }
45
+ },
46
+ "end": "^$",
47
+ "name": "markup.quote.textile",
48
+ "patterns": [
49
+ {
50
+ "include": "#inline"
51
+ },
52
+ {
53
+ "include": "text.html.basic"
54
+ }
55
+ ]
56
+ },
57
+ {
58
+ "begin": "(^fn[0-9]+([<>=()]+)?)(\\([^)]*\\)|{[^}]*})*(\\.)",
59
+ "captures": {
60
+ "1": {
61
+ "name": "entity.name.tag.footnote.textile"
62
+ },
63
+ "3": {
64
+ "name": "entity.name.type.textile"
65
+ },
66
+ "4": {
67
+ "name": "entity.name.tag.footnote.textile"
68
+ }
69
+ },
70
+ "end": "^$",
71
+ "name": "markup.other.footnote.textile",
72
+ "patterns": [
73
+ {
74
+ "include": "#inline"
75
+ },
76
+ {
77
+ "include": "text.html.basic"
78
+ }
79
+ ]
80
+ },
81
+ {
82
+ "begin": "(^table([<>=()]+)?)(\\([^)]*\\)|{[^}]*})*(\\.)",
83
+ "captures": {
84
+ "1": {
85
+ "name": "entity.name.tag.footnote.textile"
86
+ },
87
+ "3": {
88
+ "name": "entity.name.type.textile"
89
+ },
90
+ "4": {
91
+ "name": "entity.name.tag.footnote.textile"
92
+ }
93
+ },
94
+ "end": "^$",
95
+ "name": "markup.other.table.textile",
96
+ "patterns": [
97
+ {
98
+ "include": "#inline"
99
+ },
100
+ {
101
+ "include": "text.html.basic"
102
+ }
103
+ ]
104
+ },
105
+ {
106
+ "begin": "^(?=\\S)",
107
+ "end": "^$",
108
+ "name": "meta.paragraph.textile",
109
+ "patterns": [
110
+ {
111
+ "captures": {
112
+ "1": {
113
+ "name": "entity.name.tag.paragraph.textile"
114
+ },
115
+ "3": {
116
+ "name": "entity.name.type.textile"
117
+ },
118
+ "4": {
119
+ "name": "entity.name.tag.paragraph.textile"
120
+ }
121
+ },
122
+ "match": "(^p([<>=()]+)?)(\\([^)]*\\)|{[^}]*})*(\\.)",
123
+ "name": "entity.name.section.paragraph.textile"
124
+ },
125
+ {
126
+ "include": "#inline"
127
+ },
128
+ {
129
+ "include": "text.html.basic"
130
+ }
131
+ ]
132
+ },
133
+ {
134
+ "comment": "Since html is valid in Textile include the html patterns",
135
+ "include": "text.html.basic"
136
+ }
137
+ ],
138
+ "repository": {
139
+ "inline": {
140
+ "patterns": [
141
+ {
142
+ "comment": "& is handled automagically by textile, so we match it to avoid text.html.basic from flagging it",
143
+ "match": "&(?![A-Za-z0-9]+;)",
144
+ "name": "text.html.textile"
145
+ },
146
+ {
147
+ "captures": {
148
+ "1": {
149
+ "name": "entity.name.type.textile"
150
+ }
151
+ },
152
+ "match": "^\\*+(\\([^)]*\\)|{[^}]*})*(\\s+|$)",
153
+ "name": "markup.list.unnumbered.textile"
154
+ },
155
+ {
156
+ "captures": {
157
+ "1": {
158
+ "name": "entity.name.type.textile"
159
+ }
160
+ },
161
+ "match": "^#+(\\([^)]*\\)|{[^}]*})*\\s+",
162
+ "name": "markup.list.numbered.textile"
163
+ },
164
+ {
165
+ "captures": {
166
+ "1": {
167
+ "name": "string.other.link.title.textile"
168
+ },
169
+ "2": {
170
+ "name": "string.other.link.description.title.textile"
171
+ },
172
+ "3": {
173
+ "name": "constant.other.reference.link.textile"
174
+ }
175
+ },
176
+ "match": "(?x)\n\t\t\t\t\t\t\t\t\"\t\t\t\t\t\t\t\t# Start name, etc\n\t\t\t\t\t\t\t\t\t(?:\t\t\t\t\t\t\t# Attributes\n\t\t\t\t\t\t\t\t\t\t# I swear, this is how the language is defined,\n\t\t\t\t\t\t\t\t\t\t# couldnt make it up if I tried.\n\t\t\t\t\t\t\t\t\t\t(?:\\([^)]+\\))?(?:\\{[^}]+\\})?(?:\\[[^\\]]+\\])?\n\t\t\t\t\t\t\t\t\t\t\t# Class, Style, Lang\n\t\t\t\t\t\t\t\t\t | (?:\\{[^}]+\\})?(?:\\[[^\\]]+\\])?(?:\\([^)]+\\))?\n\t\t\t\t\t\t\t\t\t\t\t# Style, Lang, Class\n\t\t\t\t\t\t\t\t\t | (?:\\[[^\\]]+\\])?(?:\\{[^}]+\\})?(?:\\([^)]+\\))?\n\t\t\t\t\t\t\t\t\t\t\t# Lang, Style, Class\n\t\t\t\t\t\t\t\t\t)?\n\t\t\t\t\t\t\t\t\t([^\"]+?)\t\t\t\t\t# Link name\n\t\t\t\t\t\t\t\t\t\\s?\t\t\t\t\t\t\t# Optional whitespace\n\t\t\t\t\t\t\t\t\t(?:\\(([^)]+?)\\))?\n\t\t\t\t\t\t\t\t\":\t\t\t\t\t\t\t\t# End name\n\t\t\t\t\t\t\t\t(\\w[-\\w_]*)\t\t\t\t\t\t# Linkref\n\t\t\t\t\t\t\t\t(?=[^\\w\\\/;]*?(<|\\s|$))\t\t\t# Catch closing punctuation\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t# and end of meta.link\n\t\t\t\t\t",
177
+ "name": "meta.link.reference.textile"
178
+ },
179
+ {
180
+ "captures": {
181
+ "1": {
182
+ "name": "string.other.link.title.textile"
183
+ },
184
+ "2": {
185
+ "name": "string.other.link.description.title.textile"
186
+ },
187
+ "3": {
188
+ "name": "markup.underline.link.textile"
189
+ }
190
+ },
191
+ "match": "(?x)\n\t\t\t\t\t\t\t\t\"\t\t\t\t\t\t\t\t# Start name, etc\n\t\t\t\t\t\t\t\t\t(?:\t\t\t\t\t\t\t# Attributes\n\t\t\t\t\t\t\t\t\t\t# I swear, this is how the language is defined,\n\t\t\t\t\t\t\t\t\t\t# couldnt make it up if I tried.\n\t\t\t\t\t\t\t\t\t\t(?:\\([^)]+\\))?(?:\\{[^}]+\\})?(?:\\[[^\\]]+\\])?\n\t\t\t\t\t\t\t\t\t\t\t# Class, Style, Lang\n\t\t\t\t\t\t\t\t\t | (?:\\{[^}]+\\})?(?:\\[[^\\]]+\\])?(?:\\([^)]+\\))?\n\t\t\t\t\t\t\t\t\t\t\t# Style, Lang, Class\n\t\t\t\t\t\t\t\t\t | (?:\\[[^\\]]+\\])?(?:\\{[^}]+\\})?(?:\\([^)]+\\))?\n\t\t\t\t\t\t\t\t\t\t\t# Lang, Style, Class\n\t\t\t\t\t\t\t\t\t)?\n\t\t\t\t\t\t\t\t\t([^\"]+?)\t\t\t\t\t# Link name\n\t\t\t\t\t\t\t\t\t\\s?\t\t\t\t\t\t\t# Optional whitespace\n\t\t\t\t\t\t\t\t\t(?:\\(([^)]+?)\\))?\n\t\t\t\t\t\t\t\t\":\t\t\t\t\t\t\t\t# End Name\n\t\t\t\t\t\t\t\t(\\S*?(?:\\w|\\\/|;))\t\t\t\t# URL\n\t\t\t\t\t\t\t\t(?=[^\\w\\\/;]*?(<|\\s|$))\t\t\t# Catch closing punctuation\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t# and end of meta.link\n\t\t\t\t\t",
192
+ "name": "meta.link.inline.textile"
193
+ },
194
+ {
195
+ "captures": {
196
+ "2": {
197
+ "name": "markup.underline.link.image.textile"
198
+ },
199
+ "3": {
200
+ "name": "string.other.link.description.textile"
201
+ },
202
+ "4": {
203
+ "name": "markup.underline.link.textile"
204
+ }
205
+ },
206
+ "match": "(?x)\n\t\t\t\t\t\t\t\t\\!\t\t\t\t\t\t\t\t\t\t# Open image\n\t\t\t\t\t\t\t\t(\\<|\\=|\\>)?\t\t\t\t\t\t\t\t# Optional alignment\n\t\t\t\t\t\t\t\t(?:\t\t\t\t\t\t\t\t\t\t# Attributes\n\t\t\t\t\t\t\t\t\t# I swear, this is how the language is defined,\n\t\t\t\t\t\t\t\t\t# couldnt make it up if I tried.\n\t\t\t\t\t\t\t\t\t(?:\\([^)]+\\))?(?:\\{[^}]+\\})?(?:\\[[^\\]]+\\])?\n\t\t\t\t\t\t\t\t\t\t# Class, Style, Lang\n\t\t\t\t\t\t\t\t | (?:\\{[^}]+\\})?(?:\\[[^\\]]+\\])?(?:\\([^)]+\\))?\n\t\t\t\t\t\t\t\t\t\t# Style, Lang, Class\n\t\t\t\t\t\t\t\t | (?:\\[[^\\]]+\\])?(?:\\{[^}]+\\})?(?:\\([^)]+\\))?\n\t\t\t\t\t\t\t\t\t\t# Lang, Style, Class\n\t\t\t\t\t\t\t\t)?\n\t\t\t\t\t\t\t\t(?:\\.[ ])? \t\t\t\t\t# Optional\n\t\t\t\t\t\t\t\t([^\\s(!]+?) \t\t\t\t\t# Image URL\n\t\t\t\t\t\t\t\t\\s? \t\t\t\t\t\t# Optional space\n\t\t\t\t\t\t\t\t(?:\\(((?:[^\\(\\)]|\\([^\\)]+\\))+?)\\))? \t# Optional title\n\t\t\t\t\t\t\t\t\\!\t\t\t\t\t\t\t\t\t\t# Close image\n\t\t\t\t\t\t\t\t(?:\n\t\t\t\t\t\t\t\t\t:\n\t\t\t\t\t\t\t\t\t(\\S*?(?:\\w|\\\/|;))\t\t\t\t\t# URL\n\t\t\t\t\t\t\t\t\t(?=[^\\w\\\/;]*?(<|\\s|$))\t\t\t\t# Catch closing punctuation\n\t\t\t\t\t\t\t\t)?\n\t\t\t\t\t",
207
+ "name": "meta.image.inline.textile"
208
+ },
209
+ {
210
+ "captures": {
211
+ "1": {
212
+ "name": "entity.name.type.textile"
213
+ }
214
+ },
215
+ "match": "\\|(\\([^)]*\\)|{[^}]*})*(\\\\\\||.)+\\|",
216
+ "name": "markup.other.table.cell.textile"
217
+ },
218
+ {
219
+ "captures": {
220
+ "3": {
221
+ "name": "entity.name.type.textile"
222
+ }
223
+ },
224
+ "match": "\\B(\\*\\*?)((\\([^)]*\\)|{[^}]*}|\\[[^]]+\\]){0,3})(\\S.*?\\S|\\S)\\1\\B",
225
+ "name": "markup.bold.textile"
226
+ },
227
+ {
228
+ "captures": {
229
+ "2": {
230
+ "name": "entity.name.type.textile"
231
+ }
232
+ },
233
+ "match": "\\B-((\\([^)]*\\)|{[^}]*}|\\[[^]]+\\]){0,3})(\\S.*?\\S|\\S)-\\B",
234
+ "name": "markup.deleted.textile"
235
+ },
236
+ {
237
+ "captures": {
238
+ "2": {
239
+ "name": "entity.name.type.textile"
240
+ }
241
+ },
242
+ "match": "\\B\\+((\\([^)]*\\)|{[^}]*}|\\[[^]]+\\]){0,3})(\\S.*?\\S|\\S)\\+\\B",
243
+ "name": "markup.inserted.textile"
244
+ },
245
+ {
246
+ "captures": {
247
+ "2": {
248
+ "name": "entity.name.type.textile"
249
+ }
250
+ },
251
+ "match": "(?:\\b|\\s)_((\\([^)]*\\)|{[^}]*}|\\[[^]]+\\]){0,3})(\\S.*?\\S|\\S)_(?:\\b|\\s)",
252
+ "name": "markup.italic.textile"
253
+ },
254
+ {
255
+ "captures": {
256
+ "3": {
257
+ "name": "entity.name.type.textile"
258
+ }
259
+ },
260
+ "match": "\\B([@\\^~%]|\\?\\?)((\\([^)]*\\)|{[^}]*}|\\[[^]]+\\]){0,3})(\\S.*?\\S|\\S)\\1",
261
+ "name": "markup.italic.phrasemodifiers.textile"
262
+ },
263
+ {
264
+ "comment": "Footnotes",
265
+ "match": "(?<!w)\\[[0-9+]\\]",
266
+ "name": "entity.name.tag.textile"
267
+ }
268
+ ]
269
+ }
270
+ },
271
+ "scopeName": "text.html.textile",
272
+ "uuid": "68F0B1A5-3274-4E85-8B3A-A481C5F5B194"
273
+ }
@@ -0,0 +1,436 @@
1
+ {
2
+ "keyEquivalent": "^~T",
3
+ "name": "Twiki",
4
+ "patterns": [
5
+ {
6
+ "begin": "\"",
7
+ "beginCaptures": {
8
+ "0": {
9
+ "name": "punctuation.definition.string.begin.twiki"
10
+ }
11
+ },
12
+ "end": "\"",
13
+ "endCaptures": {
14
+ "0": {
15
+ "name": "punctuation.definition.string.end.twiki"
16
+ }
17
+ },
18
+ "name": "string.quoted.double.twiki",
19
+ "patterns": [
20
+ {
21
+ "match": "\\\\.",
22
+ "name": "constant.character.escape.twiki"
23
+ }
24
+ ]
25
+ },
26
+ {
27
+ "captures": {
28
+ "1": {
29
+ "name": "punctuation.definition.heading.twiki"
30
+ },
31
+ "2": {
32
+ "name": "entity.name.function.twiki"
33
+ }
34
+ },
35
+ "match": "^(-{3}\\+{1,6})(.*)$",
36
+ "name": "markup.heading.twiki"
37
+ },
38
+ {
39
+ "begin": "(<)verbatim(>)|(<)pre(>)",
40
+ "captures": {
41
+ "1": {
42
+ "name": "punctuation.definition.tag.twiki"
43
+ },
44
+ "2": {
45
+ "name": "punctuation.definition.tag.twiki"
46
+ },
47
+ "3": {
48
+ "name": "punctuation.definition.tag.twiki"
49
+ },
50
+ "4": {
51
+ "name": "punctuation.definition.tag.twiki"
52
+ }
53
+ },
54
+ "end": "(<\/)verbatim(>)|(<\/)pre(>)",
55
+ "name": "markup.raw.twiki",
56
+ "patterns": [
57
+ {
58
+ "match": "\\\\.",
59
+ "name": "constant.character.escape.twiki"
60
+ }
61
+ ]
62
+ },
63
+ {
64
+ "match": "^-{3,}$\\n",
65
+ "name": "meta.separator.twiki"
66
+ },
67
+ {
68
+ "begin": "^ {3}([a-zA-Z0-9]+: )",
69
+ "captures": {
70
+ "1": {
71
+ "name": "markup.other.def.term.twiki"
72
+ },
73
+ "2": {
74
+ "name": "markup.other.def.def.twiki"
75
+ }
76
+ },
77
+ "end": "$\\n?",
78
+ "name": "markup.other.def.twiki",
79
+ "patterns": [
80
+ {
81
+ "include": "#list-paragraph"
82
+ }
83
+ ]
84
+ },
85
+ {
86
+ "begin": "^(\\|)",
87
+ "beginCaptures": {
88
+ "1": {
89
+ "name": "punctuation.definition.table.twiki"
90
+ }
91
+ },
92
+ "end": "^(?:\\s*$|(?=\\s*>|[=-]{3,}$))",
93
+ "name": "markup.other.table.twiki",
94
+ "patterns": [
95
+ {
96
+ "include": "#inline"
97
+ }
98
+ ]
99
+ },
100
+ {
101
+ "begin": "^ {3}(\\*)",
102
+ "beginCaptures": {
103
+ "1": {
104
+ "name": "punctuation.definition.list_item.twiki"
105
+ }
106
+ },
107
+ "end": "$\\n?",
108
+ "name": "markup.list.unnumbered.1.twiki",
109
+ "patterns": [
110
+ {
111
+ "include": "#list-paragraph"
112
+ }
113
+ ]
114
+ },
115
+ {
116
+ "begin": "^ {6}(\\*)",
117
+ "beginCaptures": {
118
+ "1": {
119
+ "name": "punctuation.definition.list_item.twiki"
120
+ }
121
+ },
122
+ "end": "$\\n?",
123
+ "name": "markup.list.unnumbered.2.twiki",
124
+ "patterns": [
125
+ {
126
+ "include": "#list-paragraph"
127
+ }
128
+ ]
129
+ },
130
+ {
131
+ "begin": "^ {9}(\\*)",
132
+ "beginCaptures": {
133
+ "1": {
134
+ "name": "punctuation.definition.list_item.twiki"
135
+ }
136
+ },
137
+ "end": "$\\n?",
138
+ "name": "markup.list.unnumbered.3.twiki",
139
+ "patterns": [
140
+ {
141
+ "include": "#list-paragraph"
142
+ }
143
+ ]
144
+ },
145
+ {
146
+ "begin": "^ {12}(\\*)",
147
+ "beginCaptures": {
148
+ "1": {
149
+ "name": "punctuation.definition.list_item.twiki"
150
+ }
151
+ },
152
+ "end": "$\\n?",
153
+ "name": "markup.list.unnumbered.4.twiki",
154
+ "patterns": [
155
+ {
156
+ "include": "#list-paragraph"
157
+ }
158
+ ]
159
+ },
160
+ {
161
+ "begin": "^ {15}(\\*)",
162
+ "beginCaptures": {
163
+ "1": {
164
+ "name": "punctuation.definition.list_item.twiki"
165
+ }
166
+ },
167
+ "end": "$\\n?",
168
+ "name": "markup.list.unnumbered.5.twiki",
169
+ "patterns": [
170
+ {
171
+ "include": "#list-paragraph"
172
+ }
173
+ ]
174
+ },
175
+ {
176
+ "begin": "^ {18}(\\*)",
177
+ "beginCaptures": {
178
+ "1": {
179
+ "name": "punctuation.definition.list_item.twiki"
180
+ }
181
+ },
182
+ "end": "$\\n?",
183
+ "name": "markup.list.unnumbered.6.twiki",
184
+ "patterns": [
185
+ {
186
+ "include": "#list-paragraph"
187
+ }
188
+ ]
189
+ },
190
+ {
191
+ "begin": "^ {3}\\d",
192
+ "end": "$\\n?",
193
+ "name": "markup.list.numbered.1.twiki",
194
+ "patterns": [
195
+ {
196
+ "include": "#numlist-paragraph"
197
+ }
198
+ ]
199
+ },
200
+ {
201
+ "begin": "^ {6}\\d",
202
+ "end": "$\\n?",
203
+ "name": "markup.list.numbered.2.twiki",
204
+ "patterns": [
205
+ {
206
+ "include": "#numlist-paragraph"
207
+ }
208
+ ]
209
+ },
210
+ {
211
+ "begin": "^ {9}\\d",
212
+ "end": "$\\n?",
213
+ "name": "markup.list.numbered.3.twiki",
214
+ "patterns": [
215
+ {
216
+ "include": "#numlist-paragraph"
217
+ }
218
+ ]
219
+ },
220
+ {
221
+ "begin": "^ {12}\\d",
222
+ "end": "$\\n?",
223
+ "name": "markup.list.numbered.4.twiki",
224
+ "patterns": [
225
+ {
226
+ "include": "#numlist-paragraph"
227
+ }
228
+ ]
229
+ },
230
+ {
231
+ "begin": "^ {15}\\d",
232
+ "end": "$\\n?",
233
+ "name": "markup.list.numbered.5.twiki",
234
+ "patterns": [
235
+ {
236
+ "include": "#numlist-paragraph"
237
+ }
238
+ ]
239
+ },
240
+ {
241
+ "begin": "^ {18}\\d",
242
+ "end": "$\\n?",
243
+ "name": "markup.list.numbered.6.twiki",
244
+ "patterns": [
245
+ {
246
+ "include": "#numlist-paragraph"
247
+ }
248
+ ]
249
+ },
250
+ {
251
+ "begin": "^(?=\\S)",
252
+ "end": "^\\s*$",
253
+ "name": "meta.paragraph.twiki",
254
+ "patterns": [
255
+ {
256
+ "include": "#inline"
257
+ },
258
+ {
259
+ "include": "text.html.basic"
260
+ }
261
+ ]
262
+ }
263
+ ],
264
+ "repository": {
265
+ "inline": {
266
+ "patterns": [
267
+ {
268
+ "captures": {
269
+ "1": {
270
+ "name": "punctuation.definition.bold.twiki"
271
+ },
272
+ "2": {
273
+ "name": "punctuation.definition.bold.twiki"
274
+ }
275
+ },
276
+ "match": "([\\*])[\\s\\w :.\\?']*([\\*])",
277
+ "name": "markup.bold.twiki"
278
+ },
279
+ {
280
+ "captures": {
281
+ "1": {
282
+ "name": "markup.bold.twiki"
283
+ },
284
+ "2": {
285
+ "name": "markup.italic.twiki"
286
+ },
287
+ "3": {
288
+ "name": "punctuation.definition.bold.twiki"
289
+ },
290
+ "4": {
291
+ "name": "punctuation.definition.italic.twiki"
292
+ },
293
+ "5": {
294
+ "name": "punctuation.definition.bold.twiki"
295
+ },
296
+ "6": {
297
+ "name": "punctuation.definition.italic.twiki"
298
+ }
299
+ },
300
+ "match": "((((__))[\\s\\w :.\\?']*((__))))"
301
+ },
302
+ {
303
+ "captures": {
304
+ "1": {
305
+ "name": "punctuation.definition.italic.twiki"
306
+ },
307
+ "2": {
308
+ "name": "punctuation.definition.italic.twiki"
309
+ }
310
+ },
311
+ "match": "\\b(_)[\\s\\w :.\\?']*(_)\\b",
312
+ "name": "markup.italic.twiki"
313
+ },
314
+ {
315
+ "captures": {
316
+ "1": {
317
+ "name": "markup.bold.twiki"
318
+ },
319
+ "2": {
320
+ "name": "markup.raw.fixed.twiki"
321
+ },
322
+ "3": {
323
+ "name": "punctuation.definition.bold.twiki"
324
+ },
325
+ "4": {
326
+ "name": "punctuation.definition.raw.fixed.twiki"
327
+ },
328
+ "5": {
329
+ "name": "punctuation.definition.bold.twiki"
330
+ },
331
+ "6": {
332
+ "name": "punctuation.definition.raw.fixed.twiki"
333
+ }
334
+ },
335
+ "match": "((((\\=\\=))[\\s\\w :.\\?']*((\\=\\=))))"
336
+ },
337
+ {
338
+ "captures": {
339
+ "1": {
340
+ "name": "punctuation.definition.raw.fixed.twiki"
341
+ },
342
+ "2": {
343
+ "name": "punctuation.definition.raw.fixed.twiki"
344
+ }
345
+ },
346
+ "match": "(\\=)[\\s\\w :.\\?']*(\\=)",
347
+ "name": "markup.raw.fixed.twiki"
348
+ },
349
+ {
350
+ "captures": {
351
+ "1": {
352
+ "name": "punctuation.definition.variable.twiki"
353
+ },
354
+ "3": {
355
+ "name": "punctuation.definition.variable.twiki"
356
+ }
357
+ },
358
+ "match": "(%)([A-Z0-9]+)(%)",
359
+ "name": "variable.other.twiki"
360
+ },
361
+ {
362
+ "captures": {
363
+ "1": {
364
+ "name": "punctuation.definition.constant.twiki"
365
+ },
366
+ "3": {
367
+ "name": "punctuation.definition.constant.twiki"
368
+ }
369
+ },
370
+ "match": "(&)([a-zA-Z0-9]+|#[0-9]+|#x[0-9a-fA-F]+)(;)",
371
+ "name": "constant.character.entity.html"
372
+ },
373
+ {
374
+ "captures": {
375
+ "1": {
376
+ "name": "punctuation.definition.link.twiki"
377
+ },
378
+ "2": {
379
+ "name": "markup.underline.link.twiki"
380
+ },
381
+ "3": {
382
+ "name": "punctuation.definition.link.twiki"
383
+ },
384
+ "4": {
385
+ "name": "punctuation.definition.link.twiki"
386
+ },
387
+ "5": {
388
+ "name": "string.other.link.title.twiki"
389
+ },
390
+ "6": {
391
+ "name": "punctuation.definition.link.twiki"
392
+ }
393
+ },
394
+ "match": "(\\[)([^]]*)(\\]) *(\\[)(.*?)(\\])",
395
+ "name": "meta.link.inline"
396
+ }
397
+ ]
398
+ },
399
+ "list-paragraph": {
400
+ "patterns": [
401
+ {
402
+ "begin": "\\G\\s+\\S",
403
+ "end": "^\\s*$",
404
+ "name": "markup.list.unnumbered.paragraph",
405
+ "patterns": [
406
+ {
407
+ "include": "#inline"
408
+ },
409
+ {
410
+ "include": "text.html.basic"
411
+ }
412
+ ]
413
+ }
414
+ ]
415
+ },
416
+ "numlist-paragraph": {
417
+ "patterns": [
418
+ {
419
+ "begin": "\\G\\s+\\S",
420
+ "end": "^\\s*$",
421
+ "name": "markup.list.numbered.paragraph",
422
+ "patterns": [
423
+ {
424
+ "include": "#inline"
425
+ },
426
+ {
427
+ "include": "text.html.basic"
428
+ }
429
+ ]
430
+ }
431
+ ]
432
+ }
433
+ },
434
+ "scopeName": "text.html.twiki",
435
+ "uuid": "B2FD7223-BE64-4134-B43D-F7443EA54CCD"
436
+ }