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
@@ -72,16 +72,16 @@
72
72
  },
73
73
  {
74
74
  "comment": "\n\t\t\t\t\t\tThese functions are potentially dangerous because\n\t\t\t\t\t\tthey have side-effects which could affect other\n\t\t\t\t\t\tparts of the program.\n\t\t\t\t\t",
75
- "match": "(?x)\n\t\t\t\t\t\t(?<=(\\s|\\()) # preceded by space or (\n\t\t\t\t\t\t( set-(?:car|cdr)|\t\t\t\t # set car\/cdr\n\t\t\t\t\t\t (?:vector|string)-(?:fill|set) # fill\/set string\/vector\n\t\t\t\t\t\t)\n\t\t\t\t\t\t(!)\t\t\t# name ends with ! sign\n\t\t\t\t\t\t(?=(\\s|\\()) # followed by space or (\n\t\t\t\t\t",
75
+ "match": "(?x)\n\t\t\t\t\t\t(?<=(\\s|\\()) # preceded by space or (\n\t\t\t\t\t\t( set-(?:car|cdr)|\t\t\t\t # set car/cdr\n\t\t\t\t\t\t (?:vector|string)-(?:fill|set) # fill/set string/vector\n\t\t\t\t\t\t)\n\t\t\t\t\t\t(!)\t\t\t# name ends with ! sign\n\t\t\t\t\t\t(?=(\\s|\\()) # followed by space or (\n\t\t\t\t\t",
76
76
  "name": "support.function.with-side-effects.scheme"
77
77
  },
78
78
  {
79
- "comment": "\n\t\t\t\t\t\t+, -, *, \/, =, >, etc. \n\t\t\t\t\t",
80
- "match": "(?x)\n\t\t\t\t\t\t(?<=(\\s|\\()) # preceded by space or (\n\t\t\t\t\t\t( >=?|<=?|=|[*\/+-])\n\t\t\t\t\t\t(?=(\\s|\\()) # followed by space or (\n\t\t\t\t\t\t",
79
+ "comment": "\n\t\t\t\t\t\t+, -, *, /, =, >, etc. \n\t\t\t\t\t",
80
+ "match": "(?x)\n\t\t\t\t\t\t(?<=(\\s|\\()) # preceded by space or (\n\t\t\t\t\t\t( >=?|<=?|=|[*/+-])\n\t\t\t\t\t\t(?=(\\s|\\()) # followed by space or (\n\t\t\t\t\t\t",
81
81
  "name": "keyword.operator.arithmetic.scheme"
82
82
  },
83
83
  {
84
- "match": "(?x)\n\t\t\t\t\t\t(?<=(\\s|\\()) # preceded by space or (\n\t\t\t\t\t\t( append|apply|approximate|\n\t\t\t\t\t\t call-with-current-continuation|call\/cc|catch|\n\t\t\t\t\t\t construct-identifier|define-syntax|display|foo|\n\t\t\t\t\t\t for-each|force|cd|gen-counter|gen-loser|\n\t\t\t\t\t\t generate-identifier|last-pair|length|let-syntax|\n\t\t\t\t\t\t letrec-syntax|list|list-ref|list-tail|load|log|\n\t\t\t\t\t\t macro|magnitude|map|map-streams|max|member|memq|\n\t\t\t\t\t\t memv|min|newline|nil|not|peek-char|rationalize|\n\t\t\t\t\t\t read|read-char|return|reverse|sequence|substring|\n\t\t\t\t\t\t syntax|syntax-rules|transcript-off|transcript-on|\n\t\t\t\t\t\t truncate|unwrap-syntax|values-list|write|write-char|\n\t\t\t\t\t\t \n\t\t\t\t\t\t # cons, car, cdr, etc\n\t\t\t\t\t\t cons|c(a|d){1,4}r| \n \n\t\t\t\t\t\t # unary math operators\n\t\t\t\t\t\t abs|acos|angle|asin|assoc|assq|assv|atan|ceiling|\n\t\t\t\t\t\t cos|floor|round|sin|sqrt|tan|\n\t\t\t\t\t\t (?:real|imag)-part|numerator|denominator\n \n\t\t\t\t\t\t # other math operators\n\t\t\t\t\t\t modulo|exp|expt|remainder|quotient|lcm|\n \n\t\t\t\t\t\t # ports \/ files\n\t\t\t\t\t\t call-with-(?:input|output)-file|\n\t\t\t\t\t\t (?:close|current)-(?:input|output)-port|\n\t\t\t\t\t\t with-(?:input|output)-from-file|\n\t\t\t\t\t\t open-(?:input|output)-file|\n\t\t\t\t\t\t \n\t\t\t\t\t\t # char-\u00abfoo\u00bb\n\t\t\t\t\t\t char-(?:downcase|upcase|ready)|\n\t\t\t\t\t\t \n\t\t\t\t\t\t # make-\u00abfoo\u00bb\n\t\t\t\t\t\t make-(?:polar|promise|rectangular|string|vector)\n\t\t\t\t\t\t \n\t\t\t\t\t\t # string-\u00abfoo\u00bb, vector-\u00abfoo\u00bb\n\t\t\t\t\t\t string(?:-(?:append|copy|length|ref))?|\n\t\t\t\t\t\t vector(?:-length|-ref)\n\t\t\t\t\t\t)\n\t\t\t\t\t\t(?=(\\s|\\()) # followed by space or (\n\t\t\t\t\t",
84
+ "match": "(?x)\n\t\t\t\t\t\t(?<=(\\s|\\()) # preceded by space or (\n\t\t\t\t\t\t( append|apply|approximate|\n\t\t\t\t\t\t call-with-current-continuation|call/cc|catch|\n\t\t\t\t\t\t construct-identifier|define-syntax|display|foo|\n\t\t\t\t\t\t for-each|force|cd|gen-counter|gen-loser|\n\t\t\t\t\t\t generate-identifier|last-pair|length|let-syntax|\n\t\t\t\t\t\t letrec-syntax|list|list-ref|list-tail|load|log|\n\t\t\t\t\t\t macro|magnitude|map|map-streams|max|member|memq|\n\t\t\t\t\t\t memv|min|newline|nil|not|peek-char|rationalize|\n\t\t\t\t\t\t read|read-char|return|reverse|sequence|substring|\n\t\t\t\t\t\t syntax|syntax-rules|transcript-off|transcript-on|\n\t\t\t\t\t\t truncate|unwrap-syntax|values-list|write|write-char|\n\t\t\t\t\t\t \n\t\t\t\t\t\t # cons, car, cdr, etc\n\t\t\t\t\t\t cons|c(a|d){1,4}r| \n \n\t\t\t\t\t\t # unary math operators\n\t\t\t\t\t\t abs|acos|angle|asin|assoc|assq|assv|atan|ceiling|\n\t\t\t\t\t\t cos|floor|round|sin|sqrt|tan|\n\t\t\t\t\t\t (?:real|imag)-part|numerator|denominator\n \n\t\t\t\t\t\t # other math operators\n\t\t\t\t\t\t modulo|exp|expt|remainder|quotient|lcm|\n \n\t\t\t\t\t\t # ports / files\n\t\t\t\t\t\t call-with-(?:input|output)-file|\n\t\t\t\t\t\t (?:close|current)-(?:input|output)-port|\n\t\t\t\t\t\t with-(?:input|output)-from-file|\n\t\t\t\t\t\t open-(?:input|output)-file|\n\t\t\t\t\t\t \n\t\t\t\t\t\t # char-\u00abfoo\u00bb\n\t\t\t\t\t\t char-(?:downcase|upcase|ready)|\n\t\t\t\t\t\t \n\t\t\t\t\t\t # make-\u00abfoo\u00bb\n\t\t\t\t\t\t make-(?:polar|promise|rectangular|string|vector)\n\t\t\t\t\t\t \n\t\t\t\t\t\t # string-\u00abfoo\u00bb, vector-\u00abfoo\u00bb\n\t\t\t\t\t\t string(?:-(?:append|copy|length|ref))?|\n\t\t\t\t\t\t vector(?:-length|-ref)\n\t\t\t\t\t\t)\n\t\t\t\t\t\t(?=(\\s|\\()) # followed by space or (\n\t\t\t\t\t",
85
85
  "name": "support.function.general.scheme"
86
86
  }
87
87
  ]
@@ -95,7 +95,7 @@
95
95
  "name": "punctuation.section.quoted.symbol.scheme"
96
96
  }
97
97
  },
98
- "match": "(?x)\n\t\t\t\t\t\t(')\\s*\n\t\t\t\t\t\t([[:alnum:]][[:alnum:]!$%&*+-.\/:<=>?@^_~]*)\n\t\t\t\t\t",
98
+ "match": "(?x)\n\t\t\t\t\t\t(')\\s*\n\t\t\t\t\t\t([[:alnum:]][[:alnum:]!$%&*+-./:<=>?@^_~]*)\n\t\t\t\t\t",
99
99
  "name": "constant.other.symbol.scheme"
100
100
  },
101
101
  {
@@ -205,7 +205,7 @@
205
205
  "include": "#comment"
206
206
  },
207
207
  {
208
- "begin": "(?x)\n\t\t\t\t\t\t(?<=\\() # preceded by (\n\t\t\t\t\t\t(define)\\s+ # define\n\t\t\t\t\t\t(\\() # list of parameters\n\t\t\t\t\t\t ([[:alnum:]][[:alnum:]!$%&*+-.\/:<=>?@^_~]*)\n\t\t\t\t\t\t ((\\s+\n\t\t\t\t\t\t ([[:alnum:]][[:alnum:]!$%&*+-.\/:<=>?@^_~]*|[._])\n\t\t\t\t\t\t )*\n\t\t\t\t\t\t )\\s*\n\t\t\t\t\t\t(\\))\n\t\t\t\t\t",
208
+ "begin": "(?x)\n\t\t\t\t\t\t(?<=\\() # preceded by (\n\t\t\t\t\t\t(define)\\s+ # define\n\t\t\t\t\t\t(\\() # list of parameters\n\t\t\t\t\t\t ([[:alnum:]][[:alnum:]!$%&*+-./:<=>?@^_~]*)\n\t\t\t\t\t\t ((\\s+\n\t\t\t\t\t\t ([[:alnum:]][[:alnum:]!$%&*+-./:<=>?@^_~]*|[._])\n\t\t\t\t\t\t )*\n\t\t\t\t\t\t )\\s*\n\t\t\t\t\t\t(\\))\n\t\t\t\t\t",
209
209
  "captures": {
210
210
  "1": {
211
211
  "name": "keyword.control.scheme"
@@ -238,7 +238,7 @@
238
238
  ]
239
239
  },
240
240
  {
241
- "begin": "(?x)\n\t\t\t\t\t\t(?<=\\() # preceded by (\n\t\t\t\t\t\t(lambda)\\s+\n\t\t\t\t\t\t(\\() # opening paren\n\t\t\t\t\t\t((?:\n\t\t\t\t\t\t ([[:alnum:]][[:alnum:]!$%&*+-.\/:<=>?@^_~]*|[._])\n\t\t\t\t\t\t \\s+\n\t\t\t\t\t\t)*(?:\n\t\t\t\t\t\t ([[:alnum:]][[:alnum:]!$%&*+-.\/:<=>?@^_~]*|[._])\n\t\t\t\t\t\t)?)\n\t\t\t\t\t\t(\\)) # closing paren\n\t\t\t\t\t",
241
+ "begin": "(?x)\n\t\t\t\t\t\t(?<=\\() # preceded by (\n\t\t\t\t\t\t(lambda)\\s+\n\t\t\t\t\t\t(\\() # opening paren\n\t\t\t\t\t\t((?:\n\t\t\t\t\t\t ([[:alnum:]][[:alnum:]!$%&*+-./:<=>?@^_~]*|[._])\n\t\t\t\t\t\t \\s+\n\t\t\t\t\t\t)*(?:\n\t\t\t\t\t\t ([[:alnum:]][[:alnum:]!$%&*+-./:<=>?@^_~]*|[._])\n\t\t\t\t\t\t)?)\n\t\t\t\t\t\t(\\)) # closing paren\n\t\t\t\t\t",
242
242
  "captures": {
243
243
  "1": {
244
244
  "name": "keyword.control.scheme"
@@ -269,7 +269,7 @@
269
269
  ]
270
270
  },
271
271
  {
272
- "begin": "(?<=\\()(define)\\s([[:alnum:]][[:alnum:]!$%&*+-.\/:<=>?@^_~]*)\\s*.*?",
272
+ "begin": "(?<=\\()(define)\\s([[:alnum:]][[:alnum:]!$%&*+-./:<=>?@^_~]*)\\s*.*?",
273
273
  "captures": {
274
274
  "1": {
275
275
  "name": "keyword.control.scheme"
@@ -0,0 +1,69 @@
1
+ {
2
+ "fileTypes": [
3
+ "sce",
4
+ "sci",
5
+ "tst",
6
+ "dem"
7
+ ],
8
+ "foldingStartMarker": "^(?!.*//.*).*\\b(if|while|for|function|select)\\b",
9
+ "foldingStopMarker": "\\b(endfunction|end)\\b",
10
+ "name": "Scilab",
11
+ "patterns": [
12
+ {
13
+ "begin": "//",
14
+ "end": "$\\n?",
15
+ "name": "comment.line.double-slash.scilab"
16
+ },
17
+ {
18
+ "match": "\\b(([0-9]+\\.?[0-9]*)|(\\.[0-9]+))((e|E)(\\+|-)?[0-9]+)?\\b",
19
+ "name": "constant.numeric.scilab"
20
+ },
21
+ {
22
+ "match": "(%inf|%i|%pi|%eps|%e|%nan|%s|%t|%f)\\b",
23
+ "name": "support.constant.scilab"
24
+ },
25
+ {
26
+ "begin": "\"",
27
+ "end": "\"(?!\")",
28
+ "name": "string.quoted.double.scilab",
29
+ "patterns": [
30
+ {
31
+ "match": "''|\"\"",
32
+ "name": "constant.character.escape.scilab"
33
+ }
34
+ ]
35
+ },
36
+ {
37
+ "begin": "(?<![\\w\\]\\)])'",
38
+ "end": "'(?!')",
39
+ "name": "string.quoted.single.scilab",
40
+ "patterns": [
41
+ {
42
+ "match": "''|\"\"",
43
+ "name": "constant.character.escape.scilab"
44
+ }
45
+ ]
46
+ },
47
+ {
48
+ "captures": {
49
+ "1": {
50
+ "name": "keyword.control.scilab"
51
+ },
52
+ "2": {
53
+ "name": "entity.name.function.scilab"
54
+ }
55
+ },
56
+ "match": "\\b(function)\\s+(?:[^=]+=\\s*)?(\\w+)(?:\\s*\\(.*\\))?"
57
+ },
58
+ {
59
+ "match": "\\b(if|then|else|elseif|while|for|function|end|endfunction|return|select|case|break|global)\\b",
60
+ "name": "keyword.control.scilab"
61
+ },
62
+ {
63
+ "match": "\\.\\.\\.\\s*$",
64
+ "name": "punctuation.separator.continuation.scilab"
65
+ }
66
+ ],
67
+ "scopeName": "source.scilab",
68
+ "uuid": "14374AA3-A329-4623-8DFA-1ACC2CE222B9"
69
+ }
@@ -0,0 +1,247 @@
1
+ {
2
+ "fileTypes": [
3
+ "etx",
4
+ "etx.txt"
5
+ ],
6
+ "firstLineMatch": "setext",
7
+ "keyEquivalent": "^~S",
8
+ "name": "Setext",
9
+ "patterns": [
10
+ {
11
+ "include": "#inline"
12
+ },
13
+ {
14
+ "captures": {
15
+ "1": {
16
+ "name": "keyword.other.setext"
17
+ },
18
+ "2": {
19
+ "name": "punctuation.separator.key-value.setext"
20
+ },
21
+ "3": {
22
+ "name": "string.unquoted.setext"
23
+ }
24
+ },
25
+ "match": "^(Subject|Date|From)(:) (.+)",
26
+ "name": "meta.header.setext"
27
+ },
28
+ {
29
+ "match": "^={3,}\\s*$\\n?",
30
+ "name": "markup.heading.1.setext"
31
+ },
32
+ {
33
+ "match": "^-{3,}\\s*$\\n?",
34
+ "name": "markup.heading.2.setext"
35
+ },
36
+ {
37
+ "begin": "^(>)\\s",
38
+ "captures": {
39
+ "1": {
40
+ "name": "punctuation.definition.quote.setext"
41
+ }
42
+ },
43
+ "end": "$",
44
+ "name": "markup.quote.setext",
45
+ "patterns": [
46
+ {
47
+ "include": "#inline"
48
+ }
49
+ ]
50
+ },
51
+ {
52
+ "begin": "^([*])\\s",
53
+ "captures": {
54
+ "1": {
55
+ "name": "punctuation.definition.bullet.setext"
56
+ }
57
+ },
58
+ "end": "$",
59
+ "name": "markup.other.bullet.setext",
60
+ "patterns": [
61
+ {
62
+ "include": "#inline"
63
+ }
64
+ ]
65
+ },
66
+ {
67
+ "begin": "`",
68
+ "beginCaptures": {
69
+ "0": {
70
+ "name": "punctuation.definition.raw.begin.setext"
71
+ }
72
+ },
73
+ "end": "`",
74
+ "endCaptures": {
75
+ "0": {
76
+ "name": "punctuation.definition.raw.end.setext"
77
+ }
78
+ },
79
+ "name": "markup.raw.setext"
80
+ },
81
+ {
82
+ "captures": {
83
+ "1": {
84
+ "name": "punctuation.definition.note.setext"
85
+ },
86
+ "2": {
87
+ "name": "constant.other.reference.note.setext"
88
+ },
89
+ "3": {
90
+ "name": "punctuation.definition.reference.setext"
91
+ },
92
+ "4": {
93
+ "name": "string.quoted.other.note.setext"
94
+ },
95
+ "5": {
96
+ "name": "punctuation.definition.string.begin.setext"
97
+ },
98
+ "7": {
99
+ "name": "punctuation.definition.string.end.setext"
100
+ }
101
+ },
102
+ "match": "^(\\.{2}) ((_)[-\\w.]+) +((\\()(.+(\\))|.+))$",
103
+ "name": "meta.note.def.setext"
104
+ },
105
+ {
106
+ "captures": {
107
+ "1": {
108
+ "name": "punctuation.definition.reference.setext"
109
+ },
110
+ "2": {
111
+ "name": "constant.other.reference.link.setext"
112
+ },
113
+ "3": {
114
+ "name": "punctuation.definition.reference.setext"
115
+ },
116
+ "4": {
117
+ "name": "markup.underline.link.setext"
118
+ }
119
+ },
120
+ "match": "^(\\.{2}) ((_)[-\\w.]+) +(.{2,})$",
121
+ "name": "meta.link.reference.def.setext"
122
+ },
123
+ {
124
+ "captures": {
125
+ "1": {
126
+ "name": "punctuation.definition.comment.setext"
127
+ }
128
+ },
129
+ "match": "^(\\.{2}) (?![.]).+$\\n?",
130
+ "name": "comment.line.double-dot.setext"
131
+ },
132
+ {
133
+ "begin": "^(\\.{2})$",
134
+ "captures": {
135
+ "1": {
136
+ "name": "punctuation.definition.comment.setext"
137
+ }
138
+ },
139
+ "end": "not(?<=possible)",
140
+ "name": "comment.block.logical_end_of_text.setext"
141
+ }
142
+ ],
143
+ "repository": {
144
+ "bold": {
145
+ "captures": {
146
+ "1": {
147
+ "name": "punctuation.definition.bold.setext"
148
+ },
149
+ "2": {
150
+ "name": "punctuation.definition.bold.setext"
151
+ }
152
+ },
153
+ "match": "([*]{2}).+?([*]{2})",
154
+ "name": "markup.bold.setext"
155
+ },
156
+ "doc_separator": {
157
+ "captures": {
158
+ "1": {
159
+ "name": "punctuation.definition.separator.setext"
160
+ }
161
+ },
162
+ "match": "\\s*(\\$\\$)$\\n?",
163
+ "name": "meta.separator.document.setext"
164
+ },
165
+ "hotword": {
166
+ "captures": {
167
+ "0": {
168
+ "name": "constant.other.reference.link.setext"
169
+ },
170
+ "1": {
171
+ "name": "punctuation.definition.reference.setext"
172
+ }
173
+ },
174
+ "match": "\\b[-\\w.]*\\w(?<!_)(_)\\b",
175
+ "name": "meta.link.reference.setext"
176
+ },
177
+ "inline": {
178
+ "patterns": [
179
+ {
180
+ "include": "#italic"
181
+ },
182
+ {
183
+ "include": "#bold"
184
+ },
185
+ {
186
+ "include": "#underline"
187
+ },
188
+ {
189
+ "include": "#hotword"
190
+ },
191
+ {
192
+ "include": "#link"
193
+ },
194
+ {
195
+ "include": "#doc_separator"
196
+ }
197
+ ]
198
+ },
199
+ "italic": {
200
+ "captures": {
201
+ "1": {
202
+ "name": "punctuation.definition.italic.setext"
203
+ },
204
+ "2": {
205
+ "name": "punctuation.definition.italic.setext"
206
+ }
207
+ },
208
+ "match": "(~)\\w+(~)",
209
+ "name": "markup.italic.setext"
210
+ },
211
+ "link": {
212
+ "captures": {
213
+ "1": {
214
+ "name": "punctuation.definition.link.setext"
215
+ },
216
+ "2": {
217
+ "name": "markup.underline.link.setext"
218
+ },
219
+ "3": {
220
+ "name": "punctuation.definition.link.setext"
221
+ }
222
+ },
223
+ "comment": "Not actually part of setext, added for Tidbits.",
224
+ "match": "(<)((?i:mailto|https?|ftp|news)://.*?)(>)"
225
+ },
226
+ "underline": {
227
+ "captures": {
228
+ "1": {
229
+ "name": "punctuation.definition.underline.setext"
230
+ },
231
+ "2": {
232
+ "name": "punctuation.definition.underline.setext"
233
+ },
234
+ "3": {
235
+ "name": "punctuation.definition.underline.setext"
236
+ },
237
+ "4": {
238
+ "name": "punctuation.definition.underline.setext"
239
+ }
240
+ },
241
+ "match": "\\b(_)\\w+(?<!_)(_)\\b|\\b(_).+(?<!_)(_)\\b",
242
+ "name": "markup.underline.setext"
243
+ }
244
+ },
245
+ "scopeName": "text.setext",
246
+ "uuid": "FB227CE6-DC4C-4632-BCA3-965AE0D8E419"
247
+ }
@@ -204,7 +204,7 @@
204
204
  "function-definition": {
205
205
  "patterns": [
206
206
  {
207
- "begin": "\\b(function)\\s+((?:[^\\s\\\\]|\\\\.)+)(?:\\s*(\\(\\)))?",
207
+ "begin": "\\b(function)\\s+([^\\s\\\\]+)(?:\\s*(\\(\\)))?",
208
208
  "beginCaptures": {
209
209
  "1": {
210
210
  "name": "storage.type.function.shell"
@@ -230,7 +230,7 @@
230
230
  ]
231
231
  },
232
232
  {
233
- "begin": "\\b((?:[^\\s\\\\]|\\\\.)+)\\s*(\\(\\))",
233
+ "begin": "\\b([^\\s\\\\=]+)\\s*(\\(\\))",
234
234
  "beginCaptures": {
235
235
  "1": {
236
236
  "name": "entity.name.function.shell"
@@ -942,7 +942,7 @@
942
942
  "include": "#variable"
943
943
  },
944
944
  {
945
- "match": "\\+{1,2}|-{1,2}|!|~|\\*{1,2}|\/|%|<[<=]?|>[>=]?|==|!=|^|\\|{1,2}|&{1,2}|\\?|\\:|,|=|[*\/%+\\-&^|]=|<<=|>>=",
945
+ "match": "\\+{1,2}|-{1,2}|!|~|\\*{1,2}|/|%|<[<=]?|>[>=]?|==|!=|^|\\|{1,2}|&{1,2}|\\?|\\:|,|=|[*/%+\\-&^|]=|<<=|>>=",
946
946
  "name": "keyword.operator.arithmetic.shell"
947
947
  },
948
948
  {
@@ -1174,7 +1174,7 @@
1174
1174
  "name": "variable.other.bracket.shell",
1175
1175
  "patterns": [
1176
1176
  {
1177
- "match": "!|:[-=?]?|\\*|@|#{1,2}|%{1,2}|\/",
1177
+ "match": "!|:[-=?]?|\\*|@|#{1,2}|%{1,2}|/",
1178
1178
  "name": "keyword.operator.expansion.shell"
1179
1179
  },
1180
1180
  {
@@ -12,7 +12,7 @@
12
12
  "name": "keyword.control.slate"
13
13
  },
14
14
  {
15
- "match": "\\b(clone|new|copy|resend|forwardTo:|is:|isReally:|as:|[-+=<>,;\/\\\\*]+)\\b",
15
+ "match": "\\b(clone|new|copy|resend|forwardTo:|is:|isReally:|as:|[-+=<>,;/\\\\*]+)\\b",
16
16
  "name": "keyword.operator.slate"
17
17
  },
18
18
  {
@@ -110,7 +110,7 @@
110
110
  ]
111
111
  },
112
112
  {
113
- "match": "#([[:lower:]]|_|[+=\\-\/!%&*|><~?])(\\w|[+=\\-\/!%&*|><~?:])*",
113
+ "match": "#([[:lower:]]|_|[+=\\-/!%&*|><~?])(\\w|[+=\\-/!%&*|><~?:])*",
114
114
  "name": "meta.block.compact.slate"
115
115
  },
116
116
  {
@@ -162,7 +162,7 @@
162
162
  "name": "variable.parameter.slate"
163
163
  },
164
164
  {
165
- "match": "\\b(\/\\\\|\\\\\/|and:|or:|not|xor:)\\b",
165
+ "match": "\\b(/\\\\|\\\\/|and:|or:|not|xor:)\\b",
166
166
  "name": "keyword.operator.logical.slate"
167
167
  },
168
168
  {
@@ -196,7 +196,7 @@
196
196
  "name": "support.class.slate"
197
197
  },
198
198
  {
199
- "match": "\\`[-A-Za-z0-9+=*^<>?,;\/\\\\]+:?",
199
+ "match": "\\`[-A-Za-z0-9+=*^<>?,;/\\\\]+:?",
200
200
  "name": "keyword.control.import.slate"
201
201
  },
202
202
  {
@@ -229,7 +229,7 @@
229
229
  ],
230
230
  "repository": {
231
231
  "binary-selector": {
232
- "match": "\\b([=+-\\\/?<>,;^*]+[A-Za-z0-9_=+-\\\/?<>,;^*]+[=+-\\\/?<>,;^*]+)\\b"
232
+ "match": "\\b([=+-\\/?<>,;^*]+[A-Za-z0-9_=+-\\/?<>,;^*]+[=+-\\/?<>,;^*]+)\\b"
233
233
  },
234
234
  "escaped-char": {
235
235
  "match": "\\\\."