ver 2009.10.14 → 2009.11.28

Sign up to get free protection for your applications and to get access to all the features.
Files changed (318) hide show
  1. data/CHANGELOG +1094 -0
  2. data/MANIFEST +227 -25
  3. data/README.textile +185 -0
  4. data/bin/ver +96 -12
  5. data/config/detect.rb +73 -21
  6. data/config/keymap/emacs.rb +66 -0
  7. data/config/keymap/vim.rb +250 -140
  8. data/config/preferences/ANTLR.json +10 -0
  9. data/config/preferences/ASP vb.NET.json +3 -0
  10. data/config/preferences/ASP.json +15 -0
  11. data/config/preferences/ActionScript.json +755 -0
  12. data/config/preferences/Active4D.json +89 -0
  13. data/config/preferences/Ada.json +23 -0
  14. data/config/preferences/Ant.json +356 -0
  15. data/config/preferences/Apache.json +644 -0
  16. data/config/preferences/AppleScript.json +92 -0
  17. data/config/preferences/Bison.json +3 -0
  18. data/config/preferences/Blogging.json +3 -0
  19. data/config/preferences/C.json +127 -0
  20. data/config/preferences/CMake.json +41 -0
  21. data/config/preferences/CSS.json +461 -0
  22. data/config/preferences/CTags.json +3 -0
  23. data/config/preferences/CVS.json +3 -0
  24. data/config/preferences/ColdFusion.json +32 -0
  25. data/config/preferences/D.json +58 -0
  26. data/config/preferences/Darcs.json +3 -0
  27. data/config/preferences/Diff.json +67 -0
  28. data/config/preferences/DokuWiki.json +19 -0
  29. data/config/preferences/Doxygen.json +3 -0
  30. data/config/preferences/Dylan.json +3 -0
  31. data/config/preferences/Eiffel.json +59 -0
  32. data/config/preferences/Erlang.json +72 -0
  33. data/config/preferences/Experimental.json +1356 -0
  34. data/config/preferences/F-Script.json +87 -0
  35. data/config/preferences/FXScript.json +78 -0
  36. data/config/preferences/FileMerge.json +3 -0
  37. data/config/preferences/Fortran.json +158 -0
  38. data/config/preferences/GTD2.json +11 -0
  39. data/config/preferences/GTDAlt.json +20 -0
  40. data/config/preferences/GetBundle.json +3 -0
  41. data/config/preferences/Gettext.json +24 -0
  42. data/config/preferences/Graphviz.json +42 -0
  43. data/config/preferences/Greasemonkey.json +3 -0
  44. data/config/preferences/Gri.json +34 -0
  45. data/config/preferences/HTML.json +492 -0
  46. data/config/preferences/Haskell.json +72 -0
  47. data/config/preferences/Hotkey.json +3 -0
  48. data/config/preferences/ImageBrowser.json +3 -0
  49. data/config/preferences/Inform.json +3 -0
  50. data/config/preferences/Ini.json +60 -0
  51. data/config/preferences/Installer.json +3 -0
  52. data/config/preferences/Io.json +64 -0
  53. data/config/preferences/JSON.json +3 -0
  54. data/config/preferences/Java.json +86 -0
  55. data/config/preferences/JavaDoc.json +3 -0
  56. data/config/preferences/JavaScript.json +76 -0
  57. data/config/preferences/LaTeX.json +267 -0
  58. data/config/preferences/Lex/Flex.json +3 -0
  59. data/config/preferences/Lighttpd.json +3 -0
  60. data/config/preferences/LilyPond.json +77 -0
  61. data/config/preferences/Lisp.json +63 -0
  62. data/config/preferences/Logo.json +58 -0
  63. data/config/preferences/Logtalk.json +236 -0
  64. data/config/preferences/Lua.json +24 -0
  65. data/config/preferences/MEL.json +19 -0
  66. data/config/preferences/MIPS Assembler.json +26 -0
  67. data/config/preferences/MacPorts.json +3 -0
  68. data/config/preferences/Mail.json +3 -0
  69. data/config/preferences/Make.json +16 -0
  70. data/config/preferences/Markdown.json +102 -0
  71. data/config/preferences/Math.json +3 -0
  72. data/config/preferences/Matlab.json +128 -0
  73. data/config/preferences/Maven.json +308 -0
  74. data/config/preferences/Mediawiki.json +73 -0
  75. data/config/preferences/Mercurial.json +3 -0
  76. data/config/preferences/Modula.json +37 -0
  77. data/config/preferences/MoinMoin.json +52 -0
  78. data/config/preferences/Navigation.json +3 -0
  79. data/config/preferences/Nemerle.json +3 -0
  80. data/config/preferences/OCaml Code Completion.json +3 -0
  81. data/config/preferences/OCaml.json +163 -0
  82. data/config/preferences/ODCompletion.json +3 -0
  83. data/config/preferences/Objective-C.json +84 -0
  84. data/config/preferences/OpenGL.json +3331 -0
  85. data/config/preferences/Outlines.json +3 -0
  86. data/config/preferences/Pascal.json +60 -0
  87. data/config/preferences/Perforce.json +3 -0
  88. data/config/preferences/Perl.json +15 -0
  89. data/config/preferences/PmWiki.json +27 -0
  90. data/config/preferences/Postscript.json +15 -0
  91. data/config/preferences/Processing.json +32 -0
  92. data/config/preferences/Prolog.json +3 -0
  93. data/config/preferences/Propel.json +3 -0
  94. data/config/preferences/Python.json +38 -0
  95. data/config/preferences/Quake.json +15 -0
  96. data/config/preferences/R.json +33 -0
  97. data/config/preferences/Ragel.json +15 -0
  98. data/config/preferences/Regular Expressions.json +3 -0
  99. data/config/preferences/Remind.json +15 -0
  100. data/config/preferences/Rez.json +46 -0
  101. data/config/preferences/Ruby.json +98 -0
  102. data/config/preferences/S5 Slide Show.json +20 -0
  103. data/config/preferences/SCons.json +3 -0
  104. data/config/preferences/SQL.json +32 -0
  105. data/config/preferences/SSH Config.json +15 -0
  106. data/config/preferences/SVK.json +3 -0
  107. data/config/preferences/SWIG.json +3 -0
  108. data/config/preferences/SWeave.json +32 -0
  109. data/config/preferences/Scheme.json +35 -0
  110. data/config/preferences/Scilab.json +15 -0
  111. data/config/preferences/Setext.json +3 -0
  112. data/config/preferences/Shell Script.json +25 -0
  113. data/config/preferences/Slate.json +113 -0
  114. data/config/preferences/Source.json +132 -0
  115. data/config/preferences/Subversion.json +10 -0
  116. data/config/preferences/TODO.json +3 -0
  117. data/config/preferences/Tabular.json +3 -0
  118. data/config/preferences/Tcl.json +82 -0
  119. data/config/preferences/TerminalMate.json +112 -0
  120. data/config/preferences/Text.json +89 -0
  121. data/config/preferences/TextMate.json +38 -0
  122. data/config/preferences/Textile.json +76 -0
  123. data/config/preferences/Thrift.json +56 -0
  124. data/config/preferences/Transmit.json +3 -0
  125. data/config/preferences/Twiki.json +51 -0
  126. data/config/preferences/Txt2tags.json +81 -0
  127. data/config/preferences/Vectorscript.json +1280 -0
  128. data/config/preferences/XML.json +60 -0
  129. data/config/preferences/Xcode.json +3 -0
  130. data/config/preferences/YAML.json +24 -0
  131. data/config/preferences/iCalendar.json +10 -0
  132. data/config/preferences/iTerm.json +36 -0
  133. data/config/preferences/reStructuredText.json +48 -0
  134. data/config/rc.rb +49 -0
  135. data/config/syntax/ANTLR.json +5 -5
  136. data/config/syntax/{ASP VB.net.json → ASP vb.NET.json } +3 -3
  137. data/config/syntax/ASP.json +1 -1
  138. data/config/syntax/ActionScript.json +6 -6
  139. data/config/syntax/Active4D Config.json +86 -0
  140. data/config/syntax/Active4D Library.json +20 -0
  141. data/config/syntax/Active4D.json +418 -0
  142. data/config/syntax/Ada.json +3 -3
  143. data/config/syntax/Ant.json +196 -0
  144. data/config/syntax/Apache.json +7 -7
  145. data/config/syntax/AppleScript.json +3 -3
  146. data/config/syntax/{Bibtex.json → BibTeX.json} +1 -1
  147. data/config/syntax/Bison.json +59 -0
  148. data/config/syntax/{Blog (HTML).json → Blog - HTML.json } +2 -2
  149. data/config/syntax/{Blog (Markdown).json → Blog - Markdown.json } +2 -2
  150. data/config/syntax/Blog (Text).json b/data/config/syntax/Blog - → Text.json +0 -0
  151. data/config/syntax/Blog (Textile).json b/data/config/syntax/Blog - → Textile.json +0 -0
  152. data/config/syntax/C++.json +3 -3
  153. data/config/syntax/C.json +13 -13
  154. data/config/syntax/CMake Listfile.json +171 -0
  155. data/config/syntax/CSS.json +6 -6
  156. data/config/syntax/CSV.json +108 -0
  157. data/config/syntax/ColdFusion.json +204 -0
  158. data/config/syntax/D.json +560 -0
  159. data/config/syntax/Diff.json +1 -1
  160. data/config/syntax/DokuWiki.json +412 -0
  161. data/config/syntax/Doxygen.json +80 -0
  162. data/config/syntax/Dylan.json +4 -4
  163. data/config/syntax/Erlang.json +5 -5
  164. data/config/syntax/F-Script.json +1 -1
  165. data/config/syntax/FXScript.json +5 -5
  166. data/config/syntax/Fortran - Modern.json +221 -0
  167. data/config/syntax/Fortran - Punchcard.json +468 -0
  168. data/config/syntax/GTD.json +39 -0
  169. data/config/syntax/GTDalt.json +233 -0
  170. data/config/syntax/Gettext.json +118 -0
  171. data/config/syntax/Go.json +555 -0
  172. data/config/syntax/{DOT.json → Graphviz (DOT).json } +3 -3
  173. data/config/syntax/Greasemonkey.json +56 -0
  174. data/config/syntax/Gri.json +4 -4
  175. data/config/syntax/{HTML-ASP.json → HTML (ASP).json } +1 -1
  176. data/config/syntax/{HTML for ASP.net.json → HTML (ASP.net).json } +19 -19
  177. data/config/syntax/HTML (Active4D).json +540 -0
  178. data/config/syntax/HTML (Erlang).json +31 -0
  179. data/config/syntax/HTML (Tcl).json +1 -1
  180. data/config/syntax/HTML.json +20 -20
  181. data/config/syntax/Haskell.json +3 -3
  182. data/config/syntax/Installer Distribution Script.json +135 -0
  183. data/config/syntax/Io.json +6 -6
  184. data/config/syntax/JSON.json +151 -0
  185. data/config/syntax/{JavaProperties.json → Java Properties.json } +2 -2
  186. data/config/syntax/Java Server Page (JSP).json +163 -0
  187. data/config/syntax/Java.json +7 -7
  188. data/config/syntax/JavaDoc.json +435 -0
  189. data/config/syntax/JavaScript.json +8 -8
  190. data/config/syntax/LaTeX Log.json +3 -3
  191. data/config/syntax/LaTeX Memoir.json +101 -0
  192. data/config/syntax/LaTeX.json +2 -2
  193. data/config/syntax/Lex-Flex.json +396 -0
  194. data/config/syntax/LilyPond.json +608 -0
  195. data/config/syntax/Logo.json +48 -0
  196. data/config/syntax/Logtalk.json +6 -6
  197. data/config/syntax/Lua.json +1 -1
  198. data/config/syntax/{M.json → MATLAB.json} +3 -3
  199. data/config/syntax/MEL.json +7 -7
  200. data/config/syntax/MIPS.json b/data/config/syntax/MIPS → Assembler.json +0 -0
  201. data/config/syntax/MacPorts Portfile.json +298 -0
  202. data/config/syntax/Mail.json +1 -1
  203. data/config/syntax/Markdown.json +6 -6
  204. data/config/syntax/Maven POM.json +774 -0
  205. data/config/syntax/Mediawiki.json +736 -0
  206. data/config/syntax/MoinMoin.json +335 -0
  207. data/config/syntax/MultiMarkdown.json +41 -0
  208. data/config/syntax/Nemerle.json +128 -0
  209. data/config/syntax/OCaml.json +4 -4
  210. data/config/syntax/OCamllex.json +307 -0
  211. data/config/syntax/OCamlyacc.json +346 -0
  212. data/config/syntax/Objective-C++.json +2 -2
  213. data/config/syntax/Objective-C.json +979 -0
  214. data/config/syntax/Octave.json +417 -0
  215. data/config/syntax/PHP.json +32 -32
  216. data/config/syntax/Pascal.json +1 -1
  217. data/config/syntax/Perl.json +8 -8
  218. data/config/syntax/{Plain text.json → Plain Text.json } +1 -1
  219. data/config/syntax/PmWiki.json +241 -0
  220. data/config/syntax/Postscript.json +206 -0
  221. data/config/syntax/Processing.json +8 -8
  222. data/config/syntax/Prolog.json +70 -0
  223. data/config/syntax/Python.json +1934 -0
  224. data/config/syntax/{Quake3 Config.json → Quake Style .cfg.json } +1 -1
  225. data/config/syntax/R.json +2 -2
  226. data/config/syntax/Ragel.json +362 -0
  227. data/config/syntax/Rd (R Documentation).json +119 -0
  228. data/config/syntax/Regular Expressions (Oniguruma).json +186 -0
  229. data/config/syntax/Regular Expressions (Python).json +188 -0
  230. data/config/syntax/Release Notes.json +78 -0
  231. data/config/syntax/Remind.json +461 -0
  232. data/config/syntax/Rez.json +5 -5
  233. data/config/syntax/Ruby Sass.json +497 -0
  234. data/config/syntax/Ruby.json +13 -13
  235. data/config/syntax/S5 Slide Show.json +85 -0
  236. data/config/syntax/SQL.json +11 -11
  237. data/config/syntax/SSH Config.json +55 -0
  238. data/config/syntax/SWIG.json +2 -2
  239. data/config/syntax/SWeave.json +139 -0
  240. data/config/syntax/Scheme.json +8 -8
  241. data/config/syntax/Scilab.json +69 -0
  242. data/config/syntax/Setext.json +247 -0
  243. data/config/syntax/{Shell-Unix-Generic.json → Shell Script (Bash).json } +4 -4
  244. data/config/syntax/Slate.json +5 -5
  245. data/config/syntax/Strings File.json +53 -0
  246. data/config/syntax/TSV.json +83 -0
  247. data/config/syntax/Tcl.json +1 -1
  248. data/config/syntax/TeX Math.json +2 -2
  249. data/config/syntax/TeX.json +2 -2
  250. data/config/syntax/Textile.json +9 -9
  251. data/config/syntax/Thrift.json +641 -0
  252. data/config/syntax/Twiki.json +1 -1
  253. data/config/syntax/Txt2tags.json +154 -0
  254. data/config/syntax/XML strict.json +4 -4
  255. data/config/syntax/XML.json +6 -6
  256. data/config/syntax/XSL.json +2 -2
  257. data/config/syntax/camlp4.json +63 -0
  258. data/config/syntax/mod_perl.json +72 -0
  259. data/config/syntax/reStructuredText.json +1 -1
  260. data/config/syntax/{Subversion commit message.json → svn-commit.tmp.json} +0 -0
  261. data/config/tutorial +23 -19
  262. data/config/welcome +3 -3
  263. data/lib/ver.rb +273 -62
  264. data/lib/ver/entry.rb +142 -26
  265. data/lib/ver/font.rb +51 -0
  266. data/lib/ver/help.rb +16 -0
  267. data/lib/ver/help/describe_key.rb +82 -0
  268. data/lib/ver/help/help_for_help.rb +39 -0
  269. data/lib/ver/hover_completion.rb +129 -0
  270. data/lib/ver/keymap.rb +95 -24
  271. data/lib/ver/layout.rb +107 -43
  272. data/lib/ver/methods.rb +24 -8
  273. data/lib/ver/methods/clipboard.rb +91 -0
  274. data/lib/ver/methods/completion.rb +146 -71
  275. data/lib/ver/methods/control.rb +203 -222
  276. data/lib/ver/methods/ctags.rb +55 -0
  277. data/lib/ver/methods/delete.rb +30 -0
  278. data/lib/ver/methods/help.rb +7 -0
  279. data/lib/ver/methods/insert.rb +233 -1
  280. data/lib/ver/methods/move.rb +181 -32
  281. data/lib/ver/methods/open.rb +208 -0
  282. data/lib/ver/methods/preview.rb +14 -0
  283. data/lib/ver/methods/save.rb +111 -0
  284. data/lib/ver/methods/search.rb +57 -7
  285. data/lib/ver/methods/select.rb +97 -17
  286. data/lib/ver/methods/shortcuts.rb +21 -0
  287. data/lib/ver/methods/views.rb +56 -1
  288. data/lib/ver/mode.rb +60 -14
  289. data/lib/ver/status.rb +97 -19
  290. data/lib/ver/syntax.rb +14 -6
  291. data/lib/ver/syntax/detector.rb +16 -5
  292. data/lib/ver/syntax/processor.rb +9 -3
  293. data/lib/ver/text.rb +258 -199
  294. data/lib/ver/text/index.rb +103 -0
  295. data/lib/ver/theme.rb +27 -16
  296. data/lib/ver/tooltip.rb +59 -0
  297. data/lib/ver/vendor/binary_search.rb +61 -0
  298. data/lib/ver/vendor/levenshtein.rb +57 -0
  299. data/lib/ver/{textpow.rb → vendor/textpow.rb} +31 -29
  300. data/lib/ver/view.rb +65 -41
  301. data/lib/ver/view/console.rb +171 -0
  302. data/lib/ver/view/entry.rb +9 -5
  303. data/lib/ver/view/list.rb +44 -29
  304. data/lib/ver/view/list/ex.rb +71 -0
  305. data/lib/ver/view/list/grep.rb +42 -0
  306. data/lib/ver/view/list/methods.rb +159 -0
  307. data/lib/ver/view/term.rb +249 -0
  308. data/tasks/syntax_list.rake +3 -2
  309. data/ver.gemspec +4 -4
  310. metadata +230 -28
  311. data/config/syntax/Bulletin Board.json +0 -428
  312. data/config/syntax/HTML (Mason).json +0 -207
  313. data/config/syntax/HTML (Rails).json +0 -52
  314. data/config/syntax/Movable Type.json +0 -348
  315. data/config/syntax/Ruby on Rails.json +0 -170
  316. data/config/syntax/SQL (Rails).json +0 -31
  317. data/config/syntax/Smarty.json +0 -110
  318. data/config/syntax/Standard ML.json +0 -322
@@ -1,170 +0,0 @@
1
- {
2
- "fileTypes": [
3
- "rb",
4
- "rxml",
5
- "builder"
6
- ],
7
- "foldingStartMarker": "(?x)^\n\t (\\s*+\n\t (module|class|def\n\t |unless|if\n\t |case\n\t |begin\n\t |for|while|until\n\t |( \"(\\\\.|[^\"])*+\" # eat a double quoted string\n\t | '(\\\\.|[^'])*+' # eat a single quoted string\n\t | [^#\"'] # eat all but comments and strings\n\t )*\n\t ( \\s (do|begin|case)\n\t | [-+=&|*\/~%^<>~] \\s*+ (if|unless)\n\t )\n\t )\\b\n\t (?! [^;]*+ ; .*? \\bend\\b )\n\t |( \"(\\\\.|[^\"])*+\" # eat a double quoted string\n\t | '(\\\\.|[^'])*+' # eat a single quoted string\n\t | [^#\"'] # eat all but comments and strings\n\t )*\n\t ( \\{ (?! [^}]*+ \\} )\n\t | \\[ (?! [^\\]]*+ \\] )\n\t )\n\t ).*$\n\t| [#] .*? \\(fold\\) \\s*+ $ # Sune\u2019s special marker\n\t",
8
- "foldingStopMarker": "(?x)\n\t\t( (^|;) \\s*+ end \\s*+ ([#].*)? $\n\t\t| ^ \\s*+ [}\\]] \\s*+ ([#].*)? $\n\t\t| [#] .*? \\(end\\) \\s*+ $ # Sune\u2019s special marker\n\t\t)",
9
- "keyEquivalent": "^~R",
10
- "name": "Ruby on Rails",
11
- "patterns": [
12
- {
13
- "begin": "(^\\s*)(?=class\\s+(([.a-zA-Z0-9_:]+ControllerTest(\\s*<\\s*[.a-zA-Z0-9_:]+)?)))",
14
- "comment": "Uses lookahead to match classes with the ControllerTest suffix; includes 'source.ruby' to avoid infinite recursion",
15
- "end": "^\\1(?=end)\\b",
16
- "name": "meta.rails.functional_test",
17
- "patterns": [
18
- {
19
- "include": "source.ruby"
20
- },
21
- {
22
- "include": "$self"
23
- }
24
- ]
25
- },
26
- {
27
- "begin": "(^\\s*)(?=class\\s+(([.a-zA-Z0-9_:]+Controller\\b(\\s*<\\s*[.a-zA-Z0-9_:]+)?)|(<<\\s*[.a-zA-Z0-9_:]+)))(?!.+\\bend\\b)",
28
- "comment": "Uses lookahead to match classes with the Controller suffix; includes 'source.ruby' to avoid infinite recursion",
29
- "end": "^\\1(?=end)\\b",
30
- "name": "meta.rails.controller",
31
- "patterns": [
32
- {
33
- "include": "source.ruby"
34
- },
35
- {
36
- "include": "$self"
37
- }
38
- ]
39
- },
40
- {
41
- "begin": "(^\\s*)(?=module\\s+((([A-Z]\\w*::)*)[A-Z]\\w*)Helper)",
42
- "comment": "Uses lookahead to match modules with the Helper suffix; includes 'source.ruby' to avoid infinite recursion",
43
- "end": "^\\1(?=end)\\b",
44
- "name": "meta.rails.helper",
45
- "patterns": [
46
- {
47
- "include": "source.ruby"
48
- },
49
- {
50
- "include": "$self"
51
- }
52
- ]
53
- },
54
- {
55
- "begin": "(^\\s*)(?=class\\s+(([.a-zA-Z0-9_:]+(\\s*<\\s*ActionMailer::Base))))",
56
- "comment": "Uses lookahead to match classes that inherit from ActionMailer::Base; includes 'source.ruby' to avoid infinite recursion",
57
- "end": "^\\1(?=end)\\b",
58
- "name": "meta.rails.mailer",
59
- "patterns": [
60
- {
61
- "include": "source.ruby"
62
- },
63
- {
64
- "include": "$self"
65
- }
66
- ]
67
- },
68
- {
69
- "begin": "(^\\s*)(?=class\\s+.+ActiveRecord::Base)",
70
- "comment": "Uses lookahead to match classes that (may) inherit from ActiveRecord::Base; includes 'source.ruby' to avoid infinite recursion",
71
- "end": "^\\1(?=end)\\b",
72
- "name": "meta.rails.model",
73
- "patterns": [
74
- {
75
- "include": "source.ruby"
76
- },
77
- {
78
- "include": "$self"
79
- }
80
- ]
81
- },
82
- {
83
- "begin": "(^\\s*)(?=class\\s+.+ActiveRecord::Migration)",
84
- "comment": "Uses lookahead to match classes that (may) inherit from ActiveRecord::Migration; includes 'source.ruby' to avoid infinite recursion",
85
- "end": "^\\1(?=end)\\b",
86
- "name": "meta.rails.migration",
87
- "patterns": [
88
- {
89
- "begin": "(^\\s*)(?=change_table)\\b",
90
- "comment": "Uses lookahead to match methods change_table; includes 'source.ruby' to avoid infinite recursion",
91
- "contentName": "meta.rails.migration.change_table",
92
- "end": "^\\1(?=end)\\b",
93
- "patterns": [
94
- {
95
- "include": "source.ruby"
96
- },
97
- {
98
- "include": "$self"
99
- }
100
- ]
101
- },
102
- {
103
- "begin": "(^\\s*)(?=create_table)\\b",
104
- "comment": "Uses lookahead to match methods create_table; includes 'source.ruby' to avoid infinite recursion",
105
- "contentName": "meta.rails.migration.create_table",
106
- "end": "^\\1(?=end)\\b",
107
- "patterns": [
108
- {
109
- "include": "source.ruby"
110
- },
111
- {
112
- "include": "$self"
113
- }
114
- ]
115
- },
116
- {
117
- "include": "source.ruby"
118
- },
119
- {
120
- "include": "$self"
121
- }
122
- ]
123
- },
124
- {
125
- "begin": "(^\\s*)(?=class\\s+(?![.a-zA-Z0-9_:]+ControllerTest)(([.a-zA-Z0-9_:]+Test(\\s*<\\s*[.a-zA-Z0-9_:]+)?)|(<<\\s*[.a-zA-Z0-9_:]+)))",
126
- "comment": "Uses lookahead to match classes with the Test suffix; includes 'source.ruby' to avoid infinite recursion",
127
- "end": "^\\1(?=end)\\b",
128
- "name": "meta.rails.unit_test",
129
- "patterns": [
130
- {
131
- "include": "source.ruby"
132
- },
133
- {
134
- "include": "$self"
135
- }
136
- ]
137
- },
138
- {
139
- "begin": "(^\\s*)ActionController::Routing::Routes",
140
- "comment": "Uses ActionController::Routing::Routes to determine it is a routes file; includes 'source.ruby' to avoid infinite recursion",
141
- "end": "^\\1(?=end)\\b",
142
- "name": "meta.rails.routes",
143
- "patterns": [
144
- {
145
- "include": "source.ruby"
146
- },
147
- {
148
- "include": "$self"
149
- }
150
- ]
151
- },
152
- {
153
- "match": "\\b(before_filter|skip_before_filter|skip_after_filter|after_filter|around_filter|filter|filter_parameter_logging|layout|require_dependency|render|render_action|render_text|render_file|render_template|render_nothing|render_component|render_without_layout|rescue_from|url_for|redirect_to|redirect_to_path|redirect_to_url|respond_to|helper|helper_method|model|service|observer|serialize|scaffold|verify|hide_action)\\b",
154
- "name": "support.function.actionpack.rails"
155
- },
156
- {
157
- "match": "\\b(named_scope|after_create|after_destroy|after_save|after_update|after_validation|after_validation_on_create|after_validation_on_update|before_create|before_destroy|before_save|before_update|before_validation|before_validation_on_create|before_validation_on_update|composed_of|belongs_to|has_one|has_many|has_and_belongs_to_many|validate|validate_on_create|validates_numericality_of|validate_on_update|validates_acceptance_of|validates_associated|validates_confirmation_of|validates_each|validates_format_of|validates_inclusion_of|validates_exclusion_of|validates_length_of|validates_presence_of|validates_size_of|validates_uniqueness_of|attr_protected|attr_accessible|attr_readonly)\\b",
158
- "name": "support.function.activerecord.rails"
159
- },
160
- {
161
- "match": "\\b(alias_method_chain|alias_attribute|delegate|cattr_accessor|mattr_accessor|returning)\\b",
162
- "name": "support.function.activesupport.rails"
163
- },
164
- {
165
- "include": "source.ruby"
166
- }
167
- ],
168
- "scopeName": "source.ruby.rails",
169
- "uuid": "54D6E91E-8F31-11D9-90C5-0011242E4184"
170
- }
@@ -1,31 +0,0 @@
1
- {
2
- "fileTypes": [
3
- "erbsql",
4
- "sql.erb"
5
- ],
6
- "foldingStartMarker": "\\s*\\(\\s*$",
7
- "foldingStopMarker": "^\\s*\\)",
8
- "keyEquivalent": "^~R",
9
- "name": "SQL (Rails)",
10
- "patterns": [
11
- {
12
- "begin": "<%+(?!>)=?",
13
- "end": "%>",
14
- "name": "source.ruby.rails.embedded.sql",
15
- "patterns": [
16
- {
17
- "match": "#.*?(?=%>)",
18
- "name": "comment.line.number-sign.ruby"
19
- },
20
- {
21
- "include": "source.ruby.rails"
22
- }
23
- ]
24
- },
25
- {
26
- "include": "source.sql"
27
- }
28
- ],
29
- "scopeName": "source.sql.ruby",
30
- "uuid": "D54FBDED-5481-4CC7-B75F-66465A499882"
31
- }
@@ -1,110 +0,0 @@
1
- {
2
- "fileTypes": [
3
-
4
- ],
5
- "foldingStartMarker": "(<(?i:(head|table|tr|div|style|script|ul|ol|form|dl))\\b.*?>|\\{\\{?(if|foreach|capture|literal|foreach|php|section|strip)|\\{\\s*$)",
6
- "foldingStopMarker": "(<\/(?i:(head|table|tr|div|style|script|ul|ol|form|dl))>|\\{\\{?\/(if|foreach|capture|literal|foreach|php|section|strip)|(^|\\s)\\})",
7
- "name": "Smarty",
8
- "patterns": [
9
- {
10
- "begin": "(?<=\\{)\\*",
11
- "captures": {
12
- "0": {
13
- "name": "punctuation.definition.comment.smarty"
14
- }
15
- },
16
- "end": "\\*(?=\\})",
17
- "name": "comment.block.smarty"
18
- },
19
- {
20
- "match": "\\b(if|else|elseif|foreach|foreachelse|section)\\b",
21
- "name": "keyword.control.smarty"
22
- },
23
- {
24
- "match": "\\b(capture|config_load|counter|cycle|debug|eval|fetch|include_php|include|insert|literal|math|strip|rdelim|ldelim|assign|html_[a-z_]*)\\b",
25
- "name": "support.function.built-in.smarty"
26
- },
27
- {
28
- "match": "\\b(and|or)\\b",
29
- "name": "keyword.operator.smarty"
30
- },
31
- {
32
- "match": "\\b(eq|neq|gt|lt|gte|lte|is|not|even|odd|not|mod|div|by)\\b",
33
- "name": "keyword.operator.other.smarty"
34
- },
35
- {
36
- "match": "\\|(capitalize|cat|count_characters|count_paragraphs|count_sentences|count_words|date_format|default|escape|indent|lower|nl2br|regex_replace|replace|spacify|string_format|strip_tags|strip|truncate|upper|wordwrap)",
37
- "name": "support.function.variable-modifier.smarty"
38
- },
39
- {
40
- "match": "\\b[a-zA-Z]+=",
41
- "name": "meta.attribute.smarty"
42
- },
43
- {
44
- "begin": "'",
45
- "beginCaptures": {
46
- "0": {
47
- "name": "punctuation.definition.string.begin.smarty"
48
- }
49
- },
50
- "end": "'",
51
- "endCaptures": {
52
- "0": {
53
- "name": "punctuation.definition.string.end.smarty"
54
- }
55
- },
56
- "name": "string.quoted.single.smarty",
57
- "patterns": [
58
- {
59
- "match": "\\\\.",
60
- "name": "constant.character.escape.smarty"
61
- }
62
- ]
63
- },
64
- {
65
- "begin": "\"",
66
- "beginCaptures": {
67
- "0": {
68
- "name": "punctuation.definition.string.begin.smarty"
69
- }
70
- },
71
- "end": "\"",
72
- "endCaptures": {
73
- "0": {
74
- "name": "punctuation.definition.string.end.smarty"
75
- }
76
- },
77
- "name": "string.quoted.double.smarty",
78
- "patterns": [
79
- {
80
- "match": "\\\\.",
81
- "name": "constant.character.escape.smarty"
82
- }
83
- ]
84
- },
85
- {
86
- "captures": {
87
- "1": {
88
- "name": "punctuation.definition.variable.smarty"
89
- }
90
- },
91
- "match": "\\b(\\$)Smarty\\.",
92
- "name": "variable.other.global.smarty"
93
- },
94
- {
95
- "captures": {
96
- "1": {
97
- "name": "punctuation.definition.variable.smarty"
98
- }
99
- },
100
- "match": "(\\$)[a-zA-Z_\\x{7f}-\\x{ff}][a-zA-Z0-9_\\x{7f}-\\x{ff}]*?\\b",
101
- "name": "variable.other.smarty"
102
- },
103
- {
104
- "match": "\\b(TRUE|FALSE|true|false)\\b",
105
- "name": "constant.language.smarty"
106
- }
107
- ],
108
- "scopeName": "source.smarty",
109
- "uuid": "4D6BBA54-E3FC-4296-9CA1-662B2AD537C6"
110
- }
@@ -1,322 +0,0 @@
1
- {
2
- "fileTypes": [
3
- "sml",
4
- "sig"
5
- ],
6
- "foldingStartMarker": "\\(\\*|\\b(struct|sig)\\b",
7
- "foldingStopMarker": "\\*\\)|\\bend\\b",
8
- "keyEquivalent": "^~S",
9
- "name": "Standard ML",
10
- "patterns": [
11
- {
12
- "include": "#comments"
13
- },
14
- {
15
- "match": "\\b(val|datatype|struct|as|let|in|abstype|local|where|case|of|fn|raise|exception|handle|ref|infix|infixr|before|end|structure|withtype)\\b",
16
- "name": "keyword.other.ml"
17
- },
18
- {
19
- "begin": "\\b(let)\\b",
20
- "captures": {
21
- "1": {
22
- "name": "keyword.other.ml"
23
- },
24
- "2": {
25
- "name": "keyword.other.ml"
26
- }
27
- },
28
- "end": "\\b(end)\\b",
29
- "name": "meta.exp.let.ml",
30
- "patterns": [
31
- {
32
- "include": "$self"
33
- }
34
- ]
35
- },
36
- {
37
- "include": "#sigexp"
38
- },
39
- {
40
- "match": "\\b(if|then|else)\\b",
41
- "name": "keyword.control.ml"
42
- },
43
- {
44
- "begin": "\\b(fun|and)\\s+([\\w]+)\\b",
45
- "captures": {
46
- "1": {
47
- "name": "keyword.control.fun.ml"
48
- },
49
- "2": {
50
- "name": "entity.name.function.ml"
51
- }
52
- },
53
- "end": "(?=val|type|eqtype|datatype|structure|local)",
54
- "name": "meta.definition.fun.ml",
55
- "patterns": [
56
- {
57
- "include": "source.ml"
58
- }
59
- ]
60
- },
61
- {
62
- "begin": "\"",
63
- "beginCaptures": {
64
- "0": {
65
- "name": "punctuation.definition.string.begin.ml"
66
- }
67
- },
68
- "end": "\"",
69
- "endCaptures": {
70
- "0": {
71
- "name": "punctuation.definition.string.end.ml"
72
- }
73
- },
74
- "name": "string.quoted.double.ml",
75
- "patterns": [
76
- {
77
- "match": "\\\\.",
78
- "name": "constant.character.escape.ml"
79
- }
80
- ]
81
- },
82
- {
83
- "captures": {
84
- "1": {
85
- "name": "punctuation.definition.constant.ml"
86
- },
87
- "3": {
88
- "name": "punctuation.definition.constant.ml"
89
- }
90
- },
91
- "match": "(#\")(\\\\)?.(\")",
92
- "name": "constant.character.ml"
93
- },
94
- {
95
- "match": "\\b\\d*\\.?\\d+\\b",
96
- "name": "constant.numeric.ml"
97
- },
98
- {
99
- "match": "\\b(andalso|orelse|not)\\b",
100
- "name": "keyword.operator.logical.ml"
101
- },
102
- {
103
- "begin": "(?x)\\b\n\t\t\t\t\t(functor|structure|signature|funsig)\\s+\n\t\t\t\t\t(\\w+)\\s* # identifier",
104
- "captures": {
105
- "1": {
106
- "name": "storage.type.module.binder.ml"
107
- },
108
- "2": {
109
- "name": "entity.name.type.module.ml"
110
- }
111
- },
112
- "end": "(?==|:|:>|\\()",
113
- "name": "meta.module.dec.ml"
114
- },
115
- {
116
- "match": "\\b(open)\\b",
117
- "name": "keyword.other.module.ml"
118
- },
119
- {
120
- "match": "\\b(nil|true|false|NONE|SOME)\\b",
121
- "name": "constant.language.ml"
122
- },
123
- {
124
- "begin": "\\b(eqtype|type)\\s+([a-zA-Z][a-zA-Z0-9'_]*)\\s+=",
125
- "captures": {
126
- "1": {
127
- "name": "keyword.other.typeabbrev.ml"
128
- },
129
- "2": {
130
- "name": "variable.other.typename.ml"
131
- }
132
- },
133
- "end": "(?==|end|fun|structure|functor|val|type|eqtype|where|datatype|exception)",
134
- "name": "meta.typeabbrev.ml",
135
- "patterns": [
136
-
137
- ]
138
- }
139
- ],
140
- "repository": {
141
- "comments": {
142
- "patterns": [
143
- {
144
- "begin": "\\(\\*",
145
- "captures": {
146
- "0": {
147
- "name": "punctuation.definition.comment.ml"
148
- }
149
- },
150
- "end": "\\*\\)",
151
- "name": "comment.block.ml",
152
- "patterns": [
153
- {
154
- "include": "#comments"
155
- }
156
- ]
157
- }
158
- ]
159
- },
160
- "sigexp": {
161
- "patterns": [
162
- {
163
- "begin": "\\b(sig)\\b",
164
- "captures": {
165
- "1": {
166
- "name": "keyword.other.delimiter.ml"
167
- },
168
- "2": {
169
- "name": "keyword.other.delimiter.ml"
170
- }
171
- },
172
- "end": "\\b(end)\\b",
173
- "name": "meta.module.sigdec.ml",
174
- "patterns": [
175
- {
176
- "include": "#comments"
177
- },
178
- {
179
- "include": "#spec"
180
- }
181
- ]
182
- }
183
- ]
184
- },
185
- "spec": {
186
- "patterns": [
187
- {
188
- "captures": {
189
- "1": {
190
- "name": "keyword.other.ml"
191
- },
192
- "2": {
193
- "name": "entity.name.type.abbrev.ml"
194
- }
195
- },
196
- "match": "\\b(type)\\s+([a-zA-Z][a-zA-Z0-9'_]*)",
197
- "name": "meta.spec.ml.type"
198
- },
199
- {
200
- "begin": "\\b(datatype)\\s+(\\(.*\\))?\\s*([a-zA-Z][a-zA-Z0-9'_]*)\\s*(?==)",
201
- "captures": {
202
- "1": {
203
- "name": "keyword.other.ml"
204
- },
205
- "3": {
206
- "name": "entity.name.type.datatype.ml"
207
- }
208
- },
209
- "end": "(?=val|type|eqtype|datatype|structure|include|\\(\\*)",
210
- "name": "meta.spec.ml.datatype",
211
- "patterns": [
212
- {
213
- "captures": {
214
- "1": {
215
- "name": "keyword.other.ml"
216
- },
217
- "2": {
218
- "name": "entity.name.type.datatype.ml"
219
- }
220
- },
221
- "match": "\\b(and)\\s+([a-zA-Z][a-zA-Z0-9'_]*)\\s*(?==)",
222
- "name": "meta.spec.ml.datatype"
223
- },
224
- {
225
- "captures": {
226
- "1": {
227
- "name": "variable.other.dcon.ml"
228
- },
229
- "2": {
230
- "name": "keyword.other.ml"
231
- }
232
- },
233
- "match": "(?x)\n\t\t\t\t\t\t\t=\\s*([a-zA-Z][a-zA-Z0-9'_]*)(\\s+of)?",
234
- "name": "meta.datatype.rule.main.ml"
235
- },
236
- {
237
- "captures": {
238
- "1": {
239
- "name": "variable.other.dcon.ml"
240
- },
241
- "2": {
242
- "name": "keyword.other.ml"
243
- }
244
- },
245
- "match": "\\|\\s*([a-zA-Z][a-zA-Z0-9'_]*)(\\s+of)?",
246
- "name": "meta.datatype.rule.other.ml"
247
- }
248
- ]
249
- },
250
- {
251
- "captures": {
252
- "1": {
253
- "name": "keyword.other.ml"
254
- }
255
- },
256
- "match": "\\b(val)\\s*([^:]+)\\s*:",
257
- "name": "meta.spec.ml.val"
258
- },
259
- {
260
- "begin": "\\b(exception)\\s*(\\w+)\\s*",
261
- "captures": {
262
- "1": {
263
- "name": "keyword.other.ml"
264
- },
265
- "2": {
266
- "name": "entity.name.type.exception.ml"
267
- }
268
- },
269
- "end": "(?=val|type|eqtype|datatype|structure|include|exception|end)",
270
- "name": "meta.spec.ml.exception"
271
- },
272
- {
273
- "begin": "\\b(structure)\\s*(\\w+)\\s*:",
274
- "captures": {
275
- "1": {
276
- "name": "keyword.other.ml"
277
- },
278
- "2": {
279
- "name": "entity.name.type.module.ml"
280
- }
281
- },
282
- "end": "(?=val|type|eqtype|datatype|structure|include|exception|end)",
283
- "name": "meta.spec.ml.structure",
284
- "patterns": [
285
- {
286
- "match": "\\b(sharing type)\\b",
287
- "name": "keyword.other.ml"
288
- },
289
- {
290
- "match": "\\b(sharing)\\b",
291
- "name": "keyword.other.ml"
292
- },
293
- {
294
- "match": "\\b(where)\\b",
295
- "name": "keyword.other.ml"
296
- },
297
- {
298
- "include": "#sigexp"
299
- },
300
- {
301
- "include": "#comments"
302
- }
303
- ]
304
- },
305
- {
306
- "captures": {
307
- "1": {
308
- "name": "keyword.other.ml"
309
- }
310
- },
311
- "match": "\\b(include)\\b",
312
- "name": "meta.spec.ml.include"
313
- },
314
- {
315
- "include": "#comments"
316
- }
317
- ]
318
- }
319
- },
320
- "scopeName": "source.ml",
321
- "uuid": "9B148AEA-F723-4EDE-8B7F-2F4FD730BC3A"
322
- }