ver 2010.02 → 2010.08
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +1 -0
- data/.yardopts +1 -1
- data/AUTHORS +2 -2
- data/CHANGELOG +1160 -0
- data/MANIFEST +212 -62
- data/README.textile +68 -9
- data/Rakefile +2 -2
- data/bin/ver +33 -8
- data/config/commands/ANTLR.rb +11 -0
- data/config/commands/ActionScript.rb +102 -0
- data/config/commands/Active4D.rb +30 -0
- data/config/commands/Ada.rb +11 -0
- data/config/commands/Ant.rb +90 -0
- data/config/commands/Apache.rb +98 -0
- data/config/commands/AppleScript.rb +169 -0
- data/config/commands/Blogging.rb +72 -0
- data/config/commands/Bulletin Board.rb +10 -0
- data/config/commands/Bundle Development.rb +83 -0
- data/config/commands/C++ Qt.rb +158 -0
- data/config/commands/C.rb +82 -0
- data/config/commands/CMake.rb +32 -0
- data/config/commands/CSS.rb +76 -0
- data/config/commands/CTags.rb +29 -0
- data/config/commands/CVS.rb +114 -0
- data/config/commands/CoffeeScript.rb +58 -0
- data/config/commands/Context Free.rb +20 -0
- data/config/commands/Cucumber.rb +94 -0
- data/config/commands/D.rb +47 -0
- data/config/commands/Darcs.rb +72 -0
- data/config/commands/Diff.rb +76 -0
- data/config/commands/Doxygen.rb +9 -0
- data/config/commands/Experimental Wiki.rb +9 -0
- data/config/commands/Experimental.rb +172 -0
- data/config/commands/F-Script.rb +13 -0
- data/config/commands/FXScript.rb +11 -0
- data/config/commands/FileMerge.rb +42 -0
- data/config/commands/Fortran.rb +58 -0
- data/config/commands/GTD2.rb +134 -0
- data/config/commands/GTDAlt.rb +225 -0
- data/config/commands/GetBundle.rb +41 -0
- data/config/commands/Go.rb +29 -0
- data/config/commands/Graphviz.rb +11 -0
- data/config/commands/Greasemonkey.rb +158 -0
- data/config/commands/Gri.rb +11 -0
- data/config/commands/Groovy Grails.rb +174 -0
- data/config/commands/Groovy.rb +66 -0
- data/config/commands/HTML.rb +206 -0
- data/config/commands/Haskell.rb +48 -0
- data/config/commands/Hotkey.rb +50 -0
- data/config/commands/Hyperlink Helper.rb +81 -0
- data/config/commands/ImageBrowser.rb +10 -0
- data/config/commands/Io.rb +11 -0
- data/config/commands/JSFL.rb +29 -0
- data/config/commands/JSON.rb +11 -0
- data/config/commands/Java.rb +45 -0
- data/config/commands/JavaDoc.rb +12 -0
- data/config/commands/JavaScript Prototype & Script.aculo.us.rb +51 -0
- data/config/commands/JavaScript YUI.rb +12 -0
- data/config/commands/JavaScript jQuery.rb +12 -0
- data/config/commands/JavaScript.rb +50 -0
- data/config/commands/LaTeX.rb +423 -0
- data/config/commands/Lisp.rb +20 -0
- data/config/commands/Logo.rb +10 -0
- data/config/commands/Logtalk.rb +34 -0
- data/config/commands/Lua.rb +29 -0
- data/config/commands/MEL.rb +20 -0
- data/config/commands/Mail.rb +73 -0
- data/config/commands/Make.rb +20 -0
- data/config/commands/Man Pages.rb +20 -0
- data/config/commands/Markdown.rb +194 -0
- data/config/commands/Math.rb +79 -0
- data/config/commands/Matlab.rb +188 -0
- data/config/commands/Maven.rb +162 -0
- data/config/commands/Mediawiki.rb +12 -0
- data/config/commands/Mercurial.rb +185 -0
- data/config/commands/MoinMoin.rb +74 -0
- data/config/commands/Movable Type.rb +68 -0
- data/config/commands/Nemerle.rb +29 -0
- data/config/commands/OCaml Experimental Completions.rb +22 -0
- data/config/commands/OCaml.rb +99 -0
- data/config/commands/Objective-C.rb +181 -0
- data/config/commands/Outlines.rb +54 -0
- data/config/commands/PHP Smarty.rb +10 -0
- data/config/commands/Pascal.rb +11 -0
- data/config/commands/Perforce.rb +102 -0
- data/config/commands/Perl.rb +78 -0
- data/config/commands/Processing.rb +11 -0
- data/config/commands/Prolog.rb +11 -0
- data/config/commands/Property List.rb +38 -0
- data/config/commands/Python Django.rb +11 -0
- data/config/commands/Python.rb +131 -0
- data/config/commands/R Console (R.app).rb +80 -0
- data/config/commands/R Console (Rdaemon).rb +414 -0
- data/config/commands/R.rb +337 -0
- data/config/commands/Ragel.rb +10 -0
- data/config/commands/Regular Expressions.rb +18 -0
- data/config/commands/Remind.rb +44 -0
- data/config/commands/Ruby RSpec.rb +40 -0
- data/config/commands/Ruby on Rails.rb +331 -0
- data/config/commands/Ruby.rb +220 -0
- data/config/commands/S5 Slide Show.rb +37 -0
- data/config/commands/SCons.rb +24 -0
- data/config/commands/SQL.rb +60 -0
- data/config/commands/SVK.rb +83 -0
- data/config/commands/SWeave.rb +63 -0
- data/config/commands/Scheme.rb +30 -0
- data/config/commands/Scilab.rb +28 -0
- data/config/commands/Setext.rb +20 -0
- data/config/commands/Shell Script.rb +59 -0
- data/config/commands/Slate.rb +9 -0
- data/config/commands/Source.rb +84 -0
- data/config/commands/Standard ML.rb +38 -0
- data/config/commands/Subversion.rb +181 -0
- data/config/commands/TODO.rb +32 -0
- data/config/commands/Tcl.rb +21 -0
- data/config/commands/TerminalMate.rb +30 -0
- data/config/commands/Text.rb +137 -0
- data/config/commands/TextMate.rb +100 -0
- data/config/commands/Textile.rb +58 -0
- data/config/commands/Thrift.rb +20 -0
- data/config/commands/Transmit.rb +34 -0
- data/config/commands/Txt2tags.rb +213 -0
- data/config/commands/Vectorscript.rb +19 -0
- data/config/commands/Widget Creator.rb +23 -0
- data/config/commands/XML.rb +29 -0
- data/config/commands/Xcode.rb +106 -0
- data/config/commands/YAML.rb +39 -0
- data/config/commands/YARD.rb +12 -0
- data/config/commands/iTerm.rb +26 -0
- data/config/commands/reStructuredText.rb +126 -0
- data/config/detect.rb +13 -1
- data/config/keymap/diakonos.rb +113 -115
- data/config/keymap/emacs.rb +6 -2
- data/config/keymap/nano.rb +104 -112
- data/config/keymap/vim.rb +329 -258
- data/config/plugin/autosave.rb +3 -6
- data/config/plugin/git.rb +18 -12
- data/config/plugin/soma.rb +1 -1
- data/config/preferences/Apache.rb +17 -17
- data/config/preferences/AppleScript.rb +5 -5
- data/config/preferences/Bundle Development.rb +10 -10
- data/config/preferences/C.rb +38 -30
- data/config/preferences/CoffeeScript.rb +28 -0
- data/config/preferences/ColdFusion.rb +6 -6
- data/config/preferences/Cucumber.rb +40 -0
- data/config/preferences/Diff.rb +4 -4
- data/config/preferences/Eiffel.rb +6 -6
- data/config/preferences/Erlang.rb +16 -16
- data/config/preferences/F-Script.rb +12 -12
- data/config/preferences/FXScript.rb +5 -5
- data/config/preferences/Fortran.rb +17 -17
- data/config/preferences/Go.rb +23 -0
- data/config/preferences/Groovy.rb +29 -0
- data/config/preferences/HTML.rb +44 -44
- data/config/preferences/Haskell.rb +14 -14
- data/config/preferences/Io.rb +11 -11
- data/config/preferences/Java.rb +8 -8
- data/config/preferences/LaTeX.rb +24 -24
- data/config/preferences/Logo.rb +6 -6
- data/config/preferences/Logtalk.rb +5 -5
- data/config/preferences/Markdown.rb +43 -0
- data/config/preferences/Maven.rb +42 -42
- data/config/preferences/Mediawiki.rb +8 -8
- data/config/preferences/Movable Type.rb +14 -14
- data/config/preferences/OCaml.rb +15 -15
- data/config/preferences/Objective-C.rb +5 -5
- data/config/preferences/PHP.rb +2564 -0
- data/config/preferences/Property List.rb +8 -8
- data/config/preferences/R.rb +5 -5
- data/config/preferences/Ruby.rb +24 -24
- data/config/preferences/Source.rb +13 -13
- data/config/preferences/Standard ML.rb +9 -9
- data/config/preferences/Tcl.rb +5 -5
- data/config/preferences/Text.rb +14 -14
- data/config/preferences/TextMate.rb +5 -5
- data/config/preferences/Textile.rb +8 -8
- data/config/preferences/YARD.rb +9 -0
- data/config/preferences/iTerm.rb +9 -9
- data/config/rc.rb +5 -2
- data/config/snippets/ASP vb.NET.rb +203 -54
- data/config/snippets/ASP.rb +51 -36
- data/config/snippets/ActionScript.rb +332 -205
- data/config/snippets/Active4D.rb +325 -256
- data/config/snippets/Ada.rb +106 -60
- data/config/snippets/Ant.rb +7 -5
- data/config/snippets/Apache.rb +24 -20
- data/config/snippets/AppleScript.rb +213 -82
- data/config/snippets/Blogging.rb +41 -18
- data/config/snippets/Bulletin Board.rb +56 -21
- data/config/snippets/Bundle Development.rb +108 -63
- data/config/snippets/C++ Qt.rb +72 -57
- data/config/snippets/C.rb +128 -100
- data/config/snippets/CMake.rb +42 -32
- data/config/snippets/CSS.rb +515 -115
- data/config/snippets/CoffeeScript.rb +85 -0
- data/config/snippets/ColdFusion.rb +2228 -1547
- data/config/snippets/Context Free.rb +35 -28
- data/config/snippets/Cucumber.rb +55 -0
- data/config/snippets/D.rb +164 -111
- data/config/snippets/DokuWiki.rb +103 -54
- data/config/snippets/Doxygen.rb +87 -40
- data/config/snippets/Eiffel.rb +121 -18
- data/config/snippets/Erlang.rb +109 -68
- data/config/snippets/F-Script.rb +30 -24
- data/config/snippets/FXScript.rb +364 -210
- data/config/snippets/Fortran.rb +462 -280
- data/config/snippets/GTDAlt.rb +10 -4
- data/config/snippets/Gettext.rb +10 -8
- data/config/snippets/Go.rb +52 -0
- data/config/snippets/Greasemonkey.rb +52 -42
- data/config/snippets/Gri.rb +12 -10
- data/config/snippets/Groovy Grails.rb +313 -0
- data/config/snippets/Groovy.rb +685 -0
- data/config/snippets/HTML.rb +325 -126
- data/config/snippets/Haskell.rb +32 -24
- data/config/snippets/Io.rb +53 -42
- data/config/snippets/Java.rb +204 -92
- data/config/snippets/JavaDoc.rb +105 -56
- data/config/snippets/JavaScript MooTools.rb +208 -13
- data/config/snippets/JavaScript Objective-J.rb +18 -15
- data/config/snippets/JavaScript Prototype & Script.aculo.us.rb +362 -107
- data/config/snippets/JavaScript YUI.rb +1245 -186
- data/config/snippets/JavaScript jQuery.rb +693 -375
- data/config/snippets/JavaScript.rb +71 -53
- data/config/snippets/LaTeX.rb +188 -0
- data/config/snippets/Lisp.rb +59 -40
- data/config/snippets/Logo.rb +12 -6
- data/config/snippets/Logtalk.rb +131 -60
- data/config/snippets/Lua.rb +43 -33
- data/config/snippets/MIPS Assembler.rb +7 -5
- data/config/snippets/Mail.rb +10 -1
- data/config/snippets/Markdown.rb +7 -0
- data/config/snippets/Matlab.rb +232 -178
- data/config/snippets/Maven.rb +6 -5
- data/config/snippets/Mediawiki.rb +43 -12
- data/config/snippets/MoinMoin.rb +50 -10
- data/config/snippets/Movable Type.rb +368 -53
- data/config/snippets/Nemerle.rb +127 -79
- data/config/snippets/OCaml Code Completion Misc.rb +1716 -72
- data/config/snippets/OCaml Code Completion Unix.rb +2128 -203
- data/config/snippets/OCaml.rb +107 -73
- data/config/snippets/ODCompletion.rb +169 -118
- data/config/snippets/Objective-C.rb +281 -193
- data/config/snippets/PHP Smarty.rb +149 -79
- data/config/snippets/PHP.rb +186 -0
- data/config/snippets/Pascal.rb +47 -33
- data/config/snippets/Perl HTML-Template.rb +33 -0
- data/config/snippets/Perl Mason.rb +50 -30
- data/config/snippets/Perl Template Toolkit.rb +25 -20
- data/config/snippets/Perl.rb +91 -72
- data/config/snippets/Processing.rb +55 -33
- data/config/snippets/Propel.rb +36 -30
- data/config/snippets/Property List.rb +57 -24
- data/config/snippets/Python Django Templates.rb +381 -95
- data/config/snippets/Python Django.rb +159 -132
- data/config/snippets/Python.rb +88 -0
- data/config/snippets/R Console (Rdaemon).rb +11 -9
- data/config/snippets/R.rb +96 -77
- data/config/snippets/Remind.rb +18 -15
- data/config/snippets/Ruby RSpec.rb +343 -238
- data/config/snippets/Ruby on Rails.rb +1116 -765
- data/config/snippets/Ruby.rb +770 -545
- data/config/snippets/S5 Slide Show.rb +32 -24
- data/config/snippets/SSH Config.rb +21 -17
- data/config/snippets/SWIG.rb +30 -18
- data/config/snippets/Scilab.rb +98 -79
- data/config/snippets/Setext.rb +10 -8
- data/config/snippets/Shell Script.rb +52 -42
- data/config/snippets/Slate.rb +62 -48
- data/config/snippets/Source.rb +24 -1
- data/config/snippets/Standard ML.rb +37 -27
- data/config/snippets/Tcl.rb +32 -26
- data/config/snippets/Text.rb +28 -15
- data/config/snippets/Textile.rb +130 -45
- data/config/snippets/Thrift.rb +22 -18
- data/config/snippets/Twiki.rb +158 -105
- data/config/snippets/Txt2tags.rb +166 -79
- data/config/snippets/Vectorscript.rb +47 -38
- data/config/snippets/Widget Creator.rb +5 -5
- data/config/snippets/XML.rb +30 -18
- data/config/snippets/YAML.rb +5 -4
- data/config/snippets/YARD.rb +93 -0
- data/config/snippets/reStructuredText.rb +25 -20
- data/config/syntax/ANTLR.rb +17 -15
- data/config/syntax/ASP vb.NET.rb +27 -24
- data/config/syntax/ASP.rb +21 -19
- data/config/syntax/ActionScript.rb +16 -16
- data/config/syntax/Active4D Config.rb +5 -5
- data/config/syntax/Active4D Library.rb +2 -2
- data/config/syntax/Active4D.rb +32 -30
- data/config/syntax/Ada.rb +13 -10
- data/config/syntax/Ant.rb +9 -7
- data/config/syntax/Apache.rb +22 -18
- data/config/syntax/AppleScript.rb +486 -192
- data/config/syntax/AsciiDoc.rb +21 -0
- data/config/syntax/BibTeX.rb +7 -7
- data/config/syntax/Blog - HTML.rb +7 -7
- data/config/syntax/Blog - Markdown.rb +6 -6
- data/config/syntax/Blog - Text.rb +2 -2
- data/config/syntax/Blog - Textile.rb +2 -2
- data/config/syntax/Bulletin Board.rb +33 -32
- data/config/syntax/C++ Qt.rb +7 -6
- data/config/syntax/C++.rb +31 -28
- data/config/syntax/C.rb +55 -51
- data/config/syntax/CMake Listfile.rb +12 -11
- data/config/syntax/CSS.rb +24 -23
- data/config/syntax/CSV.rb +3 -3
- data/config/syntax/CoffeeScript.rb +161 -0
- data/config/syntax/ColdFusion.rb +8 -8
- data/config/syntax/Context Free.rb +18 -16
- data/config/syntax/Cucumber Steps.rb +108 -0
- data/config/syntax/D.rb +70 -69
- data/config/syntax/Diff.rb +13 -10
- data/config/syntax/DokuWiki.rb +22 -18
- data/config/syntax/Doxygen.rb +1 -1
- data/config/syntax/Dylan.rb +8 -8
- data/config/syntax/Eiffel.rb +12 -12
- data/config/syntax/Erlang.rb +96 -89
- data/config/syntax/F-Script.rb +11 -9
- data/config/syntax/FXScript.rb +16 -14
- data/config/syntax/Fortran - Modern.rb +25 -24
- data/config/syntax/Fortran - Punchcard.rb +43 -40
- data/config/syntax/GTD.rb +1 -1
- data/config/syntax/GTDalt.rb +14 -11
- data/config/syntax/Gettext.rb +10 -9
- data/config/syntax/Gherkin.rb +65 -0
- data/config/syntax/Go.rb +256 -0
- data/config/syntax/Grails Server Page.rb +108 -0
- data/config/syntax/Graphviz (DOT).rb +6 -6
- data/config/syntax/Greasemonkey.rb +3 -3
- data/config/syntax/Gri.rb +12 -12
- data/config/syntax/Groovy.rb +502 -0
- data/config/syntax/HTML (ASP).rb +3 -3
- data/config/syntax/HTML (ASP.net).rb +31 -31
- data/config/syntax/HTML (Active4D).rb +19 -19
- data/config/syntax/HTML (Django).rb +6 -6
- data/config/syntax/HTML (Erlang).rb +4 -4
- data/config/syntax/HTML (Mason).rb +13 -13
- data/config/syntax/HTML (Rails).rb +5 -5
- data/config/syntax/HTML (Tcl).rb +3 -3
- data/config/syntax/HTML (Template Toolkit).rb +9 -9
- data/config/syntax/HTML.rb +27 -27
- data/config/syntax/Haskell.rb +31 -28
- data/config/syntax/Inform.rb +5 -5
- data/config/syntax/Ini.rb +4 -4
- data/config/syntax/Installer Distribution Script.rb +19 -18
- data/config/syntax/Io.rb +17 -15
- data/config/syntax/JSFL.rb +7 -6
- data/config/syntax/Java Properties.rb +3 -3
- data/config/syntax/Java Server Page (JSP).rb +5 -4
- data/config/syntax/Java.rb +40 -33
- data/config/syntax/JavaDoc.rb +24 -22
- data/config/syntax/JavaScript (Rails).rb +1 -1
- data/config/syntax/JavaScript.rb +41 -34
- data/config/syntax/Javascript YUI.rb +109 -101
- data/config/syntax/LaTeX Beamer.rb +3 -3
- data/config/syntax/LaTeX Log.rb +3 -3
- data/config/syntax/LaTeX Memoir.rb +7 -5
- data/config/syntax/LaTeX Rdaemon.rb +1 -1
- data/config/syntax/LaTeX.rb +52 -47
- data/config/syntax/Language Grammar.rb +58 -55
- data/config/syntax/Lex-Flex.rb +13 -13
- data/config/syntax/Lighttpd.rb +7 -7
- data/config/syntax/Lisp.rb +6 -5
- data/config/syntax/Literate Haskell.rb +2 -2
- data/config/syntax/Logo.rb +4 -4
- data/config/syntax/Logtalk.rb +64 -49
- data/config/syntax/Lua.rb +12 -12
- data/config/syntax/MATLAB.rb +71 -70
- data/config/syntax/MEL.rb +16 -15
- data/config/syntax/MIPS Assembler.rb +11 -11
- data/config/syntax/MacPorts Portfile.rb +16 -15
- data/config/syntax/Mail.rb +5 -4
- data/config/syntax/Makefile.rb +3 -3
- data/config/syntax/Man.rb +2 -2
- data/config/syntax/Markdown.rb +440 -0
- data/config/syntax/Maven POM.rb +17 -16
- data/config/syntax/Mediawiki.rb +46 -46
- data/config/syntax/Modula-3.rb +7 -6
- data/config/syntax/MoinMoin.rb +16 -16
- data/config/syntax/MooTools.rb +75 -65
- data/config/syntax/Movable Type (MT only).rb +18 -18
- data/config/syntax/Movable Type.rb +20 -20
- data/config/syntax/MultiMarkdown.rb +35 -0
- data/config/syntax/Nemerle.rb +12 -12
- data/config/syntax/OCaml.rb +79 -71
- data/config/syntax/OCamllex.rb +14 -14
- data/config/syntax/OCamlyacc.rb +14 -12
- data/config/syntax/Objective-C++.rb +2 -2
- data/config/syntax/Objective-C.rb +76 -70
- data/config/syntax/Objective-J.rb +30 -29
- data/config/syntax/Octave.rb +27 -27
- data/config/syntax/OpenGL.rb +4 -4
- data/config/syntax/PHP.rb +1154 -0
- data/config/syntax/Pascal.rb +8 -8
- data/config/syntax/Perl HTML-Template.rb +5 -5
- data/config/syntax/Perl.rb +80 -76
- data/config/syntax/Plain Text.rb +5 -5
- data/config/syntax/Postscript.rb +6 -6
- data/config/syntax/Processing.rb +20 -20
- data/config/syntax/Prolog.rb +2 -2
- data/config/syntax/Property List.rb +50 -47
- data/config/syntax/Prototype & Script.aculo.us (JavaScript) Bracketed.rb +15 -13
- data/config/syntax/Prototype & Script.aculo.us (JavaScript).rb +9 -8
- data/config/syntax/Python Django.rb +6 -6
- data/config/syntax/Python.rb +94 -87
- data/config/syntax/Quake Style .cfg.rb +4 -4
- data/config/syntax/R Console (Rdaemon) Plain.rb +2 -2
- data/config/syntax/R Console (Rdaemon).rb +2 -2
- data/config/syntax/R.rb +21 -20
- data/config/syntax/RSpec.rb +15 -15
- data/config/syntax/Ragel.rb +14 -13
- data/config/syntax/Rd (R Documentation).rb +4 -4
- data/config/syntax/Regular Expressions (Oniguruma).rb +11 -10
- data/config/syntax/Regular Expressions (Python).rb +9 -9
- data/config/syntax/Release Notes.rb +7 -6
- data/config/syntax/Remind.rb +19 -17
- data/config/syntax/Rez.rb +10 -9
- data/config/syntax/Ruby Haml.rb +11 -11
- data/config/syntax/Ruby on Rails.rb +26 -24
- data/config/syntax/Ruby.rb +73 -71
- data/config/syntax/S5 Slide Show.rb +9 -9
- data/config/syntax/SQL.rb +29 -27
- data/config/syntax/SSH Config.rb +4 -4
- data/config/syntax/SWIG.rb +12 -11
- data/config/syntax/SWeave.rb +8 -7
- data/config/syntax/Scheme.rb +56 -54
- data/config/syntax/Scilab.rb +7 -6
- data/config/syntax/Setext.rb +14 -13
- data/config/syntax/Shell Script (Bash).rb +42 -42
- data/config/syntax/Slate.rb +24 -19
- data/config/syntax/Smarty.rb +11 -10
- data/config/syntax/Standard ML - CM.rb +2 -2
- data/config/syntax/Standard ML.rb +26 -23
- data/config/syntax/Strings File.rb +6 -6
- data/config/syntax/TSV.rb +2 -2
- data/config/syntax/Tcl.rb +10 -9
- data/config/syntax/TeX Math.rb +7 -6
- data/config/syntax/TeX.rb +7 -7
- data/config/syntax/Textile.rb +33 -27
- data/config/syntax/Thrift.rb +37 -29
- data/config/syntax/Twiki.rb +19 -18
- data/config/syntax/Txt2tags.rb +26 -23
- data/config/syntax/Vectorscript.rb +9 -7
- data/config/syntax/XML strict.rb +6 -4
- data/config/syntax/XML.rb +55 -30
- data/config/syntax/XSL.rb +5 -5
- data/config/syntax/YAML.rb +14 -12
- data/config/syntax/camlp4.rb +5 -5
- data/config/syntax/iCalendar.rb +3 -3
- data/config/syntax/jQuery (JavaScript).rb +9 -9
- data/config/syntax/mod_perl.rb +6 -6
- data/config/syntax/qmake Project file.rb +16 -15
- data/config/syntax/reStructuredText.rb +23 -21
- data/config/syntax/svn-commit.tmp.rb +5 -5
- data/lib/ver.rb +169 -85
- data/lib/ver/action.rb +39 -30
- data/lib/ver/buffer.rb +962 -144
- data/lib/ver/buffer/frame.rb +23 -0
- data/lib/ver/buffer/invalid_trailing_whitespace.rb +17 -0
- data/lib/ver/buffer/markup_underline_link.rb +30 -0
- data/lib/ver/buffer/matching_brace.rb +22 -0
- data/lib/ver/buffer/term.rb +1 -1
- data/lib/ver/clipboard.rb +107 -0
- data/lib/ver/digraphs.rb +1373 -0
- data/lib/ver/entry.rb +54 -43
- data/lib/ver/event.rb +335 -0
- data/lib/ver/exception_view.rb +3 -1
- data/lib/ver/executor.rb +7 -7
- data/lib/ver/executor/buffer.rb +4 -4
- data/lib/ver/executor/encoding.rb +19 -0
- data/lib/ver/executor/entry.rb +9 -9
- data/lib/ver/executor/fuzzy_file_finder.rb +1 -1
- data/lib/ver/executor/label.rb +2 -0
- data/lib/ver/executor/method.rb +2 -3
- data/lib/ver/help/describe_key.rb +44 -44
- data/lib/ver/hover_completion.rb +11 -6
- data/lib/ver/keymap.rb +68 -39
- data/lib/ver/layout/paned.rb +56 -44
- data/lib/ver/layout/toplevel.rb +68 -0
- data/lib/ver/layout/vim.rb +919 -0
- data/lib/ver/major_mode.rb +49 -49
- data/lib/ver/methods.rb +22 -25
- data/lib/ver/methods/basic.rb +49 -20
- data/lib/ver/methods/bookmark.rb +33 -33
- data/lib/ver/methods/clipboard.rb +186 -49
- data/lib/ver/methods/completion.rb +5 -5
- data/lib/ver/methods/control.rb +47 -66
- data/lib/ver/methods/delete.rb +5 -122
- data/lib/ver/methods/help.rb +2 -2
- data/lib/ver/methods/insert.rb +101 -29
- data/lib/ver/methods/layout.rb +62 -64
- data/lib/ver/methods/macro.rb +45 -0
- data/lib/ver/methods/move.rb +63 -349
- data/lib/ver/methods/nano.rb +99 -71
- data/lib/ver/methods/open.rb +8 -7
- data/lib/ver/methods/preview.rb +34 -14
- data/lib/ver/methods/save.rb +194 -163
- data/lib/ver/methods/search.rb +169 -81
- data/lib/ver/methods/search_and_replace.rb +62 -49
- data/lib/ver/methods/selection.rb +26 -54
- data/lib/ver/methods/snippet.rb +79 -54
- data/lib/ver/methods/undo.rb +12 -16
- data/lib/ver/minibuffer.rb +283 -134
- data/lib/ver/minor_mode.rb +36 -47
- data/lib/ver/mode_resolving.rb +71 -0
- data/lib/ver/platform.rb +41 -0
- data/lib/ver/plist.rb +16 -4
- data/lib/ver/register.rb +86 -0
- data/lib/ver/status.rb +44 -6
- data/lib/ver/status/battery.rb +1 -1
- data/lib/ver/status/buffer_position.rb +2 -2
- data/lib/ver/status/diakonos_position.rb +3 -3
- data/lib/ver/status/encoding.rb +1 -1
- data/lib/ver/status/filename.rb +1 -1
- data/lib/ver/status/label.rb +20 -20
- data/lib/ver/status/mode.rb +1 -1
- data/lib/ver/status/nano_help.rb +3 -14
- data/lib/ver/status/nano_position.rb +6 -6
- data/lib/ver/status/percent.rb +2 -2
- data/lib/ver/status/position.rb +2 -2
- data/lib/ver/status/short_filename.rb +1 -1
- data/lib/ver/status/syntax.rb +1 -1
- data/lib/ver/struct.rb +28 -0
- data/lib/ver/syntax/processor.rb +2 -1
- data/lib/ver/text.rb +48 -520
- data/lib/ver/text/end.rb +14 -0
- data/lib/ver/text/index.rb +16 -101
- data/lib/ver/text/insert.rb +138 -0
- data/lib/ver/text/mark.rb +559 -0
- data/lib/ver/text/position.rb +240 -0
- data/lib/ver/text/range.rb +74 -0
- data/lib/ver/text/selection.rb +402 -0
- data/lib/ver/text/selection/block.rb +69 -0
- data/lib/ver/text/selection/char.rb +93 -0
- data/lib/ver/text/selection/line.rb +64 -0
- data/lib/ver/text/tag.rb +322 -0
- data/lib/ver/undo.rb +109 -34
- data/lib/ver/vendor/eval_completer.rb +184 -0
- data/lib/ver/vendor/json_store.rb +23 -0
- data/lib/ver/vendor/open3.rb +729 -0
- data/lib/ver/vendor/pathname.rb +73 -0
- data/lib/ver/vendor/textpow.rb +1 -1
- data/lib/ver/version.rb +1 -1
- data/lib/ver/widget_event.rb +9 -5
- data/lib/ver/widget_major_mode.rb +69 -23
- data/spec/helper.rb +124 -8
- data/spec/ver/action.rb +160 -46
- data/spec/ver/buffer.rb +23 -0
- data/spec/ver/clipboard.rb +92 -0
- data/spec/ver/keymap.rb +63 -61
- data/spec/ver/keymap/diakonos.rb +88 -0
- data/spec/ver/keymap/emacs.rb +65 -0
- data/spec/ver/keymap/general.rb +98 -0
- data/spec/ver/keymap/nano.rb +84 -0
- data/spec/ver/keymap/vim.rb +205 -0
- data/spec/ver/keymap/vim/changing_text.rb +489 -0
- data/spec/ver/keymap/vim/complex_changes.rb +53 -0
- data/spec/ver/keymap/vim/copying_and_moving_text.rb +258 -0
- data/spec/ver/keymap/vim/deleting_text.rb +188 -0
- data/spec/ver/keymap/vim/digraphs.rb +52 -0
- data/spec/ver/keymap/vim/external_commands.rb +21 -0
- data/spec/ver/keymap/vim/inserting_mode_keys.rb +115 -0
- data/spec/ver/keymap/vim/inserting_mode_special.rb +168 -0
- data/spec/ver/keymap/vim/inserting_text.rb +108 -0
- data/spec/ver/keymap/vim/left_right_motion.rb +120 -0
- data/spec/ver/keymap/vim/mark_motion.rb +73 -0
- data/spec/ver/keymap/vim/repeating_commands.rb +64 -0
- data/spec/ver/keymap/vim/text_object_motion.rb +137 -0
- data/spec/ver/keymap/vim/text_objects.rb +101 -0
- data/spec/ver/keymap/vim/undo_redo.rb +21 -0
- data/spec/ver/keymap/vim/up_down_motion.rb +94 -0
- data/spec/ver/keymap/vim/various_motion.rb +33 -0
- data/spec/ver/keysyms.rb +13 -0
- data/spec/ver/major_mode.rb +37 -37
- data/spec/ver/minor_mode.rb +21 -20
- data/spec/ver/plugin/smart_autoindent.rb +2 -2
- data/spec/ver/text/index.rb +122 -0
- data/spec/ver/text/insert.rb +299 -0
- data/spec/ver/text/mark.rb +94 -0
- data/spec/ver/text/range.rb +71 -0
- data/spec/ver/text/selection.rb +315 -0
- data/spec/ver/text/tag.rb +93 -0
- data/spec/ver/undo.rb +133 -0
- data/spec/ver/undo/record_sanitize.rb +85 -0
- data/spec/ver/vendor/eval_completer.rb +91 -0
- data/spec/ver/widget_major_mode.rb +4 -3
- data/ver.gemspec +8 -8
- metadata +234 -72
- data/.todo +0 -102
- data/ROADMAP.textile +0 -187
- data/config/snippets/ANTLR.rb +0 -3
- data/config/snippets/Bison.rb +0 -3
- data/config/snippets/CTags.rb +0 -3
- data/config/snippets/CVS.rb +0 -3
- data/config/snippets/Darcs.rb +0 -3
- data/config/snippets/Diff.rb +0 -3
- data/config/snippets/Dylan.rb +0 -3
- data/config/snippets/Experimental Wiki.rb +0 -3
- data/config/snippets/Experimental.rb +0 -3
- data/config/snippets/FileMerge.rb +0 -3
- data/config/snippets/GTD2.rb +0 -3
- data/config/snippets/GetBundle.rb +0 -3
- data/config/snippets/Graphviz.rb +0 -3
- data/config/snippets/Hotkey.rb +0 -3
- data/config/snippets/Hyperlink Helper.rb +0 -3
- data/config/snippets/ImageBrowser.rb +0 -3
- data/config/snippets/Inform.rb +0 -3
- data/config/snippets/Ini.rb +0 -3
- data/config/snippets/Installer.rb +0 -3
- data/config/snippets/JSFL.rb +0 -3
- data/config/snippets/JSON.rb +0 -3
- data/config/snippets/Lex-Flex.rb +0 -3
- data/config/snippets/Lighttpd.rb +0 -3
- data/config/snippets/MEL.rb +0 -3
- data/config/snippets/MacPorts.rb +0 -3
- data/config/snippets/Make.rb +0 -3
- data/config/snippets/Man Pages.rb +0 -3
- data/config/snippets/Math.rb +0 -3
- data/config/snippets/Mercurial.rb +0 -3
- data/config/snippets/Modula.rb +0 -3
- data/config/snippets/Navigation.rb +0 -3
- data/config/snippets/OCaml Experimental Completions.rb +0 -3
- data/config/snippets/OpenGL.rb +0 -3
- data/config/snippets/Outlines.rb +0 -3
- data/config/snippets/Perforce.rb +0 -3
- data/config/snippets/Perl HTML::Template.rb +0 -27
- data/config/snippets/Postscript.rb +0 -3
- data/config/snippets/Prolog.rb +0 -3
- data/config/snippets/Quake.rb +0 -3
- data/config/snippets/R Console (R.app).rb +0 -3
- data/config/snippets/Ragel.rb +0 -3
- data/config/snippets/Regular Expressions.rb +0 -3
- data/config/snippets/Rez.rb +0 -3
- data/config/snippets/Ruby Haml.rb +0 -3
- data/config/snippets/SCons.rb +0 -3
- data/config/snippets/SQL.rb +0 -3
- data/config/snippets/SVK.rb +0 -3
- data/config/snippets/SWeave.rb +0 -3
- data/config/snippets/Scheme.rb +0 -3
- data/config/snippets/Subversion.rb +0 -3
- data/config/snippets/TODO.rb +0 -3
- data/config/snippets/Tabular.rb +0 -3
- data/config/snippets/TerminalMate.rb +0 -3
- data/config/snippets/TextMate.rb +0 -3
- data/config/snippets/Transmit.rb +0 -3
- data/config/snippets/Xcode.rb +0 -3
- data/config/snippets/iCalendar.rb +0 -3
- data/config/snippets/iTerm.rb +0 -3
- data/lib/ver/keysyms.rb +0 -104
- data/spec/ver/methods/move.rb +0 -150
data/config/snippets/Lua.rb
CHANGED
@@ -1,35 +1,45 @@
|
|
1
1
|
# Encoding: UTF-8
|
2
2
|
|
3
|
-
{
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
"
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
"
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
"
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
"function"
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
"
|
26
|
-
|
27
|
-
"
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
"
|
33
|
-
|
34
|
-
|
35
|
-
|
3
|
+
[{content:
|
4
|
+
"for ${1:i},${2:v} in ipairs(${3:table_name}) do\n\t${0:print(i,v)}\nend",
|
5
|
+
name: "for i,v in ipairs()",
|
6
|
+
scope: "source.lua",
|
7
|
+
tabTrigger: "fori",
|
8
|
+
uuid: "082D9465-0CEF-40DB-9B1C-34940D38F4F0"},
|
9
|
+
{content: "for ${1:i}=${2:1},${3:10} do\n\t${0:print(i)}\nend",
|
10
|
+
name: "for i=1,10",
|
11
|
+
scope: "source.lua",
|
12
|
+
tabTrigger: "for",
|
13
|
+
uuid: "B1FDD74B-F037-45B7-AA61-7CB56BFA67CD"},
|
14
|
+
{content:
|
15
|
+
"for ${1:k},${2:v} in pairs(${3:table_name}) do\n\t${0:print(k,v)}\nend",
|
16
|
+
name: "for k,v in pairs()",
|
17
|
+
scope: "source.lua",
|
18
|
+
tabTrigger: "forp",
|
19
|
+
uuid: "A75263F5-C971-42F2-8FAC-83829AD945DE"},
|
20
|
+
{content: "function ${1:function_name}( ${2:...} )\n\t${0:-- body}\nend",
|
21
|
+
name: "function",
|
22
|
+
scope: "source.lua",
|
23
|
+
tabTrigger: "function",
|
24
|
+
uuid: "F4A541EB-8C83-4EFB-97A7-F780807AC23A"},
|
25
|
+
{content: "function ${1:function_name}( ${2:...} )\n\t${0:-- body}\nend",
|
26
|
+
name: "function",
|
27
|
+
scope: "source.lua",
|
28
|
+
tabTrigger: "fun",
|
29
|
+
uuid: "3E0EEDB8-2C15-4703-939B-9334714B3A8E"},
|
30
|
+
{content: "local ${1:x} = ${0:1}",
|
31
|
+
name: "local x = 1",
|
32
|
+
scope: "source.lua",
|
33
|
+
tabTrigger: "local",
|
34
|
+
uuid: "0CEE4504-F8F1-4A98-AC7B-AA679CAAAB55"},
|
35
|
+
{content:
|
36
|
+
"table.concat( ${1:tablename}${2:, \", \"}${3:, start_index}${4:, end_index} )",
|
37
|
+
name: "table.concat",
|
38
|
+
scope: "source.lua",
|
39
|
+
tabTrigger: "table.concat",
|
40
|
+
uuid: "8E68AA99-64F4-4D36-AF80-D7D0B3DCD041"},
|
41
|
+
{content: "table.sort( ${1:tablename}${2:, sortfunction} )",
|
42
|
+
name: "table.sort",
|
43
|
+
scope: "source.lua",
|
44
|
+
tabTrigger: "table.sort",
|
45
|
+
uuid: "2052FA2D-5830-4665-8C90-01D0C7E04991"}]
|
@@ -1,7 +1,9 @@
|
|
1
1
|
# Encoding: UTF-8
|
2
2
|
|
3
|
-
{
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
3
|
+
[{content:
|
4
|
+
"# a basic example in mips-assembler: hello world.\n# tested with xspim-7.0\n \n\t.text\n\t.globl main\n\t\nmain:\n\tli \\$v0, 4 # call = 4 = print_string\n\tla \\$a0, hello_string # set \\$a0 to point to the string\n\tsyscall # print it.\n\tli \\$v0, 10 # call = 10 = exit\n\tsyscall # done.\n\t\n\t\n\t.data\n\t\nhello_string: .asciiz \"Hello World!\"\n$1",
|
5
|
+
keyEquivalent: "",
|
6
|
+
name: "Hello World (mips)",
|
7
|
+
scope: "source.mips",
|
8
|
+
tabTrigger: "hello",
|
9
|
+
uuid: "E670F342-6BE2-11D9-96CC-0011242E4184"}]
|
data/config/snippets/Mail.rb
CHANGED
@@ -1,3 +1,12 @@
|
|
1
1
|
# Encoding: UTF-8
|
2
2
|
|
3
|
-
{
|
3
|
+
[{content: "\n${TM_CURRENT_LINE/^[ \\t]*([> \\t]*).*/$1/}",
|
4
|
+
keyEquivalent: "",
|
5
|
+
name: "Continue Quotation",
|
6
|
+
scope: "markup.quote",
|
7
|
+
uuid: "F8AFD37B-9471-4B61-B626-6956CAD8C8CA"},
|
8
|
+
{content: "[...]",
|
9
|
+
keyEquivalent: "^{",
|
10
|
+
name: "Insert [...]",
|
11
|
+
scope: "text.mail",
|
12
|
+
uuid: "40BDA523-6089-4705-9006-43EA2D17A0F1"}]
|
data/config/snippets/Matlab.rb
CHANGED
@@ -1,180 +1,234 @@
|
|
1
1
|
# Encoding: UTF-8
|
2
2
|
|
3
|
-
{
|
4
|
-
{
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
"
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
"
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
"
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
"
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
"
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
"^"
|
34
|
-
|
35
|
-
"
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
"
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
"
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
"
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
"
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
"
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
"
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
"
|
75
|
-
|
76
|
-
"
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
"
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
"
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
"
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
"
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
"
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
"
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
"
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
"
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
"
|
130
|
-
|
131
|
-
|
132
|
-
|
133
|
-
|
134
|
-
"
|
135
|
-
|
136
|
-
|
137
|
-
|
138
|
-
|
139
|
-
"
|
140
|
-
|
141
|
-
|
142
|
-
|
143
|
-
|
144
|
-
|
145
|
-
|
146
|
-
|
147
|
-
|
148
|
-
|
149
|
-
|
150
|
-
|
151
|
-
|
152
|
-
"
|
153
|
-
|
154
|
-
|
155
|
-
|
156
|
-
|
157
|
-
"
|
158
|
-
|
159
|
-
|
160
|
-
|
161
|
-
|
162
|
-
|
163
|
-
|
164
|
-
|
165
|
-
"
|
166
|
-
|
167
|
-
|
168
|
-
|
169
|
-
"
|
170
|
-
|
171
|
-
|
172
|
-
|
173
|
-
"
|
174
|
-
|
175
|
-
|
176
|
-
|
177
|
-
"
|
178
|
-
|
179
|
-
|
180
|
-
|
3
|
+
[{content:
|
4
|
+
"% `if [[ ${TM_FILENAME} != '' ]]; then echo -e \"\\n% ${TM_FILENAME}\\n% \";fi`\n% Copyright (C) `date +%Y` ${TM_FULLNAME}`if [[ ${TM_ORGANIZATION_NAME} != '' ]]; then echo -e \", ${TM_ORGANIZATION_NAME}\";fi`. `if [[ ${TM_EMAIL} != '' ]]; then echo -e \"\\n% ${TM_EMAIL}\";fi``if [[ ${TM_URL} != '' ]]; then echo -e \"\\n% ${TM_URL}\";fi`\n% All rights reserved.\n%\n% Redistribution and use in source and binary forms, with or without\n% modification, are permitted provided that the following conditions are met:\n% * Redistributions of source code must retain the above copyright\n% notice, this list of conditions and the following disclaimer.\n% * Redistributions in binary form must reproduce the above copyright\n% notice, this list of conditions and the following disclaimer in the\n% documentation and/or other materials provided with the distribution.\n% * Neither the name of the <organization> nor the\n% names of its contributors may be used to endorse or promote products\n% derived from this software without specific prior written permission.\n%\n% THIS SOFTWARE IS PROVIDED BY <copyright holder> ``AS IS'' AND ANY\n% EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED\n% WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE\n% DISCLAIMED. IN NO EVENT SHALL <copyright holder> BE LIABLE FOR ANY\n% DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES\n% (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;\n% LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND\n% ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT\n% (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS\n% SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\n% \n",
|
5
|
+
name: "BSD",
|
6
|
+
scope: "source.matlab, source.octave",
|
7
|
+
tabTrigger: "bsd",
|
8
|
+
uuid: "DE617B87-A492-4C94-81CB-38F491C4C9B3"},
|
9
|
+
{content:
|
10
|
+
"%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% $1 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%\n",
|
11
|
+
name: "Comment Divide",
|
12
|
+
scope: "source.matlab, source.octave",
|
13
|
+
uuid: "0844D21C-383B-4106-8474-8F79589731C6"},
|
14
|
+
{content:
|
15
|
+
"% `if [[ ${TM_FILENAME} != '' ]]; then echo -e \"\\n% ${TM_FILENAME}\\n% \";fi`\n% Copyright (C) `date +%Y` ${TM_FULLNAME}`if [[ ${TM_ORGANIZATION_NAME} != '' ]]; then echo -e \", ${TM_ORGANIZATION_NAME}\";fi`. `if [[ ${TM_EMAIL} != '' ]]; then echo -e \"\\n% ${TM_EMAIL}\";fi``if [[ ${TM_URL} != '' ]]; then echo -e \"\\n% ${TM_URL}\";fi`\n% \n% This program is free software; you can redistribute it and/or\n% modify it under the terms of the GNU General Public License\n% as published by the Free Software Foundation; either version 2\n% of the License, or (at your option) any later version.\n% \n% This program is distributed in the hope that it will be useful,\n% but WITHOUT ANY WARRANTY; without even the implied warranty of\n% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n% GNU General Public License for more details.\n% \n% You should have received a copy of the GNU General Public License\n% along with this program; if not, write to the Free Software\n% Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.\n% \n",
|
16
|
+
name: "GPL",
|
17
|
+
scope: "source.matlab, source.octave",
|
18
|
+
tabTrigger: "gpl",
|
19
|
+
uuid: "2FA74452-3A9B-428E-9DE4-7C04DA978635"},
|
20
|
+
{content:
|
21
|
+
"## Copyright (C) ${TM_YEAR} $TM_FULLNAME\n##\n## This program is free software; you can redistribute it and/or modify\n## it under the terms of the GNU General Public License as published by\n## the Free Software Foundation; either version 2 of the License, or\n## (at your option) any later version.\n##\n## This program is distributed in the hope that it will be useful,\n## but WITHOUT ANY WARRANTY; without even the implied warranty of\n## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n## GNU General Public License for more details.\n##\n## You should have received a copy of the GNU General Public License\n## along with this program; If not, see <http://www.gnu.org/licenses/>.\n\n## -*- texinfo -*-\n## @deftypefn {Function File} {${1:Outputs} = } ${2:Function Name} (${3:Input Arguments)\n## ${4:Short Description}\n##\n## ${5:Long Description}\n##\n## @seealso{${6:functions}}\n## @end deftypefn\n\n## Author: $TM_FULLNAME\n\n$0\n\nendfunction",
|
22
|
+
name: "Octave function",
|
23
|
+
scope: "source.matlab",
|
24
|
+
tabTrigger: "octfun",
|
25
|
+
uuid: "5C7F21FA-156C-4A86-AB20-7F9678010BCA"},
|
26
|
+
{content:
|
27
|
+
"%\tRev. by ${TM_FULLNAME} on `date +%Y-%m-%d`: ${1:Short description}",
|
28
|
+
name: "Revisions",
|
29
|
+
scope: "source.matlab, source.octave",
|
30
|
+
tabTrigger: "rev",
|
31
|
+
uuid: "87BC3C5B-627C-49AD-97B6-455345C1D478"},
|
32
|
+
{content: "^($1) $2",
|
33
|
+
name: "^",
|
34
|
+
scope: "source.matlab, source.octave",
|
35
|
+
tabTrigger: "^",
|
36
|
+
uuid: "6B86576E-F8E3-4E3A-8083-CFE4C0DF9E42"},
|
37
|
+
{content: "case ${2:'${3:string}'}\n\t$0",
|
38
|
+
name: "case",
|
39
|
+
scope: "source.matlab, source.octave",
|
40
|
+
tabTrigger: "case",
|
41
|
+
uuid: "F7A928F5-B70D-4DB0-8DEF-F61928038A6C"},
|
42
|
+
{content: "clear('${1:all}'$2);",
|
43
|
+
name: "clear",
|
44
|
+
scope: "source.matlab, source.octave",
|
45
|
+
tabTrigger: "clear",
|
46
|
+
uuid: "B5FEAC12-94C4-4D45-9907-7EE843F09C0D"},
|
47
|
+
{content: "disp('${1:Text}');",
|
48
|
+
name: "disp",
|
49
|
+
scope: "source.matlab, source.octave",
|
50
|
+
tabTrigger: "disp",
|
51
|
+
uuid: "975C9569-8B7D-4A60-8ED4-478A724D3A4E"},
|
52
|
+
{content:
|
53
|
+
"disp(sprintf('${1:%s}\\\\n'${1/([^%]|%%)*(%.)?.*/(?2:, :\\);)/}$2${1/([^%]|%%)*(%.)?.*/(?2:\\);)/});",
|
54
|
+
name: "disp sprintf",
|
55
|
+
scope: "source.matlab, source.octave",
|
56
|
+
tabTrigger: "dsp",
|
57
|
+
uuid: "EC4078AC-7F43-42CA-A83A-E1477558D84E"},
|
58
|
+
{content:
|
59
|
+
"dlmwrite('${1:filename}.dat', [${2:variables}], ${3:'${4:delimiter}', '${5:\\t}'});\n$0",
|
60
|
+
name: "dlmwrite",
|
61
|
+
scope: "source.matlab, source.octave",
|
62
|
+
tabTrigger: "dlmwrite",
|
63
|
+
uuid: "0FDCE9D1-A757-4793-816D-1364192CE326"},
|
64
|
+
{content: "else\n\t${1:body}",
|
65
|
+
name: "else",
|
66
|
+
scope: "source.matlab, source.octave",
|
67
|
+
tabTrigger: "else",
|
68
|
+
uuid: "582075F1-DB3F-4280-9F46-B615F8EF4A86"},
|
69
|
+
{content: "elseif ${1:condition}\n\t$0",
|
70
|
+
name: "elseif",
|
71
|
+
scope: "source.matlab, source.octave",
|
72
|
+
tabTrigger: "elseif",
|
73
|
+
uuid: "EA7BD80E-6346-44E9-A909-CE0703CFB390"},
|
74
|
+
{content: "error('${1:Description}');",
|
75
|
+
name: "error",
|
76
|
+
scope: "source.matlab, source.octave",
|
77
|
+
tabTrigger: "error",
|
78
|
+
uuid: "7135F592-1176-478A-BA31-BD8A7DA56F93"},
|
79
|
+
{content: "exp($1) $2",
|
80
|
+
name: "exp",
|
81
|
+
scope: "source.matlab, source.octave",
|
82
|
+
tabTrigger: "e",
|
83
|
+
uuid: "C00046EC-C7DC-4BC5-81CD-EBCB0F6FE8F7"},
|
84
|
+
{content:
|
85
|
+
"for ${1:ii}=${2:1}${3::${4:n}}\n\t$0\n`if [[ $TM_USE_OCTAVE -ne '0' ]]\n\tthen echo \"endfor\"\nelse\n\techo \"end\"\nfi`",
|
86
|
+
name: "for … end",
|
87
|
+
scope: "source.matlab, source.octave",
|
88
|
+
tabTrigger: "for",
|
89
|
+
uuid: "08CB1F21-B7EB-4AD7-B066-BB365966E390"},
|
90
|
+
{content:
|
91
|
+
"fprintf(${1:fid}, '${2:%s}\\\\n'${2/([^%]|%%)*(%.)?.*/(?2:, :\\);)/}$3${2/([^%]|%%)*(%.)?.*/(?2:\\);)/}",
|
92
|
+
name: "fprintf",
|
93
|
+
scope: "source.matlab, source.octave",
|
94
|
+
tabTrigger: "fpr",
|
95
|
+
uuid: "163D3790-C8E8-4888-81D7-50907D825EA0"},
|
96
|
+
{content:
|
97
|
+
"function ${1:Output variables} = ${2:functionName}(${3:Input variables})\n$TM_COMMENT_START\t${2/.*/\\U$0/} ${4:Short description}\n$TM_COMMENT_START\t\t[${1/.*/\\U$0/}] = ${2/.*/\\U$0/}(${6:${3/.*/\\U$0/}})\n$TM_COMMENT_START\n$TM_COMMENT_START\t${5:Long description}\n$TM_COMMENT_START\t\n$TM_COMMENT_START\tCreated by $TM_FULLNAME on `date +%Y-%m-%d`.\n$TM_COMMENT_START\tCopyright (c) ${TM_YEAR} ${TM_ORGANIZATION_NAME}. All rights reserved.\n\n$0\n\n`if [[ $TM_CLOSE_FUNCTIONS -ne '0' ]]\n\tthen\n\tif [[ $TM_USE_OCTAVE -ne '0' ]]\n\t\tthen echo \"endfunction\"\n\telse\n\t\techo \"end $TM_COMMENT_START function\" \n\tfi\nfi`",
|
98
|
+
name: "function",
|
99
|
+
scope: "source.matlab, source.octave",
|
100
|
+
tabTrigger: "fun",
|
101
|
+
uuid: "0EA9BDAD-6EA3-48C4-ADF5-EA549D84CAF0"},
|
102
|
+
{content: "get(${1:gca},'${2:PropertyName}');",
|
103
|
+
name: "get",
|
104
|
+
scope: "source.matlab, source.octave",
|
105
|
+
tabTrigger: "get",
|
106
|
+
uuid: "9915BCE4-2499-4E17-9006-7BB08A8539F0"},
|
107
|
+
{content: "griddata(${1:xx}, ${2:yy}, ${3:zz}, ${4:xi}, ${5:yi}); ",
|
108
|
+
name: "griddata",
|
109
|
+
scope: "source.matlab, source.octave",
|
110
|
+
tabTrigger: "griddata",
|
111
|
+
uuid: "8E4BA761-42BB-4CFC-B117-A547228878B8"},
|
112
|
+
{content:
|
113
|
+
"if ${1:condition}\n\t$2\nelse\n\t$3\n`if [[ $TM_USE_OCTAVE -ne '0' ]]\n\tthen echo \"endif\"\nelse\n\techo \"end\"\nfi`",
|
114
|
+
name: "if … else …end",
|
115
|
+
scope: "source.matlab, source.octave",
|
116
|
+
tabTrigger: "ife",
|
117
|
+
uuid: "4A86BFC8-5C03-45F8-B7D6-597F476E7C93"},
|
118
|
+
{content:
|
119
|
+
"if ${1:condition}\n\t${2:body}\nelseif ${3:condition}\n\t${4:body}\nelse\n\t${5:body}\nend\n",
|
120
|
+
name: "if … elseif … end",
|
121
|
+
scope: "source.matlab , source.octave",
|
122
|
+
tabTrigger: "ifeif",
|
123
|
+
uuid: "93234216-9807-416E-8416-A130A05C2C1F"},
|
124
|
+
{content:
|
125
|
+
"if ${1:condition}\n\t$0\n`if [[ $TM_USE_OCTAVE -ne '0' ]]\n\tthen echo \"endif\"\nelse\n\techo \"end\"\nfi`",
|
126
|
+
name: "if … end",
|
127
|
+
scope: "source.matlab, source.octave",
|
128
|
+
tabTrigger: "if",
|
129
|
+
uuid: "876FEC4C-FD21-401A-8947-0B2E232E19CA"},
|
130
|
+
{content:
|
131
|
+
"line(${1:xvector},${2:yvector}${3:,'Color','${4:b}','LineWidth',${5:1},'LineStyle','${6:-}'})\n",
|
132
|
+
name: "line",
|
133
|
+
scope: "source.matlab, source.octave",
|
134
|
+
tabTrigger: "line",
|
135
|
+
uuid: "3FFA60EB-FA14-47DE-AEF7-5A3E840BE637"},
|
136
|
+
{content:
|
137
|
+
"error(nargchk(${1:min}, ${2:max}, ${3:nargin}, `if [[ $TM_USE_OCTAVE -eq '0' ]]; then\n\techo -n \"'struct'\"\nfi` ));\n",
|
138
|
+
name: "nargchk",
|
139
|
+
scope: "source.matlab, source.octave",
|
140
|
+
tabTrigger: "nargchk",
|
141
|
+
uuid: "8325A3D7-1025-48C4-810F-CF41E7E71DA2"},
|
142
|
+
{content:
|
143
|
+
"set(${1:get(${2:gca},'${3:PropertyName}')},'${4:PropertyName}',${5:PropertyValue});",
|
144
|
+
name: "set",
|
145
|
+
scope: "source.matlab , source.octave",
|
146
|
+
tabTrigger: "set",
|
147
|
+
uuid: "1166137D-A579-484D-BDD7-AC62EFFA3FFA"},
|
148
|
+
{content:
|
149
|
+
"%% ${1:functionname}: ${2:function description}\nfunction [${3:outputs}] = ${1}(${4:arg})\n${3/,?\\s*([a-zA-Z]\\w*)|,\\s*/(?1:\\t$1 = ;\\n)/g}",
|
150
|
+
name: "small function",
|
151
|
+
scope: "source.matlab, source.octave",
|
152
|
+
tabTrigger: "func",
|
153
|
+
uuid: "2376F2E2-E240-422F-B6E8-48B6AA20C9EE"},
|
154
|
+
{content:
|
155
|
+
"sprintf('${1:%s}\\\\n'${1/([^%]|%%)*(%.)?.*/(?2:, :\\);)/}$2${1/([^%]|%%)*(%.)?.*/(?2:\\);)/}",
|
156
|
+
name: "sprintf",
|
157
|
+
scope: "source.matlab, source.octave",
|
158
|
+
tabTrigger: "spr",
|
159
|
+
uuid: "71CFA3F2-D883-4571-95B9-D98651890156"},
|
160
|
+
{content:
|
161
|
+
"switch ${1:switch_expression}\n\tcase ${2:case_expression}\n\t\t${3:body}\n\totherwise\n\t\t${4:body}\nend",
|
162
|
+
name: "switch ... case ... otherwise ... end",
|
163
|
+
scope: "source.matlab, source.octave",
|
164
|
+
tabTrigger: "switch",
|
165
|
+
uuid: "89BADD5A-72B8-4FE5-B082-499C7E7AB452"},
|
166
|
+
{content:
|
167
|
+
"switch ${1:var}\ncase ${2:'${3:string}'}\n\t$0\n`if [[ $TM_USE_OCTAVE -ne '0' ]]\n\tthen echo \"endswitch\"\nelse\n\techo \"end\"\nfi`",
|
168
|
+
name: "switch … case … end",
|
169
|
+
scope: "source.matlab",
|
170
|
+
tabTrigger: "switch",
|
171
|
+
uuid: "631FAA9C-ECC2-484A-A29C-3CD66D944693"},
|
172
|
+
{content:
|
173
|
+
"switch ${1:var}\ncase ${2:'${3:string}'}\n\t$4\notherwise\n\t$0\n`if [[ $TM_USE_OCTAVE -ne '0' ]]\n\tthen echo \"endswitch\"\nelse\n\techo \"end\"\nfi`",
|
174
|
+
name: "switch … case … otherwise … end",
|
175
|
+
scope: "source.matlab",
|
176
|
+
tabTrigger: "switcho",
|
177
|
+
uuid: "C600A817-A58A-4884-9BDC-F7CB13407CB6"},
|
178
|
+
{content: "set(get(gca,'Title'),'String',${1:'${2}'});",
|
179
|
+
name: "title",
|
180
|
+
scope: "source.matlab , source.octave",
|
181
|
+
tabTrigger: "zla",
|
182
|
+
uuid: "7298E093-E86F-4A60-ACFF-67580F24FD27"},
|
183
|
+
{content:
|
184
|
+
"try \n\t$1\ncatch \n\t$0\n`if [[ $TM_USE_OCTAVE -ne '0' ]]\n\tthen echo \"end_try_catch\"\nelse\n\techo \"end\"\nfi`",
|
185
|
+
name: "try … catch … end",
|
186
|
+
scope: "source.matlab",
|
187
|
+
tabTrigger: "try",
|
188
|
+
uuid: "B287F24B-9BC5-4EAB-9621-1E73D367AAB7"},
|
189
|
+
{content: "[${1:s},${2:w}] = unix('${3:Unix commands}');",
|
190
|
+
name: "unix",
|
191
|
+
scope: "source.matlab, source.octave",
|
192
|
+
tabTrigger: "uni",
|
193
|
+
uuid: "F0A7C9BF-8FE2-4452-8EC9-F71881C7831F"},
|
194
|
+
{content:
|
195
|
+
"unwind_protect \n\t$1\nunwnd_protect_cleanup \n\t$0\nend_unwind_protect",
|
196
|
+
name: "unwind_protect … cleanup … end",
|
197
|
+
scope: "source.matlab",
|
198
|
+
tabTrigger: "unwind",
|
199
|
+
uuid: "9475371F-F8A7-4C46-BAC9-B42E7E34F2AD"},
|
200
|
+
{content: "warning(['${1:Description}']);",
|
201
|
+
name: "warning",
|
202
|
+
scope: "source.matlab, source.octave",
|
203
|
+
tabTrigger: "war",
|
204
|
+
uuid: "6392FF26-D584-435E-8202-9BC99FF26488"},
|
205
|
+
{content: "while ${1:condition}\n\t${2:body}\nend\n",
|
206
|
+
name: "while",
|
207
|
+
scope: "source.matlab , source.octave",
|
208
|
+
tabTrigger: "whi",
|
209
|
+
uuid: "ADE63DB1-7F3A-4EAC-A5A4-3A35A28FE8F0"},
|
210
|
+
{content: "set(get(gca,'XLabel'),'String',${1:'${2}'});",
|
211
|
+
name: "xlabel",
|
212
|
+
scope: "source.matlab , source.octave",
|
213
|
+
tabTrigger: "xla",
|
214
|
+
uuid: "178F5EE1-2953-4FB2-8623-99A1C7D0772F"},
|
215
|
+
{content: "set(gca,'XTick',${1:[${2}]});",
|
216
|
+
name: "xtick",
|
217
|
+
scope: "source.matlab , source.octave",
|
218
|
+
tabTrigger: "xti",
|
219
|
+
uuid: "A93C4844-87F4-4136-9580-75B697D0CFD7"},
|
220
|
+
{content: "set(get(gca,'YLabel'),'String',${1:'${2}'});",
|
221
|
+
name: "ylabel",
|
222
|
+
scope: "source.matlab , source.octave",
|
223
|
+
tabTrigger: "yla",
|
224
|
+
uuid: "1F4C6EA6-370C-45A9-96C5-36E69CC297E3"},
|
225
|
+
{content: "set(gca,'YTick',${1:[${2}]});",
|
226
|
+
name: "ytick",
|
227
|
+
scope: "source.matlab , source.octave",
|
228
|
+
tabTrigger: "yti",
|
229
|
+
uuid: "2FED97FA-0EB0-45E3-B92F-757903E79684"},
|
230
|
+
{content: "set(get(gca,'ZLabel'),'String',${1:'${2}'});",
|
231
|
+
name: "zlabel",
|
232
|
+
scope: "source.matlab , source.octave",
|
233
|
+
tabTrigger: "zla",
|
234
|
+
uuid: "3C12382B-FD63-4DD8-9198-02D25AF755FF"}]
|