ver 2009.12.14 → 2010.02
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +1 -0
- data/.mailmap +1 -0
- data/.todo +102 -0
- data/.yardopts +1 -0
- data/AUTHORS +3 -3
- data/CHANGELOG +1597 -0
- data/MANIFEST +521 -329
- data/ROADMAP.textile +187 -0
- data/Rakefile +6 -4
- data/bin/ver +98 -35
- data/config/detect.rb +65 -37
- data/config/keymap/diakonos.rb +180 -178
- data/config/keymap/emacs.rb +44 -63
- data/config/keymap/nano.rb +174 -0
- data/config/keymap/vim.rb +459 -381
- data/config/plugin/animated_tiling.rb +90 -0
- data/config/plugin/autosave.rb +22 -0
- data/config/plugin/git.rb +46 -0
- data/config/plugin/smart_autoindent.rb +157 -0
- data/config/plugin/soma.rb +50 -0
- data/config/preferences/ANTLR.rb +6 -0
- data/config/preferences/ASP.rb +6 -0
- data/config/preferences/ActionScript.rb +747 -0
- data/config/preferences/Active4D.rb +35 -0
- data/config/preferences/Ada.rb +12 -0
- data/config/preferences/Ant.rb +348 -0
- data/config/preferences/Apache.rb +585 -0
- data/config/preferences/AppleScript.rb +35 -0
- data/config/preferences/Bulletin Board.rb +7 -0
- data/config/preferences/Bundle Development.rb +30 -0
- data/config/preferences/C++ Qt.rb +197 -0
- data/config/preferences/C.rb +60 -0
- data/config/preferences/CMake.rb +24 -0
- data/config/preferences/CSS.rb +396 -0
- data/config/preferences/ColdFusion.rb +13 -0
- data/config/preferences/Context Free.rb +16 -0
- data/config/preferences/D.rb +31 -0
- data/config/preferences/Diff.rb +36 -0
- data/config/preferences/DokuWiki.rb +13 -0
- data/config/preferences/Eiffel.rb +20 -0
- data/config/preferences/Erlang.rb +37 -0
- data/config/preferences/Experimental.rb +1352 -0
- data/config/preferences/F-Script.rb +29 -0
- data/config/preferences/FXScript.rb +23 -0
- data/config/preferences/Fortran.rb +70 -0
- data/config/preferences/GTD2.rb +6 -0
- data/config/preferences/GTDAlt.rb +12 -0
- data/config/preferences/Gettext.rb +14 -0
- data/config/preferences/Graphviz.rb +9 -0
- data/config/preferences/Gri.rb +9 -0
- data/config/preferences/HTML.rb +380 -0
- data/config/preferences/Haskell.rb +31 -0
- data/config/preferences/Hyperlink Helper.rb +78 -0
- data/config/preferences/Ini.rb +15 -0
- data/config/preferences/Io.rb +24 -0
- data/config/preferences/JSFL.rb +722 -0
- data/config/preferences/Java.rb +51 -0
- data/config/preferences/JavaScript Prototype & Script.aculo.us.rb +175 -0
- data/config/preferences/JavaScript YUI.rb +13 -0
- data/config/preferences/JavaScript.rb +41 -0
- data/config/preferences/LaTeX.rb +96 -0
- data/config/preferences/LilyPond.rb +22 -0
- data/config/preferences/Lisp.rb +17 -0
- data/config/preferences/Logo.rb +12 -0
- data/config/preferences/Logtalk.rb +193 -0
- data/config/preferences/Lua.rb +13 -0
- data/config/preferences/MEL.rb +13 -0
- data/config/preferences/MIPS Assembler.rb +9 -0
- data/config/preferences/Make.rb +8 -0
- data/config/preferences/Man Pages.rb +9 -0
- data/config/preferences/Matlab.rb +40 -0
- data/config/preferences/Maven.rb +220 -0
- data/config/preferences/Mediawiki.rb +27 -0
- data/config/preferences/Modula.rb +8 -0
- data/config/preferences/MoinMoin.rb +25 -0
- data/config/preferences/Movable Type.rb +47 -0
- data/config/preferences/OCaml Experimental Completions.rb +8 -0
- data/config/preferences/OCaml.rb +70 -0
- data/config/preferences/Objective-C.rb +54 -0
- data/config/preferences/OpenGL.rb +3327 -0
- data/config/preferences/Pascal.rb +15 -0
- data/config/preferences/Perl Template Toolkit.rb +19 -0
- data/config/preferences/Perl.rb +6 -0
- data/config/preferences/Postscript.rb +6 -0
- data/config/preferences/Processing.rb +13 -0
- data/config/preferences/Property List.rb +34 -0
- data/config/preferences/Python Django Templates.rb +13 -0
- data/config/preferences/Python.rb +24 -0
- data/config/preferences/Quake.rb +6 -0
- data/config/preferences/R Console (Rdaemon).rb +7 -0
- data/config/preferences/R.rb +17 -0
- data/config/preferences/Ragel.rb +6 -0
- data/config/preferences/Remind.rb +6 -0
- data/config/preferences/Rez.rb +10 -0
- data/config/preferences/Ruby Haml.rb +6 -0
- data/config/preferences/Ruby RSpec.rb +14 -0
- data/config/preferences/Ruby on Rails.rb +22 -0
- data/config/preferences/Ruby.rb +48 -0
- data/config/preferences/S5 Slide Show.rb +10 -0
- data/config/preferences/SQL.rb +17 -0
- data/config/preferences/SSH Config.rb +6 -0
- data/config/preferences/SWeave.rb +17 -0
- data/config/preferences/Scheme.rb +12 -0
- data/config/preferences/Scilab.rb +6 -0
- data/config/preferences/Shell Script.rb +13 -0
- data/config/preferences/Slate.rb +36 -0
- data/config/preferences/Source.rb +51 -0
- data/config/preferences/Standard ML.rb +18 -0
- data/config/preferences/Subversion.rb +6 -0
- data/config/preferences/Tcl.rb +19 -0
- data/config/preferences/TerminalMate.rb +46 -0
- data/config/preferences/Text.rb +31 -0
- data/config/preferences/TextMate.rb +18 -0
- data/config/preferences/Textile.rb +30 -0
- data/config/preferences/Thrift.rb +26 -0
- data/config/preferences/Twiki.rb +17 -0
- data/config/preferences/Txt2tags.rb +33 -0
- data/config/preferences/Vectorscript.rb +1240 -0
- data/config/preferences/XML.rb +26 -0
- data/config/preferences/YAML.rb +13 -0
- data/config/preferences/iCalendar.rb +6 -0
- data/config/preferences/iTerm.rb +16 -0
- data/config/preferences/newLisp.rb +10 -0
- data/config/preferences/reStructuredText.rb +17 -0
- data/config/rc.rb +13 -1
- data/config/snippets/ANTLR.rb +3 -0
- data/config/snippets/ASP vb.NET.rb +56 -0
- data/config/snippets/ASP.rb +38 -0
- data/config/snippets/ActionScript.rb +207 -0
- data/config/snippets/Active4D.rb +258 -0
- data/config/snippets/Ada.rb +62 -0
- data/config/snippets/Ant.rb +7 -0
- data/config/snippets/Apache.rb +22 -0
- data/config/snippets/AppleScript.rb +84 -0
- data/config/snippets/Bison.rb +3 -0
- data/config/snippets/Blogging.rb +20 -0
- data/config/snippets/Bulletin Board.rb +23 -0
- data/config/snippets/Bundle Development.rb +65 -0
- data/config/snippets/C++ Qt.rb +59 -0
- data/config/snippets/C.rb +102 -0
- data/config/snippets/CMake.rb +34 -0
- data/config/snippets/CSS.rb +117 -0
- data/config/snippets/CTags.rb +3 -0
- data/config/snippets/CVS.rb +3 -0
- data/config/snippets/ColdFusion.rb +1549 -0
- data/config/snippets/Context Free.rb +30 -0
- data/config/snippets/D.rb +113 -0
- data/config/snippets/Darcs.rb +3 -0
- data/config/snippets/Diff.rb +3 -0
- data/config/snippets/DokuWiki.rb +56 -0
- data/config/snippets/Doxygen.rb +42 -0
- data/config/snippets/Dylan.rb +3 -0
- data/config/snippets/Eiffel.rb +20 -0
- data/config/snippets/Erlang.rb +70 -0
- data/config/snippets/Experimental Wiki.rb +3 -0
- data/config/snippets/Experimental.rb +3 -0
- data/config/snippets/F-Script.rb +26 -0
- data/config/snippets/FXScript.rb +212 -0
- data/config/snippets/FileMerge.rb +3 -0
- data/config/snippets/Fortran.rb +282 -0
- data/config/snippets/GTD2.rb +3 -0
- data/config/snippets/GTDAlt.rb +6 -0
- data/config/snippets/GetBundle.rb +3 -0
- data/config/snippets/Gettext.rb +10 -0
- data/config/snippets/Graphviz.rb +3 -0
- data/config/snippets/Greasemonkey.rb +44 -0
- data/config/snippets/Gri.rb +12 -0
- data/config/snippets/HTML.rb +128 -0
- data/config/snippets/Haskell.rb +26 -0
- data/config/snippets/Hotkey.rb +3 -0
- data/config/snippets/Hyperlink Helper.rb +3 -0
- data/config/snippets/ImageBrowser.rb +3 -0
- data/config/snippets/Inform.rb +3 -0
- data/config/snippets/Ini.rb +3 -0
- data/config/snippets/Installer.rb +3 -0
- data/config/snippets/Io.rb +44 -0
- data/config/snippets/JSFL.rb +3 -0
- data/config/snippets/JSON.rb +3 -0
- data/config/snippets/Java.rb +94 -0
- data/config/snippets/JavaDoc.rb +58 -0
- data/config/snippets/JavaScript MooTools.rb +15 -0
- data/config/snippets/JavaScript Objective-J.rb +17 -0
- data/config/snippets/JavaScript Prototype & Script.aculo.us.rb +109 -0
- data/config/snippets/JavaScript YUI.rb +188 -0
- data/config/snippets/JavaScript jQuery.rb +377 -0
- data/config/snippets/JavaScript.rb +55 -0
- data/config/snippets/Lex-Flex.rb +3 -0
- data/config/snippets/Lighttpd.rb +3 -0
- data/config/snippets/LilyPond.rb +18 -0
- data/config/snippets/Lisp.rb +42 -0
- data/config/snippets/Logo.rb +8 -0
- data/config/snippets/Logtalk.rb +62 -0
- data/config/snippets/Lua.rb +35 -0
- data/config/snippets/MEL.rb +3 -0
- data/config/snippets/MIPS Assembler.rb +7 -0
- data/config/snippets/MacPorts.rb +3 -0
- data/config/snippets/Mail.rb +3 -0
- data/config/snippets/Make.rb +3 -0
- data/config/snippets/Man Pages.rb +3 -0
- data/config/snippets/Math.rb +3 -0
- data/config/snippets/Matlab.rb +180 -0
- data/config/snippets/Maven.rb +7 -0
- data/config/snippets/Mediawiki.rb +14 -0
- data/config/snippets/Mercurial.rb +3 -0
- data/config/snippets/Modula.rb +3 -0
- data/config/snippets/MoinMoin.rb +12 -0
- data/config/snippets/Movable Type.rb +55 -0
- data/config/snippets/Navigation.rb +3 -0
- data/config/snippets/Nemerle.rb +81 -0
- data/config/snippets/OCaml Code Completion Misc.rb +74 -0
- data/config/snippets/OCaml Code Completion Unix.rb +205 -0
- data/config/snippets/OCaml Experimental Completions.rb +3 -0
- data/config/snippets/OCaml.rb +75 -0
- data/config/snippets/ODCompletion.rb +120 -0
- data/config/snippets/Objective-C.rb +195 -0
- data/config/snippets/OpenGL.rb +3 -0
- data/config/snippets/Outlines.rb +3 -0
- data/config/snippets/PHP Smarty.rb +81 -0
- data/config/snippets/Pascal.rb +35 -0
- data/config/snippets/Perforce.rb +3 -0
- data/config/snippets/Perl HTML::Template.rb +27 -0
- data/config/snippets/Perl Mason.rb +32 -0
- data/config/snippets/Perl Template Toolkit.rb +22 -0
- data/config/snippets/Perl.rb +74 -0
- data/config/snippets/Postscript.rb +3 -0
- data/config/snippets/Processing.rb +35 -0
- data/config/snippets/Prolog.rb +3 -0
- data/config/snippets/Propel.rb +32 -0
- data/config/snippets/Property List.rb +26 -0
- data/config/snippets/Python Django Templates.rb +97 -0
- data/config/snippets/Python Django.rb +134 -0
- data/config/snippets/Quake.rb +3 -0
- data/config/snippets/R Console (R.app).rb +3 -0
- data/config/snippets/R Console (Rdaemon).rb +11 -0
- data/config/snippets/R.rb +79 -0
- data/config/snippets/Ragel.rb +3 -0
- data/config/snippets/Regular Expressions.rb +3 -0
- data/config/snippets/Remind.rb +17 -0
- data/config/snippets/Rez.rb +3 -0
- data/config/snippets/Ruby Haml.rb +3 -0
- data/config/snippets/Ruby RSpec.rb +240 -0
- data/config/snippets/Ruby on Rails.rb +767 -0
- data/config/snippets/Ruby.rb +547 -0
- data/config/snippets/S5 Slide Show.rb +26 -0
- data/config/snippets/SCons.rb +3 -0
- data/config/snippets/SQL.rb +3 -0
- data/config/snippets/SSH Config.rb +19 -0
- data/config/snippets/SVK.rb +3 -0
- data/config/snippets/SWIG.rb +20 -0
- data/config/snippets/SWeave.rb +3 -0
- data/config/snippets/Scheme.rb +3 -0
- data/config/snippets/Scilab.rb +81 -0
- data/config/snippets/Setext.rb +10 -0
- data/config/snippets/Shell Script.rb +44 -0
- data/config/snippets/Slate.rb +50 -0
- data/config/snippets/Source.rb +3 -0
- data/config/snippets/Standard ML.rb +29 -0
- data/config/snippets/Subversion.rb +3 -0
- data/config/snippets/TODO.rb +3 -0
- data/config/snippets/Tabular.rb +3 -0
- data/config/snippets/Tcl.rb +28 -0
- data/config/snippets/TerminalMate.rb +3 -0
- data/config/snippets/Text.rb +17 -0
- data/config/snippets/TextMate.rb +3 -0
- data/config/snippets/Textile.rb +47 -0
- data/config/snippets/Thrift.rb +20 -0
- data/config/snippets/Transmit.rb +3 -0
- data/config/snippets/Twiki.rb +107 -0
- data/config/snippets/Txt2tags.rb +81 -0
- data/config/snippets/Vectorscript.rb +40 -0
- data/config/snippets/Widget Creator.rb +7 -0
- data/config/snippets/XML.rb +20 -0
- data/config/snippets/Xcode.rb +3 -0
- data/config/snippets/YAML.rb +6 -0
- data/config/snippets/iCalendar.rb +3 -0
- data/config/snippets/iTerm.rb +3 -0
- data/config/snippets/newLisp.rb +33 -0
- data/config/snippets/reStructuredText.rb +22 -0
- data/config/syntax/ANTLR.rb +122 -0
- data/config/syntax/ASP vb.NET.rb +114 -0
- data/config/syntax/ASP.rb +72 -0
- data/config/syntax/ActionScript.rb +83 -0
- data/config/syntax/Active4D Config.rb +38 -0
- data/config/syntax/Active4D Library.rb +20 -0
- data/config/syntax/Active4D.rb +237 -0
- data/config/syntax/Ada.rb +50 -0
- data/config/syntax/Ant.rb +80 -0
- data/config/syntax/Apache.rb +148 -0
- data/config/syntax/AppleScript.rb +370 -0
- data/config/syntax/BibTeX.rb +98 -0
- data/config/syntax/Bison.rb +28 -0
- data/config/syntax/Blog - HTML.rb +38 -0
- data/config/syntax/Blog - Markdown.rb +36 -0
- data/config/syntax/Blog - Text.rb +24 -0
- data/config/syntax/Blog - Textile.rb +24 -0
- data/config/syntax/Bulletin Board.rb +202 -0
- data/config/syntax/C++ Qt.rb +27 -0
- data/config/syntax/C++.rb +159 -0
- data/config/syntax/C.rb +341 -0
- data/config/syntax/CMake Listfile.rb +87 -0
- data/config/syntax/CSS.rb +151 -0
- data/config/syntax/CSV.rb +52 -0
- data/config/syntax/ColdFusion.rb +92 -0
- data/config/syntax/Context Free.rb +133 -0
- data/config/syntax/D.rb +285 -0
- data/config/syntax/Diff.rb +59 -0
- data/config/syntax/DokuWiki.rb +158 -0
- data/config/syntax/Doxygen.rb +31 -0
- data/config/syntax/Dylan.rb +53 -0
- data/config/syntax/Eiffel.rb +52 -0
- data/config/syntax/Erlang.rb +632 -0
- data/config/syntax/F-Script.rb +56 -0
- data/config/syntax/FXScript.rb +140 -0
- data/config/syntax/Fortran - Modern.rb +147 -0
- data/config/syntax/Fortran - Punchcard.rb +257 -0
- data/config/syntax/GTD.rb +15 -0
- data/config/syntax/GTDalt.rb +95 -0
- data/config/syntax/Gettext.rb +54 -0
- data/config/syntax/Graphviz (DOT).rb +37 -0
- data/config/syntax/Greasemonkey.rb +31 -0
- data/config/syntax/Gri.rb +61 -0
- data/config/syntax/HTML (ASP).rb +23 -0
- data/config/syntax/HTML (ASP.net).rb +304 -0
- data/config/syntax/HTML (Active4D).rb +219 -0
- data/config/syntax/HTML (Django).rb +35 -0
- data/config/syntax/HTML (Erlang).rb +26 -0
- data/config/syntax/HTML (Mason).rb +74 -0
- data/config/syntax/HTML (Rails).rb +34 -0
- data/config/syntax/HTML (Tcl).rb +23 -0
- data/config/syntax/HTML (Template Toolkit).rb +88 -0
- data/config/syntax/HTML.rb +265 -0
- data/config/syntax/Haskell.rb +188 -0
- data/config/syntax/Inform.rb +37 -0
- data/config/syntax/Ini.rb +36 -0
- data/config/syntax/Installer Distribution Script.rb +78 -0
- data/config/syntax/Io.rb +59 -0
- data/config/syntax/JSFL.rb +24 -0
- data/config/syntax/JSON.rb +118 -0
- data/config/syntax/Java Properties.rb +21 -0
- data/config/syntax/Java Server Page (JSP).rb +71 -0
- data/config/syntax/Java.rb +288 -0
- data/config/syntax/JavaDoc.rb +178 -0
- data/config/syntax/JavaScript (Rails).rb +24 -0
- data/config/syntax/JavaScript.rb +193 -0
- data/config/syntax/Javascript YUI.rb +245 -0
- data/config/syntax/LaTeX Beamer.rb +30 -0
- data/config/syntax/LaTeX Log.rb +35 -0
- data/config/syntax/LaTeX Memoir.rb +46 -0
- data/config/syntax/LaTeX Rdaemon.rb +24 -0
- data/config/syntax/LaTeX.rb +424 -0
- data/config/syntax/Language Grammar.rb +585 -0
- data/config/syntax/Lex-Flex.rb +172 -0
- data/config/syntax/Lighttpd.rb +41 -0
- data/config/syntax/LilyPond.rb +383 -0
- data/config/syntax/Lisp.rb +43 -0
- data/config/syntax/Literate Haskell.rb +26 -0
- data/config/syntax/Logo.rb +25 -0
- data/config/syntax/Logtalk.rb +131 -0
- data/config/syntax/Lua.rb +65 -0
- data/config/syntax/MATLAB.rb +468 -0
- data/config/syntax/MEL.rb +65 -0
- data/config/syntax/MIPS Assembler.rb +47 -0
- data/config/syntax/MacPorts Portfile.rb +130 -0
- data/config/syntax/Mail.rb +97 -0
- data/config/syntax/Makefile.rb +30 -0
- data/config/syntax/Man.rb +16 -0
- data/config/syntax/Maven POM.rb +305 -0
- data/config/syntax/Mediawiki.rb +349 -0
- data/config/syntax/Modula-3.rb +40 -0
- data/config/syntax/MoinMoin.rb +132 -0
- data/config/syntax/MooTools.rb +375 -0
- data/config/syntax/Movable Type (MT only).rb +143 -0
- data/config/syntax/Movable Type.rb +156 -0
- data/config/syntax/Nemerle.rb +63 -0
- data/config/syntax/OCaml.rb +553 -0
- data/config/syntax/OCamllex.rb +133 -0
- data/config/syntax/OCamlyacc.rb +148 -0
- data/config/syntax/Objective-C++.rb +15 -0
- data/config/syntax/Objective-C.rb +423 -0
- data/config/syntax/Objective-J.rb +183 -0
- data/config/syntax/Octave.rb +215 -0
- data/config/syntax/OpenGL.rb +18 -0
- data/config/syntax/Pascal.rb +57 -0
- data/config/syntax/Perl HTML-Template.rb +61 -0
- data/config/syntax/Perl.rb +764 -0
- data/config/syntax/Plain Text.rb +27 -0
- data/config/syntax/Postscript.rb +88 -0
- data/config/syntax/Processing.rb +87 -0
- data/config/syntax/Prolog.rb +31 -0
- data/config/syntax/Property List.rb +463 -0
- data/config/syntax/Prototype & Script.aculo.us (JavaScript) Bracketed.rb +100 -0
- data/config/syntax/Prototype & Script.aculo.us (JavaScript).rb +56 -0
- data/config/syntax/Python Django.rb +25 -0
- data/config/syntax/Python.rb +836 -0
- data/config/syntax/Quake Style .cfg.rb +27 -0
- data/config/syntax/R Console (R.app).rb +13 -0
- data/config/syntax/R Console (Rdaemon) Plain.rb +30 -0
- data/config/syntax/R Console (Rdaemon).rb +33 -0
- data/config/syntax/R.rb +64 -0
- data/config/syntax/RJS.rb +8 -0
- data/config/syntax/RSpec.rb +64 -0
- data/config/syntax/Ragel.rb +159 -0
- data/config/syntax/Rd (R Documentation).rb +50 -0
- data/config/syntax/Regular Expressions (Oniguruma).rb +78 -0
- data/config/syntax/Regular Expressions (Python).rb +78 -0
- data/config/syntax/Release Notes.rb +38 -0
- data/config/syntax/Remind.rb +179 -0
- data/config/syntax/Rez.rb +61 -0
- data/config/syntax/Ruby Haml.rb +97 -0
- data/config/syntax/Ruby on Rails.rb +116 -0
- data/config/syntax/Ruby.rb +758 -0
- data/config/syntax/S5 Slide Show.rb +51 -0
- data/config/syntax/SQL (Rails).rb +17 -0
- data/config/syntax/SQL.rb +205 -0
- data/config/syntax/SSH Config.rb +25 -0
- data/config/syntax/SWIG.rb +47 -0
- data/config/syntax/SWeave.rb +57 -0
- data/config/syntax/Scheme.rb +280 -0
- data/config/syntax/Scilab.rb +30 -0
- data/config/syntax/Setext.rb +102 -0
- data/config/syntax/Shell Script (Bash).rb +454 -0
- data/config/syntax/Slate.rb +96 -0
- data/config/syntax/Smarty.rb +46 -0
- data/config/syntax/Standard ML - CM.rb +27 -0
- data/config/syntax/Standard ML.rb +119 -0
- data/config/syntax/Strings File.rb +33 -0
- data/config/syntax/TSV.rb +40 -0
- data/config/syntax/Tcl.rb +119 -0
- data/config/syntax/TeX Math.rb +37 -0
- data/config/syntax/TeX.rb +58 -0
- data/config/syntax/Textile.rb +174 -0
- data/config/syntax/Thrift.rb +285 -0
- data/config/syntax/Twiki.rb +163 -0
- data/config/syntax/Txt2tags.rb +70 -0
- data/config/syntax/Vectorscript.rb +48 -0
- data/config/syntax/XML strict.rb +60 -0
- data/config/syntax/XML.rb +117 -0
- data/config/syntax/XSL.rb +43 -0
- data/config/syntax/YAML.rb +109 -0
- data/config/syntax/camlp4.rb +27 -0
- data/config/syntax/iCalendar.rb +25 -0
- data/config/syntax/jQuery (JavaScript).rb +108 -0
- data/config/syntax/mod_perl.rb +41 -0
- data/config/syntax/newLisp.rb +82 -0
- data/config/syntax/qmake Project file.rb +87 -0
- data/config/syntax/reStructuredText.rb +180 -0
- data/config/syntax/svn-commit.tmp.rb +25 -0
- data/config/theme/Active4D.rb +105 -0
- data/config/theme/All Hallow's Eve.rb +70 -0
- data/config/theme/Amy.rb +141 -0
- data/config/theme/Blackboard.rb +90 -0
- data/config/theme/Brilliance Black.rb +693 -0
- data/config/theme/Brilliance Dull.rb +588 -0
- data/config/theme/Cobalt.rb +147 -0
- data/config/theme/Dawn.rb +113 -0
- data/config/theme/Eiffel.rb +113 -0
- data/config/theme/Embers.rb +125 -0
- data/config/theme/Espresso Libre.rb +104 -0
- data/config/theme/IDLE.rb +57 -0
- data/config/theme/LAZY.rb +74 -0
- data/config/theme/Mac Classic.rb +117 -0
- data/config/theme/MagicWB (Amiga).rb +97 -0
- data/config/theme/Pastels on Dark.rb +182 -0
- data/config/theme/Slush & Poppies.rb +83 -0
- data/config/theme/SpaceCadet.rb +44 -0
- data/config/theme/Sunburst.rb +172 -0
- data/config/theme/Twilight.rb +137 -0
- data/config/theme/Zenburnesque.rb +88 -0
- data/config/theme/iPlastic.rb +73 -0
- data/config/theme/newLISP dark.rb +183 -0
- data/config/theme/newLISP.rb +183 -0
- data/config/welcome +10 -14
- data/lib/ver.rb +272 -79
- data/lib/ver/action.rb +43 -0
- data/lib/ver/buffer.rb +229 -0
- data/lib/ver/buffer/console.rb +171 -0
- data/lib/ver/buffer/term.rb +255 -0
- data/lib/ver/entry.rb +120 -97
- data/lib/ver/exception_view.rb +11 -1
- data/lib/ver/executor.rb +83 -0
- data/lib/ver/executor/buffer.rb +31 -0
- data/lib/ver/executor/entry.rb +175 -0
- data/lib/ver/executor/fuzzy_file_finder.rb +100 -0
- data/lib/ver/executor/grep.rb +101 -0
- data/lib/ver/executor/label.rb +57 -0
- data/lib/ver/executor/locate.rb +20 -0
- data/lib/ver/executor/method.rb +80 -0
- data/lib/ver/executor/path.rb +45 -0
- data/lib/ver/executor/syntax.rb +22 -0
- data/lib/ver/executor/theme.rb +21 -0
- data/lib/ver/help.rb +0 -10
- data/lib/ver/help/describe_key.rb +8 -7
- data/lib/ver/help/help_for_help.rb +1 -1
- data/lib/ver/hover_completion.rb +39 -34
- data/lib/ver/keymap.rb +121 -158
- data/lib/ver/keymap/keymapped.rb +25 -0
- data/lib/ver/keysyms.rb +104 -0
- data/lib/ver/layout/notebook.rb +74 -0
- data/lib/ver/layout/paned.rb +184 -0
- data/lib/ver/layout/tiling.rb +135 -0
- data/lib/ver/layout/tiling/common.rb +34 -0
- data/lib/ver/layout/tiling/horizontal.rb +25 -0
- data/lib/ver/layout/tiling/vertical.rb +25 -0
- data/lib/ver/major_mode.rb +162 -0
- data/lib/ver/methods.rb +21 -22
- data/lib/ver/methods/autofill.rb +23 -0
- data/lib/ver/methods/basic.rb +53 -0
- data/lib/ver/methods/bookmark.rb +116 -104
- data/lib/ver/methods/clipboard.rb +59 -47
- data/lib/ver/methods/completion.rb +93 -77
- data/lib/ver/methods/control.rb +297 -240
- data/lib/ver/methods/ctags.rb +38 -29
- data/lib/ver/methods/delete.rb +47 -31
- data/lib/ver/methods/help.rb +9 -1
- data/lib/ver/methods/insert.rb +67 -203
- data/lib/ver/methods/layout.rb +122 -0
- data/lib/ver/methods/move.rb +229 -158
- data/lib/ver/methods/nano.rb +186 -0
- data/lib/ver/methods/open.rb +247 -53
- data/lib/ver/methods/preview.rb +66 -5
- data/lib/ver/methods/save.rb +127 -44
- data/lib/ver/methods/search.rb +103 -56
- data/lib/ver/methods/search_and_replace.rb +118 -0
- data/lib/ver/methods/selection.rb +443 -0
- data/lib/ver/methods/snippet.rb +244 -0
- data/lib/ver/methods/undo.rb +34 -13
- data/lib/ver/minibuffer.rb +293 -0
- data/lib/ver/minor_mode.rb +204 -0
- data/lib/ver/plist.rb +208 -20
- data/lib/ver/status.rb +76 -128
- data/lib/ver/status/battery.rb +147 -0
- data/lib/ver/status/buffer_position.rb +17 -0
- data/lib/ver/status/diakonos_position.rb +17 -0
- data/lib/ver/status/encoding.rb +13 -0
- data/lib/ver/status/filename.rb +13 -0
- data/lib/ver/status/label.rb +62 -0
- data/lib/ver/status/mode.rb +15 -0
- data/lib/ver/status/nano_help.rb +71 -0
- data/lib/ver/status/nano_position.rb +38 -0
- data/lib/ver/status/percent.rb +17 -0
- data/lib/ver/status/position.rb +16 -0
- data/lib/ver/status/separator.rb +20 -0
- data/lib/ver/status/short_filename.rb +13 -0
- data/lib/ver/status/syntax.rb +13 -0
- data/lib/ver/syntax.rb +15 -20
- data/lib/ver/syntax/detector.rb +7 -13
- data/lib/ver/syntax/processor.rb +4 -4
- data/lib/ver/text.rb +337 -170
- data/lib/ver/theme.rb +51 -28
- data/lib/ver/treeview.rb +54 -0
- data/lib/ver/undo.rb +37 -17
- data/lib/ver/vendor/better_pp_hash.rb +27 -0
- data/lib/ver/vendor/binary_search.rb +2 -2
- data/lib/ver/vendor/fuzzy_file_finder.rb +22 -8
- data/lib/ver/vendor/pathname.rb +26 -0
- data/lib/ver/vendor/textpow.rb +30 -32
- data/lib/ver/version.rb +1 -1
- data/lib/ver/widget_event.rb +49 -0
- data/lib/ver/widget_major_mode.rb +192 -0
- data/spec/helper.rb +49 -78
- data/spec/tm_snippet.rb +178 -0
- data/spec/ver/action.rb +65 -0
- data/spec/ver/keymap.rb +77 -0
- data/spec/ver/major_mode.rb +150 -0
- data/spec/ver/methods/move.rb +150 -0
- data/spec/ver/minor_mode.rb +90 -0
- data/spec/ver/plugin/smart_autoindent.rb +276 -0
- data/spec/ver/widget_major_mode.rb +69 -0
- data/tasks/rcov.rake +2 -3
- data/tasks/syntax_list.rake +28 -24
- data/ver.gemspec +6 -9
- metadata +524 -342
- data/TODO +0 -169
- data/config/preferences/ANTLR.json +0 -10
- data/config/preferences/ASP vb.NET.json +0 -3
- data/config/preferences/ASP.json +0 -15
- data/config/preferences/ActionScript.json +0 -755
- data/config/preferences/Active4D.json +0 -89
- data/config/preferences/Ada.json +0 -23
- data/config/preferences/Ant.json +0 -356
- data/config/preferences/Apache.json +0 -644
- data/config/preferences/AppleScript.json +0 -92
- data/config/preferences/Bison.json +0 -3
- data/config/preferences/Blogging.json +0 -3
- data/config/preferences/C.json +0 -127
- data/config/preferences/CMake.json +0 -41
- data/config/preferences/CSS.json +0 -461
- data/config/preferences/CTags.json +0 -3
- data/config/preferences/CVS.json +0 -3
- data/config/preferences/ColdFusion.json +0 -32
- data/config/preferences/D.json +0 -58
- data/config/preferences/Darcs.json +0 -3
- data/config/preferences/Diff.json +0 -67
- data/config/preferences/DokuWiki.json +0 -19
- data/config/preferences/Doxygen.json +0 -3
- data/config/preferences/Dylan.json +0 -3
- data/config/preferences/Eiffel.json +0 -59
- data/config/preferences/Erlang.json +0 -72
- data/config/preferences/Experimental.json +0 -1356
- data/config/preferences/F-Script.json +0 -87
- data/config/preferences/FXScript.json +0 -78
- data/config/preferences/FileMerge.json +0 -3
- data/config/preferences/Fortran.json +0 -158
- data/config/preferences/GTD2.json +0 -11
- data/config/preferences/GTDAlt.json +0 -20
- data/config/preferences/GetBundle.json +0 -3
- data/config/preferences/Gettext.json +0 -24
- data/config/preferences/Graphviz.json +0 -42
- data/config/preferences/Greasemonkey.json +0 -3
- data/config/preferences/Gri.json +0 -34
- data/config/preferences/HTML.json +0 -492
- data/config/preferences/Haskell.json +0 -72
- data/config/preferences/Hotkey.json +0 -3
- data/config/preferences/ImageBrowser.json +0 -3
- data/config/preferences/Inform.json +0 -3
- data/config/preferences/Ini.json +0 -60
- data/config/preferences/Installer.json +0 -3
- data/config/preferences/Io.json +0 -64
- data/config/preferences/JSON.json +0 -3
- data/config/preferences/Java.json +0 -86
- data/config/preferences/JavaDoc.json +0 -3
- data/config/preferences/JavaScript.json +0 -76
- data/config/preferences/LaTeX.json +0 -267
- data/config/preferences/Lex/Flex.json +0 -3
- data/config/preferences/Lighttpd.json +0 -3
- data/config/preferences/LilyPond.json +0 -77
- data/config/preferences/Lisp.json +0 -63
- data/config/preferences/Logo.json +0 -58
- data/config/preferences/Logtalk.json +0 -236
- data/config/preferences/Lua.json +0 -24
- data/config/preferences/MEL.json +0 -19
- data/config/preferences/MIPS Assembler.json +0 -26
- data/config/preferences/MacPorts.json +0 -3
- data/config/preferences/Mail.json +0 -3
- data/config/preferences/Make.json +0 -16
- data/config/preferences/Markdown.json +0 -102
- data/config/preferences/Math.json +0 -3
- data/config/preferences/Matlab.json +0 -128
- data/config/preferences/Maven.json +0 -308
- data/config/preferences/Mediawiki.json +0 -73
- data/config/preferences/Mercurial.json +0 -3
- data/config/preferences/Modula.json +0 -37
- data/config/preferences/MoinMoin.json +0 -52
- data/config/preferences/Navigation.json +0 -3
- data/config/preferences/Nemerle.json +0 -3
- data/config/preferences/OCaml Code Completion.json +0 -3
- data/config/preferences/OCaml.json +0 -163
- data/config/preferences/ODCompletion.json +0 -3
- data/config/preferences/Objective-C.json +0 -84
- data/config/preferences/OpenGL.json +0 -3331
- data/config/preferences/Outlines.json +0 -3
- data/config/preferences/Pascal.json +0 -60
- data/config/preferences/Perforce.json +0 -3
- data/config/preferences/Perl.json +0 -15
- data/config/preferences/PmWiki.json +0 -27
- data/config/preferences/Postscript.json +0 -15
- data/config/preferences/Processing.json +0 -32
- data/config/preferences/Prolog.json +0 -3
- data/config/preferences/Propel.json +0 -3
- data/config/preferences/Python.json +0 -38
- data/config/preferences/Quake.json +0 -15
- data/config/preferences/R.json +0 -33
- data/config/preferences/Ragel.json +0 -15
- data/config/preferences/Regular Expressions.json +0 -3
- data/config/preferences/Remind.json +0 -15
- data/config/preferences/Rez.json +0 -46
- data/config/preferences/Ruby.json +0 -98
- data/config/preferences/S5 Slide Show.json +0 -20
- data/config/preferences/SCons.json +0 -3
- data/config/preferences/SQL.json +0 -32
- data/config/preferences/SSH Config.json +0 -15
- data/config/preferences/SVK.json +0 -3
- data/config/preferences/SWIG.json +0 -3
- data/config/preferences/SWeave.json +0 -32
- data/config/preferences/Scheme.json +0 -35
- data/config/preferences/Scilab.json +0 -15
- data/config/preferences/Setext.json +0 -3
- data/config/preferences/Shell Script.json +0 -25
- data/config/preferences/Slate.json +0 -113
- data/config/preferences/Source.json +0 -132
- data/config/preferences/Subversion.json +0 -10
- data/config/preferences/TODO.json +0 -3
- data/config/preferences/Tabular.json +0 -3
- data/config/preferences/Tcl.json +0 -82
- data/config/preferences/TerminalMate.json +0 -112
- data/config/preferences/Text.json +0 -89
- data/config/preferences/TextMate.json +0 -38
- data/config/preferences/Textile.json +0 -76
- data/config/preferences/Thrift.json +0 -56
- data/config/preferences/Transmit.json +0 -3
- data/config/preferences/Twiki.json +0 -51
- data/config/preferences/Txt2tags.json +0 -81
- data/config/preferences/Vectorscript.json +0 -1280
- data/config/preferences/XML.json +0 -60
- data/config/preferences/Xcode.json +0 -3
- data/config/preferences/YAML.json +0 -24
- data/config/preferences/iCalendar.json +0 -10
- data/config/preferences/iTerm.json +0 -36
- data/config/preferences/reStructuredText.json +0 -48
- data/config/syntax/ANTLR.json +0 -275
- data/config/syntax/ASP vb.NET.json +0 -228
- data/config/syntax/ASP.json +0 -135
- data/config/syntax/ActionScript.json +0 -168
- data/config/syntax/Active4D Config.json +0 -86
- data/config/syntax/Active4D Library.json +0 -20
- data/config/syntax/Active4D.json +0 -418
- data/config/syntax/Ada.json +0 -108
- data/config/syntax/Ant.json +0 -196
- data/config/syntax/Apache.json +0 -342
- data/config/syntax/AppleScript.json +0 -721
- data/config/syntax/BibTeX.json +0 -253
- data/config/syntax/Bison.json +0 -59
- data/config/syntax/Blog - HTML.json +0 -47
- data/config/syntax/Blog - Markdown.json +0 -50
- data/config/syntax/Blog - Text.json +0 -45
- data/config/syntax/Blog - Textile.json +0 -45
- data/config/syntax/C++.json +0 -323
- data/config/syntax/C.json +0 -694
- data/config/syntax/CMake Listfile.json +0 -171
- data/config/syntax/CSS.json +0 -346
- data/config/syntax/CSV.json +0 -108
- data/config/syntax/ColdFusion.json +0 -204
- data/config/syntax/D.json +0 -560
- data/config/syntax/Diff.json +0 -136
- data/config/syntax/DokuWiki.json +0 -412
- data/config/syntax/Doxygen.json +0 -80
- data/config/syntax/Dylan.json +0 -104
- data/config/syntax/Eiffel.json +0 -128
- data/config/syntax/Erlang.json +0 -1636
- data/config/syntax/F-Script.json +0 -137
- data/config/syntax/FXScript.json +0 -260
- data/config/syntax/Fortran - Modern.json +0 -221
- data/config/syntax/Fortran - Punchcard.json +0 -468
- data/config/syntax/GTD.json +0 -39
- data/config/syntax/GTDalt.json +0 -233
- data/config/syntax/Gettext.json +0 -118
- data/config/syntax/Go.json +0 -555
- data/config/syntax/Graphviz (DOT).json +0 -79
- data/config/syntax/Greasemonkey.json +0 -56
- data/config/syntax/Gri.json +0 -141
- data/config/syntax/HTML (ASP).json +0 -45
- data/config/syntax/HTML (ASP.net).json +0 -736
- data/config/syntax/HTML (Active4D).json +0 -540
- data/config/syntax/HTML (Erlang).json +0 -31
- data/config/syntax/HTML (Tcl).json +0 -42
- data/config/syntax/HTML.json +0 -614
- data/config/syntax/Haskell.json +0 -407
- data/config/syntax/Inform.json +0 -80
- data/config/syntax/Ini.json +0 -91
- data/config/syntax/Installer Distribution Script.json +0 -135
- data/config/syntax/Io.json +0 -142
- data/config/syntax/JSON.json +0 -151
- data/config/syntax/Java Properties.json +0 -42
- data/config/syntax/Java Server Page (JSP).json +0 -163
- data/config/syntax/Java.json +0 -745
- data/config/syntax/JavaDoc.json +0 -435
- data/config/syntax/JavaScript.json +0 -446
- data/config/syntax/LaTeX Beamer.json +0 -65
- data/config/syntax/LaTeX Log.json +0 -88
- data/config/syntax/LaTeX Memoir.json +0 -101
- data/config/syntax/LaTeX.json +0 -962
- data/config/syntax/Lex-Flex.json +0 -396
- data/config/syntax/Lighttpd.json +0 -93
- data/config/syntax/LilyPond.json +0 -608
- data/config/syntax/Lisp.json +0 -101
- data/config/syntax/Literate Haskell.json +0 -55
- data/config/syntax/Logo.json +0 -48
- data/config/syntax/Logtalk.json +0 -289
- data/config/syntax/Lua.json +0 -146
- data/config/syntax/MATLAB.json +0 -744
- data/config/syntax/MEL.json +0 -161
- data/config/syntax/MIPS Assembler.json +0 -114
- data/config/syntax/MacPorts Portfile.json +0 -298
- data/config/syntax/Mail.json +0 -224
- data/config/syntax/Makefile.json +0 -66
- data/config/syntax/Markdown.json +0 -644
- data/config/syntax/Maven POM.json +0 -774
- data/config/syntax/Mediawiki.json +0 -736
- data/config/syntax/Modula-3.json +0 -80
- data/config/syntax/MoinMoin.json +0 -335
- data/config/syntax/MultiMarkdown.json +0 -41
- data/config/syntax/Nemerle.json +0 -128
- data/config/syntax/OCaml.json +0 -1391
- data/config/syntax/OCamllex.json +0 -307
- data/config/syntax/OCamlyacc.json +0 -346
- data/config/syntax/Objective-C++.json +0 -21
- data/config/syntax/Objective-C.json +0 -979
- data/config/syntax/Octave.json +0 -417
- data/config/syntax/OpenGL.json +0 -24
- data/config/syntax/PHP.json +0 -2184
- data/config/syntax/Pascal.json +0 -128
- data/config/syntax/Perl.json +0 -2091
- data/config/syntax/Plain Text.json +0 -49
- data/config/syntax/PmWiki.json +0 -241
- data/config/syntax/Postscript.json +0 -206
- data/config/syntax/Processing.json +0 -188
- data/config/syntax/Prolog.json +0 -70
- data/config/syntax/Python.json +0 -1934
- data/config/syntax/Quake Style .cfg.json +0 -54
- data/config/syntax/R.json +0 -157
- data/config/syntax/Ragel.json +0 -362
- data/config/syntax/Rd (R Documentation).json +0 -119
- data/config/syntax/Regular Expressions (Oniguruma).json +0 -186
- data/config/syntax/Regular Expressions (Python).json +0 -188
- data/config/syntax/Release Notes.json +0 -78
- data/config/syntax/Remind.json +0 -461
- data/config/syntax/Rez.json +0 -137
- data/config/syntax/Ruby Sass.json +0 -497
- data/config/syntax/Ruby.json +0 -1753
- data/config/syntax/S5 Slide Show.json +0 -85
- data/config/syntax/SQL.json +0 -435
- data/config/syntax/SSH Config.json +0 -55
- data/config/syntax/SWIG.json +0 -96
- data/config/syntax/SWeave.json +0 -139
- data/config/syntax/Scheme.json +0 -359
- data/config/syntax/Scilab.json +0 -69
- data/config/syntax/Setext.json +0 -247
- data/config/syntax/Shell Script (Bash).json +0 -1198
- data/config/syntax/Slate.json +0 -265
- data/config/syntax/Strings File.json +0 -53
- data/config/syntax/TSV.json +0 -83
- data/config/syntax/Tcl.json +0 -278
- data/config/syntax/TeX Math.json +0 -83
- data/config/syntax/TeX.json +0 -157
- data/config/syntax/Textile.json +0 -273
- data/config/syntax/Thrift.json +0 -641
- data/config/syntax/Twiki.json +0 -436
- data/config/syntax/Txt2tags.json +0 -154
- data/config/syntax/Vectorscript.json +0 -97
- data/config/syntax/XML strict.json +0 -148
- data/config/syntax/XML.json +0 -301
- data/config/syntax/XSL.json +0 -96
- data/config/syntax/YAML.json +0 -293
- data/config/syntax/camlp4.json +0 -63
- data/config/syntax/iCalendar.json +0 -51
- data/config/syntax/mod_perl.json +0 -72
- data/config/syntax/reStructuredText.json +0 -403
- data/config/syntax/svn-commit.tmp.json +0 -62
- data/config/theme/Active4D.json +0 -260
- data/config/theme/All Hallow's Eve.json +0 -171
- data/config/theme/Amy.json +0 -359
- data/config/theme/BBEdit.json +0 -269
- data/config/theme/Bespin.json +0 -322
- data/config/theme/Blackboard.json +0 -215
- data/config/theme/BoysAndGirls01.json +0 -156
- data/config/theme/Brilliance Black.json +0 -1695
- data/config/theme/Brilliance Dull.json +0 -1451
- data/config/theme/Classic Modified.json +0 -288
- data/config/theme/Cobalt.json +0 -345
- data/config/theme/Cool Glow.json +0 -215
- data/config/theme/Dawn.json +0 -258
- data/config/theme/Eiffel.json +0 -270
- data/config/theme/Espresso Libre.json +0 -247
- data/config/theme/Fluidvision.json +0 -272
- data/config/theme/IDLE.json +0 -159
- data/config/theme/LAZY.json +0 -178
- data/config/theme/Mac Classic.json +0 -277
- data/config/theme/MagicWB (Amiga).json +0 -231
- data/config/theme/Merbivore Soft.json +0 -181
- data/config/theme/Merbivore.json +0 -181
- data/config/theme/Monokai.json +0 -177
- data/config/theme/Notepad2.json +0 -166
- data/config/theme/Pastels on Dark.json +0 -437
- data/config/theme/RubyBlue.json +0 -226
- data/config/theme/Sin City 2.json +0 -361
- data/config/theme/Slate.json +0 -270
- data/config/theme/Slush & Poppies.json +0 -232
- data/config/theme/SpaceCadet.json +0 -143
- data/config/theme/Sunburst.json +0 -415
- data/config/theme/Twilight BG FG.json +0 -633
- data/config/theme/Twilight.json +0 -321
- data/config/theme/Whys Poignant.json +0 -119
- data/config/theme/Zenburnesque.json +0 -237
- data/config/theme/barf.json +0 -155
- data/config/theme/fake.json +0 -418
- data/config/theme/happydeluxe.json +0 -114
- data/config/theme/iLife 05.json +0 -393
- data/config/theme/iPlastic.json +0 -177
- data/config/theme/mintBlue Dark.json +0 -414
- data/config/theme/mintBlue.json +0 -415
- data/config/theme/monoindustrial.json +0 -276
- data/config/theme/starlight.json +0 -67
- data/lib/ver/layout.rb +0 -177
- data/lib/ver/methods/select.rb +0 -322
- data/lib/ver/methods/shortcuts.rb +0 -21
- data/lib/ver/methods/views.rb +0 -81
- data/lib/ver/mode.rb +0 -207
- data/lib/ver/status/context.rb +0 -166
- data/lib/ver/view.rb +0 -190
- data/lib/ver/view/console.rb +0 -171
- data/lib/ver/view/entry.rb +0 -32
- data/lib/ver/view/list.rb +0 -152
- data/lib/ver/view/list/buffer.rb +0 -27
- data/lib/ver/view/list/ex.rb +0 -71
- data/lib/ver/view/list/fuzzy_file_finder.rb +0 -44
- data/lib/ver/view/list/grep.rb +0 -53
- data/lib/ver/view/list/methods.rb +0 -159
- data/lib/ver/view/list/syntax.rb +0 -13
- data/lib/ver/view/list/theme.rb +0 -13
- data/lib/ver/view/term.rb +0 -255
- data/tasks/plist2json.rake +0 -35
@@ -0,0 +1,51 @@
|
|
1
|
+
# Encoding: UTF-8
|
2
|
+
|
3
|
+
{fileTypes: ["s5"],
|
4
|
+
foldingStartMarker:
|
5
|
+
/(?x)
|
6
|
+
(<(?i:head|body|table|thead|tbody|tfoot|tr|div|select|fieldset|style|script|ul|ol|form|dl)\b.*?>
|
7
|
+
|<!--(?!.*-->)
|
8
|
+
|\{\s*($|\?>\s*$|\/\/|\/\*(.*\*\/\s*$|(?!.*?\*\/)))
|
9
|
+
)/,
|
10
|
+
foldingStopMarker:
|
11
|
+
/(?x)
|
12
|
+
(<\/(?i:head|body|table|thead|tbody|tfoot|tr|div|select|fieldset|style|script|ul|ol|form|dl)>
|
13
|
+
|^\s*-->
|
14
|
+
|(^|\s)\}
|
15
|
+
)/,
|
16
|
+
keyEquivalent: /^~S/,
|
17
|
+
name: "S5 Slide Show",
|
18
|
+
patterns:
|
19
|
+
[{captures:
|
20
|
+
{1 => {name: "keyword.other.s5"},
|
21
|
+
2 => {name: "punctuation.separator.key-value.s5"},
|
22
|
+
3 => {name: "string.unquoted.s5"}},
|
23
|
+
match: /^([A-Za-z0-9]+)(:)\s*(.*)$\n?/,
|
24
|
+
name: "meta.header.s5"},
|
25
|
+
{begin: /^(?![A-Za-z0-9]+:)/,
|
26
|
+
end: "^(?=not)possible$",
|
27
|
+
patterns:
|
28
|
+
[{begin: /(^_{10}$)/,
|
29
|
+
beginCaptures: {1 => {name: "meta.separator.handout.s5"}},
|
30
|
+
comment:
|
31
|
+
"\n\t\t\t\t\t\tname = 'meta.separator.handout.s5';\n\t\t\t\t\t\tmatch = '(^_{10}$)';\n\t\t\t\t\t",
|
32
|
+
contentName: "text.html.markdown.handout.s5",
|
33
|
+
end: "(?=^(?:(?:✂-{6})+|^\#{10})$)",
|
34
|
+
patterns: [{include: "text.html.markdown"}]},
|
35
|
+
{begin: /(^\#{10}$)/,
|
36
|
+
beginCaptures: {1 => {name: "meta.separator.notes.s5"}},
|
37
|
+
comment:
|
38
|
+
"\n\t\t\t\t\t\tname = 'meta.separator.notes.s5';\n\t\t\t\t\t\tmatch = '(^\#{10}$)';\n\t\t\t\t\t",
|
39
|
+
contentName: "text.html.markdown.notes.s5",
|
40
|
+
end: "(?=^(?:(?:✂-{6})+|_{10})$)",
|
41
|
+
patterns: [{include: "text.html.markdown"}]},
|
42
|
+
{begin: /^((✂-{6})+$\n)/,
|
43
|
+
beginCaptures: {1 => {name: "meta.separator.slide.s5"}},
|
44
|
+
comment:
|
45
|
+
"\n\t\t\t\t\t\tname = 'meta.separator.slide.s5';\n\t\t\t\t\t\tmatch = '^((✂-{6})+$\\n)';\n\t\t\t\t\t",
|
46
|
+
contentName: "text.html.markdown.slide.s5",
|
47
|
+
end: "(?=^(?:(?:✂-{6})+|_{10}|\#{10})$)",
|
48
|
+
patterns: [{include: "text.html.markdown"}]},
|
49
|
+
{include: "text.html.markdown"}]}],
|
50
|
+
scopeName: "source.s5",
|
51
|
+
uuid: "84A2047B-4453-418D-B009-A3D3C60F3D1E"}
|
@@ -0,0 +1,17 @@
|
|
1
|
+
# Encoding: UTF-8
|
2
|
+
|
3
|
+
{fileTypes: ["erbsql", "sql.erb"],
|
4
|
+
foldingStartMarker: /\s*\(\s*$/,
|
5
|
+
foldingStopMarker: /^\s*\)/,
|
6
|
+
keyEquivalent: "^~R",
|
7
|
+
name: "SQL (Rails)",
|
8
|
+
patterns:
|
9
|
+
[{begin: /<%+(?!>)=?/,
|
10
|
+
end: "%>",
|
11
|
+
name: "source.ruby.rails.embedded.sql",
|
12
|
+
patterns:
|
13
|
+
[{match: /#.*?(?=%>)/, name: "comment.line.number-sign.ruby"},
|
14
|
+
{include: "source.ruby.rails"}]},
|
15
|
+
{include: "source.sql"}],
|
16
|
+
scopeName: "source.sql.ruby",
|
17
|
+
uuid: "D54FBDED-5481-4CC7-B75F-66465A499882"}
|
@@ -0,0 +1,205 @@
|
|
1
|
+
# Encoding: UTF-8
|
2
|
+
|
3
|
+
{fileTypes: ["sql", "ddl", "dml"],
|
4
|
+
foldingStartMarker: /\s*\(\s*$/,
|
5
|
+
foldingStopMarker: /^\s*\)/,
|
6
|
+
keyEquivalent: "^~S",
|
7
|
+
name: "SQL",
|
8
|
+
patterns:
|
9
|
+
[{include: "#comments"},
|
10
|
+
{captures:
|
11
|
+
{1 => {name: "keyword.other.create.sql"},
|
12
|
+
2 => {name: "keyword.other.sql"},
|
13
|
+
5 => {name: "entity.name.function.sql"}},
|
14
|
+
match:
|
15
|
+
/(?i:^\s*(create)\s+(aggregate|conversion|database|domain|function|group|(unique\s+)?index|language|operator class|operator|rule|schema|sequence|table|tablespace|trigger|type|user|view)\s+)(['"`]?)(\w+)\4/,
|
16
|
+
name: "meta.create.sql"},
|
17
|
+
{captures:
|
18
|
+
{1 => {name: "keyword.other.create.sql"},
|
19
|
+
2 => {name: "keyword.other.sql"}},
|
20
|
+
match:
|
21
|
+
/(?i:^\s*(drop)\s+(aggregate|conversion|database|domain|function|group|index|language|operator class|operator|rule|schema|sequence|table|tablespace|trigger|type|user|view))/,
|
22
|
+
name: "meta.drop.sql"},
|
23
|
+
{captures:
|
24
|
+
{1 => {name: "keyword.other.create.sql"},
|
25
|
+
2 => {name: "keyword.other.table.sql"},
|
26
|
+
3 => {name: "entity.name.function.sql"},
|
27
|
+
4 => {name: "keyword.other.cascade.sql"}},
|
28
|
+
match: /(?i:\s*(drop)\s+(table)\s+(\w+)(\s+cascade)?\b)/,
|
29
|
+
name: "meta.drop.sql"},
|
30
|
+
{captures:
|
31
|
+
{1 => {name: "keyword.other.create.sql"},
|
32
|
+
2 => {name: "keyword.other.table.sql"}},
|
33
|
+
match:
|
34
|
+
/(?i:^\s*(alter)\s+(aggregate|conversion|database|domain|function|group|index|language|operator class|operator|rule|schema|sequence|table|tablespace|trigger|type|user|view)\s+)/,
|
35
|
+
name: "meta.alter.sql"},
|
36
|
+
{captures:
|
37
|
+
{1 => {name: "storage.type.sql"},
|
38
|
+
10 => {name: "constant.numeric.sql"},
|
39
|
+
11 => {name: "storage.type.sql"},
|
40
|
+
12 => {name: "storage.type.sql"},
|
41
|
+
13 => {name: "storage.type.sql"},
|
42
|
+
14 => {name: "constant.numeric.sql"},
|
43
|
+
15 => {name: "storage.type.sql"},
|
44
|
+
2 => {name: "storage.type.sql"},
|
45
|
+
3 => {name: "constant.numeric.sql"},
|
46
|
+
4 => {name: "storage.type.sql"},
|
47
|
+
5 => {name: "constant.numeric.sql"},
|
48
|
+
6 => {name: "storage.type.sql"},
|
49
|
+
7 => {name: "constant.numeric.sql"},
|
50
|
+
8 => {name: "constant.numeric.sql"},
|
51
|
+
9 => {name: "storage.type.sql"}},
|
52
|
+
match:
|
53
|
+
/(?xi)
|
54
|
+
|
55
|
+
# normal stuff, capture 1
|
56
|
+
\b(bigint|bigserial|bit|boolean|box|bytea|cidr|circle|date|double\sprecision|inet|int|integer|line|lseg|macaddr|money|oid|path|point|polygon|real|serial|smallint|sysdate|text)\b
|
57
|
+
|
58
|
+
# numeric suffix, capture 2 + 3i
|
59
|
+
|\b(bit\svarying|character\s(?:varying)?|tinyint|var\schar|float|interval)\((\d+)\)
|
60
|
+
|
61
|
+
# optional numeric suffix, capture 4 + 5i
|
62
|
+
|\b(char|number|varchar\d?)\b(?:\((\d+)\))?
|
63
|
+
|
64
|
+
# special case, capture 6 + 7i + 8i
|
65
|
+
|\b(numeric)\b(?:\((\d+),(\d+)\))?
|
66
|
+
|
67
|
+
# special case, captures 9, 10i, 11
|
68
|
+
|\b(times)(?:\((\d+)\))(\swithoutstimeszone\b)?
|
69
|
+
|
70
|
+
# special case, captures 12, 13, 14i, 15
|
71
|
+
|\b(timestamp)(?:(s)\((\d+)\)(\swithoutstimeszone\b)?)?
|
72
|
+
|
73
|
+
/},
|
74
|
+
{match:
|
75
|
+
/(?i:\b((?:primary|foreign)\s+key|references|on\sdelete(\s+cascade)?|check|constraint)\b)/,
|
76
|
+
name: "storage.modifier.sql"},
|
77
|
+
{match: /\b\d+\b/, name: "constant.numeric.sql"},
|
78
|
+
{match:
|
79
|
+
/(?i:\b(select(\s+distinct)?|insert\s+(ignore\s+)?into|update|delete|from|set|where|group\sby|or|like|and|union(\s+all)?|having|order\sby|limit|(inner|cross)\s+join|join|straight_join|(left|right)(\s+outer)?\s+join|natural(\s+(left|right)(\s+outer)?)?\s+join)\b)/,
|
80
|
+
name: "keyword.other.DML.sql"},
|
81
|
+
{match: /(?i:\b(on|((is\s+)?not\s+)?null)\b)/,
|
82
|
+
name: "keyword.other.DDL.create.II.sql"},
|
83
|
+
{match: /(?i:\bvalues\b)/, name: "keyword.other.DML.II.sql"},
|
84
|
+
{match:
|
85
|
+
/(?i:\b(begin(\s+work)?|start\s+transaction|commit(\s+work)?|rollback(\s+work)?)\b)/,
|
86
|
+
name: "keyword.other.LUW.sql"},
|
87
|
+
{match: /(?i:\b(grant(\swith\sgrant\soption)?|revoke)\b)/,
|
88
|
+
name: "keyword.other.authorization.sql"},
|
89
|
+
{match: /(?i:\bin\b)/, name: "keyword.other.data-integrity.sql"},
|
90
|
+
{match:
|
91
|
+
/(?i:^\s*(comment\s+on\s+(table|column|aggregate|constraint|database|domain|function|index|operator|rule|schema|sequence|trigger|type|view))\s+.*?\s+(is)\s+)/,
|
92
|
+
name: "keyword.other.object-comments.sql"},
|
93
|
+
{match: /(?i)\bAS\b/, name: "keyword.other.alias.sql"},
|
94
|
+
{match: /(?i)\b(DESC|ASC)\b/, name: "keyword.other.order.sql"},
|
95
|
+
{match: /\*/, name: "keyword.operator.star.sql"},
|
96
|
+
{match: /[!<>]?=|<>|<|>/, name: "keyword.operator.comparison.sql"},
|
97
|
+
{match: /-|\+|\//, name: "keyword.operator.math.sql"},
|
98
|
+
{match: /\|\|/, name: "keyword.operator.concatenator.sql"},
|
99
|
+
{comment:
|
100
|
+
"List of SQL99 built-in functions from http://www.oreilly.com/catalog/sqlnut/chapter/ch04.html",
|
101
|
+
match: /(?i)\b(CURRENT_(DATE|TIME(STAMP)?|USER)|(SESSION|SYSTEM)_USER)\b/,
|
102
|
+
name: "support.function.scalar.sql"},
|
103
|
+
{comment:
|
104
|
+
"List of SQL99 built-in functions from http://www.oreilly.com/catalog/sqlnut/chapter/ch04.html",
|
105
|
+
match: /(?i)\b(AVG|COUNT|MIN|MAX|SUM)(?=\s*\()/,
|
106
|
+
name: "support.function.aggregate.sql"},
|
107
|
+
{match:
|
108
|
+
/(?i)\b(CONCATENATE|CONVERT|LOWER|SUBSTRING|TRANSLATE|TRIM|UPPER)\b/,
|
109
|
+
name: "support.function.string.sql"},
|
110
|
+
{captures:
|
111
|
+
{1 => {name: "constant.other.database-name.sql"},
|
112
|
+
2 => {name: "constant.other.table-name.sql"}},
|
113
|
+
match: /(\w+?)\.(\w+)/},
|
114
|
+
{include: "#strings"},
|
115
|
+
{include: "#regexps"}],
|
116
|
+
repository:
|
117
|
+
{comments:
|
118
|
+
{patterns:
|
119
|
+
[{captures: {1 => {name: "punctuation.definition.comment.sql"}},
|
120
|
+
match: /(--).*$\n?/,
|
121
|
+
name: "comment.line.double-dash.sql"},
|
122
|
+
{captures: {1 => {name: "punctuation.definition.comment.sql"}},
|
123
|
+
match: /(#).*$\n?/,
|
124
|
+
name: "comment.line.number-sign.sql"},
|
125
|
+
{begin: /\/\*/,
|
126
|
+
captures: {0 => {name: "punctuation.definition.comment.sql"}},
|
127
|
+
end: "\\*/",
|
128
|
+
name: "comment.block.c"}]},
|
129
|
+
regexps:
|
130
|
+
{patterns:
|
131
|
+
[{begin: /\/(?=\S.*\/)/,
|
132
|
+
beginCaptures:
|
133
|
+
{0 => {name: "punctuation.definition.string.begin.sql"}},
|
134
|
+
end: "/",
|
135
|
+
endCaptures: {0 => {name: "punctuation.definition.string.end.sql"}},
|
136
|
+
name: "string.regexp.sql",
|
137
|
+
patterns:
|
138
|
+
[{include: "#string_interpolation"},
|
139
|
+
{match: /\\\//, name: "constant.character.escape.slash.sql"}]},
|
140
|
+
{begin: /%r\{/,
|
141
|
+
beginCaptures:
|
142
|
+
{0 => {name: "punctuation.definition.string.begin.sql"}},
|
143
|
+
comment: "We should probably handle nested bracket pairs!?! -- Allan",
|
144
|
+
end: "\\}",
|
145
|
+
endCaptures: {0 => {name: "punctuation.definition.string.end.sql"}},
|
146
|
+
name: "string.regexp.modr.sql",
|
147
|
+
patterns: [{include: "#string_interpolation"}]}]},
|
148
|
+
string_escape: {match: /\\./, name: "constant.character.escape.sql"},
|
149
|
+
string_interpolation:
|
150
|
+
{captures: {1 => {name: "punctuation.definition.string.end.sql"}},
|
151
|
+
match: /(#\{)([^\}]*)(\})/,
|
152
|
+
name: "string.interpolated.sql"},
|
153
|
+
strings:
|
154
|
+
{patterns:
|
155
|
+
[{captures:
|
156
|
+
{1 => {name: "punctuation.definition.string.begin.sql"},
|
157
|
+
3 => {name: "punctuation.definition.string.end.sql"}},
|
158
|
+
comment:
|
159
|
+
"this is faster than the next begin/end rule since sub-pattern will match till end-of-line and SQL files tend to have very long lines.",
|
160
|
+
match: /(')[^'\\]*(')/,
|
161
|
+
name: "string.quoted.single.sql"},
|
162
|
+
{begin: /'/,
|
163
|
+
beginCaptures:
|
164
|
+
{0 => {name: "punctuation.definition.string.begin.sql"}},
|
165
|
+
end: "'",
|
166
|
+
endCaptures: {0 => {name: "punctuation.definition.string.end.sql"}},
|
167
|
+
name: "string.quoted.single.sql",
|
168
|
+
patterns: [{include: "#string_escape"}]},
|
169
|
+
{captures:
|
170
|
+
{1 => {name: "punctuation.definition.string.begin.sql"},
|
171
|
+
3 => {name: "punctuation.definition.string.end.sql"}},
|
172
|
+
comment:
|
173
|
+
"this is faster than the next begin/end rule since sub-pattern will match till end-of-line and SQL files tend to have very long lines.",
|
174
|
+
match: /(`)[^`\\]*(`)/,
|
175
|
+
name: "string.quoted.other.backtick.sql"},
|
176
|
+
{begin: /`/,
|
177
|
+
beginCaptures:
|
178
|
+
{0 => {name: "punctuation.definition.string.begin.sql"}},
|
179
|
+
end: "`",
|
180
|
+
endCaptures: {0 => {name: "punctuation.definition.string.end.sql"}},
|
181
|
+
name: "string.quoted.other.backtick.sql",
|
182
|
+
patterns: [{include: "#string_escape"}]},
|
183
|
+
{captures:
|
184
|
+
{1 => {name: "punctuation.definition.string.begin.sql"},
|
185
|
+
3 => {name: "punctuation.definition.string.end.sql"}},
|
186
|
+
comment:
|
187
|
+
"this is faster than the next begin/end rule since sub-pattern will match till end-of-line and SQL files tend to have very long lines.",
|
188
|
+
match: /(")[^"#]*(")/,
|
189
|
+
name: "string.quoted.double.sql"},
|
190
|
+
{begin: /"/,
|
191
|
+
beginCaptures:
|
192
|
+
{0 => {name: "punctuation.definition.string.begin.sql"}},
|
193
|
+
end: "\"",
|
194
|
+
endCaptures: {0 => {name: "punctuation.definition.string.end.sql"}},
|
195
|
+
name: "string.quoted.double.sql",
|
196
|
+
patterns: [{include: "#string_interpolation"}]},
|
197
|
+
{begin: /%\{/,
|
198
|
+
beginCaptures:
|
199
|
+
{0 => {name: "punctuation.definition.string.begin.sql"}},
|
200
|
+
end: "\\}",
|
201
|
+
endCaptures: {0 => {name: "punctuation.definition.string.end.sql"}},
|
202
|
+
name: "string.other.quoted.brackets.sql",
|
203
|
+
patterns: [{include: "#string_interpolation"}]}]}},
|
204
|
+
scopeName: "source.sql",
|
205
|
+
uuid: "C49120AC-6ECC-11D9-ACC8-000D93589AF6"}
|
@@ -0,0 +1,25 @@
|
|
1
|
+
# Encoding: UTF-8
|
2
|
+
|
3
|
+
{fileTypes: ["ssh_config", ".ssh/config", "sshd_config"],
|
4
|
+
name: "SSH Config",
|
5
|
+
patterns:
|
6
|
+
[{match:
|
7
|
+
/\b(AddressFamily|B(atchMode|indAddress)|C(hallengeResponseAuthentication|heckHostIP|iphers?|learAllForwardings|ompression(Level)?|onnect(Timeout|ionAttempts)|ontrolMaster|ontrolPath)|DynamicForward|E(nableSSHKeysign|scapeChar)|Forward(Agent|X11(Trusted)?)|G(SSAPI(Authentication|DelegateCredentials)|atewayPorts|lobalKnownHostsFile)|Host(KeyAlgorithms|KeyAlias|Name|basedAuthentication)|Identit(iesOnly|yFile)|L(ocalForward|ogLevel)|MACs|N(oHostAuthenticationForLocalhost|umberOfPasswordPrompts)|P(asswordAuthentication|ort|referredAuthentications|rotocol|roxyCommand|ubkeyAuthentication)|R(SAAuthentication|emoteForward|hostsRSAAuthentication)|S(erverAliveCountMax|erverAliveInterval|martcardDevice|trictHostKeyChecking)|TCPKeepAlive|U(sePrivilegedPort|ser(KnownHostsFile)?)|VerifyHostKeyDNS|XAuthLocation)\b/,
|
8
|
+
name: "keyword.other.ssh-config"},
|
9
|
+
{captures:
|
10
|
+
{1 => {name: "comment.line.number-sign.ssh-config"},
|
11
|
+
2 => {name: "punctuation.definition.comment.ssh-config"},
|
12
|
+
3 => {name: "comment.line.double-slash.ssh-config"},
|
13
|
+
4 => {name: "punctuation.definition.comment.ssh-config"}},
|
14
|
+
match: /((#).*$\n?)|((\/\/).*$\n?)/},
|
15
|
+
{captures:
|
16
|
+
{1 => {name: "storage.type.ssh-config"},
|
17
|
+
2 => {name: "entity.name.section.ssh-config"},
|
18
|
+
3 => {name: "meta.toc-list.ssh-config"}},
|
19
|
+
match: /(?:^| |\t)(Host)\s+((.*))$/},
|
20
|
+
{match:
|
21
|
+
/\b(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\b/,
|
22
|
+
name: "constant.numeric.ssh-config"},
|
23
|
+
{match: /\b[0-9]+\b/, name: "constant.numeric.ssh-config"}],
|
24
|
+
scopeName: "source.ssh-config",
|
25
|
+
uuid: "B273855C-59D3-4DF3-9B7C-E68E0057D315"}
|
@@ -0,0 +1,47 @@
|
|
1
|
+
# Encoding: UTF-8
|
2
|
+
|
3
|
+
{fileTypes: ["i", "swg"],
|
4
|
+
foldingStartMarker: /(\/\*\*|%?\{\s*$)/,
|
5
|
+
foldingStopMarker: /(\*\*\/|^\s*%?\})/,
|
6
|
+
keyEquivalent: "^~S",
|
7
|
+
name: "SWIG",
|
8
|
+
patterns:
|
9
|
+
[{comment:
|
10
|
+
"SWIG files contain C or C++ code, so it's logical to derive from the C++ rules",
|
11
|
+
include: "source.c++"},
|
12
|
+
{captures: {1 => {name: "punctuation.definition.keyword.swig"}},
|
13
|
+
match: /(%)(header|init|inline|native|runtime|wrapper)\b/,
|
14
|
+
name: "keyword.other.directive.inlinecode.swig"},
|
15
|
+
{captures: {1 => {name: "punctuation.definition.keyword.swig"}},
|
16
|
+
match:
|
17
|
+
/(\$)([\*&]*[1-9]+(_name|_type|_ltype|_basetype|_mangle|_descriptor){0,1}|action|input|result|symname)\b/,
|
18
|
+
name: "keyword.other.function-parameter.swig"},
|
19
|
+
{match:
|
20
|
+
/\b(in|out|typecheck|arginit|default|check|argout|freearg|newfree|memberin|varin|varout|throws|numinputs)\b/,
|
21
|
+
name: "support.function.type.swig"},
|
22
|
+
{captures: {1 => {name: "punctuation.definition.keyword.swig"}},
|
23
|
+
match:
|
24
|
+
/(%)(apply|callback|clear|constant|contract|define|enddef|extend|feature|ignore|insert|makedefault|module|nocallback|nodefault|rename|typemap|varargs|template)\b/,
|
25
|
+
name: "keyword.other.directive.swig"},
|
26
|
+
{captures: {1 => {name: "keyword.control.import.swig"}},
|
27
|
+
match:
|
28
|
+
/\(\s*(allegrocl|chicken|csharp|guile|java|modula3|mzscheme|ocaml|perl|php|pike|python|ruby|sexp|tcl|xml)\b/,
|
29
|
+
name: "meta.preprocessor.swig"},
|
30
|
+
{begin: /^\s*(%)\s*(include|import)\b\s+("?[A-Za-z0-9\._]+"?)/,
|
31
|
+
captures:
|
32
|
+
{1 => {name: "punctuation.definition.preprocessor.swig"},
|
33
|
+
2 => {name: "keyword.control.import.swig"},
|
34
|
+
3 => {name: "string.quoted.double.swig"}},
|
35
|
+
end: "$",
|
36
|
+
name: "meta.preprocessor.swig"},
|
37
|
+
{captures: {1 => {name: "punctuation.definition.preprocessor.swig"}},
|
38
|
+
match: /(%)([A-Za-z]+[A-Za-z0-9_]*)\b/,
|
39
|
+
name: "meta.preprocessor.macro.swig"},
|
40
|
+
{match:
|
41
|
+
/\bSWIG_TYPECHECK_(POINTER|VOIDPTR|BOOL|UINT8|INT8|UINT16|INT16|UINT32|INT32|UINT64|INT64|UINT128|INT128|INTEGER|FLOAT|DOUBLE|COMPLEX|UNICHAR|UNISTRING|CHAR|STRING|BOOL_ARRAY|INT8_ARRAY|INT16_ARRAY|INT32_ARRAY|INT64_ARRAY|INT128_ARRAY|FLOAT_ARRAY|DOUBLE_ARRAY|CHAR_ARRAY|STRING_ARRAY)\b/,
|
42
|
+
name: "storage.type.swig"},
|
43
|
+
{captures: {1 => {name: "punctuation.section.embedded.swig"}},
|
44
|
+
match: /(%\{|%\})/,
|
45
|
+
name: "source.swig.codeblock"}],
|
46
|
+
scopeName: "source.swig",
|
47
|
+
uuid: "C781B0D0-BED9-11D9-A141-000393A143CC"}
|
@@ -0,0 +1,57 @@
|
|
1
|
+
# Encoding: UTF-8
|
2
|
+
|
3
|
+
{fileTypes: ["Snw", "Rnw", "snw", "rnw"],
|
4
|
+
foldingStartMarker: /^<<(.*)>>=|\\begin\{.*\}/,
|
5
|
+
foldingStopMarker: /^@(.*)$|\\end\{.*\}/,
|
6
|
+
keyEquivalent: "^~S",
|
7
|
+
name: "SWeave",
|
8
|
+
patterns:
|
9
|
+
[{begin: /^(<<)/,
|
10
|
+
beginCaptures:
|
11
|
+
{1 => {name: "punctuation.definition.parameters.begin.sweave"}},
|
12
|
+
end: "(>>)(?==)",
|
13
|
+
endCaptures: {1 => {name: "punctuation.definition.parameters.end.sweave"}},
|
14
|
+
name: "meta.block.parameters.sweave",
|
15
|
+
patterns:
|
16
|
+
[{captures:
|
17
|
+
{1 => {name: "keyword.other.name-of-parameter.sweave"},
|
18
|
+
2 => {name: "punctuation.separator.key-value.sweave"},
|
19
|
+
3 => {name: "constant.language.boolean.sweave"},
|
20
|
+
4 => {name: "constant.language.results.sweave"},
|
21
|
+
5 => {name: "string.unquoted.label.sweave"}},
|
22
|
+
match: /(\w+)(=)(?:(true|false)|(verbatim|tex|hide)|([\w.]+))/,
|
23
|
+
name: "meta.parameter.sweave"},
|
24
|
+
{match: /[\w.]+/, name: "string.unquoted.label.sweave"},
|
25
|
+
{match: /,/, name: "punctuation.separator.parameters.sweave"}]},
|
26
|
+
{begin: /(?<=>>)(=)(.*)\n/,
|
27
|
+
beginCaptures:
|
28
|
+
{1 => {name: "punctuation.section.embedded.begin.sweave"},
|
29
|
+
2 => {name: "comment.line.other.sweave"}},
|
30
|
+
contentName: "source.r.embedded.sweave",
|
31
|
+
end: "^(@)(.*)$",
|
32
|
+
endCaptures:
|
33
|
+
{1 => {name: "punctuation.section.embedded.end.sweave"},
|
34
|
+
2 => {name: "comment.line.other.sweave"}},
|
35
|
+
name: "meta.block.code.sweave",
|
36
|
+
patterns:
|
37
|
+
[{match: /^\s+@.*\n?/, name: "invalid.illegal.sweave"},
|
38
|
+
{include: "source.r"}]},
|
39
|
+
{match: /^\s+<<.*\n?/, name: "invalid.illegal.sweave"},
|
40
|
+
{begin: /^\\begin(\{)Scode(\})/,
|
41
|
+
captures:
|
42
|
+
{1 => {name: "punctuation.definition.arguments.begin.latex"},
|
43
|
+
2 => {name: "punctuation.definition.arguments.end.latex"}},
|
44
|
+
contentName: "source.r.embedded.sweave",
|
45
|
+
end: "^\\\\end(\\{)Scode(\\})",
|
46
|
+
name: "meta.block.source.r",
|
47
|
+
patterns: [{include: "source.r"}]},
|
48
|
+
{begin: /\\Sexpr(\{)/,
|
49
|
+
beginCaptures:
|
50
|
+
{1 => {name: "punctuation.definition.arguments.begin.latex"}},
|
51
|
+
end: "(\\})",
|
52
|
+
endCaptures: {1 => {name: "punctuation.definition.arguments.end.latex"}},
|
53
|
+
name: "source.r.embedded.sweave",
|
54
|
+
patterns: [{include: "source.r"}]},
|
55
|
+
{include: "text.tex.latex"}],
|
56
|
+
scopeName: "text.tex.latex.sweave",
|
57
|
+
uuid: "1F450973-8259-4BA2-A754-48C634561A13"}
|
@@ -0,0 +1,280 @@
|
|
1
|
+
# Encoding: UTF-8
|
2
|
+
|
3
|
+
{comment:
|
4
|
+
"\n\t\tThe foldings do not currently work the way I want them to. This\n\t\tmay be a limitation of the way they are applied rather than the\n\t\tregexps in use. Nonetheless, the foldings will end on the last\n\t\tidentically indented blank line following an s-expression. Not\n\t\tideal perhaps, but it works. Also, the #illegal pattern never\n\t\tmatches an unpaired ( as being illegal. Why?! -- Rob Rix\n\t\t\n\t\tOk, hopefully this grammar works better on quoted stuff now. It\n\t\tmay break for fancy macros, but should generally work pretty\n\t\tsmoothly. -- Jacob Rus\n\t\t\n\t\tI have attempted to get this under control but because of the way folding\n\t\tand indentation interact in Textmate, I am not sure if it is possible. In the\n\t\tmeantime, I have implemented Python-style folding anchored at newlines.\n\t\tAdditionally, I have made some minor improvements to the numeric constant\n\t\thighlighting. Next up is square bracket expressions, I guess, but that\n\t\tshould be trivial. -- ozy`\n\t",
|
5
|
+
fileTypes: ["scm", "sch"],
|
6
|
+
foldingStartMarker:
|
7
|
+
/(?x)^ [ \t]* \(
|
8
|
+
(?<par>
|
9
|
+
( [^()\n]++ | \( \g<par> \)? )*+
|
10
|
+
)
|
11
|
+
$/,
|
12
|
+
foldingStopMarker: /^\s*$/,
|
13
|
+
keyEquivalent: "^~S",
|
14
|
+
name: "Scheme",
|
15
|
+
patterns:
|
16
|
+
[{include: "#comment"},
|
17
|
+
{include: "#sexp"},
|
18
|
+
{include: "#string"},
|
19
|
+
{include: "#language-functions"},
|
20
|
+
{include: "#quote"},
|
21
|
+
{include: "#illegal"}],
|
22
|
+
repository:
|
23
|
+
{comment:
|
24
|
+
{captures: {1 => {name: "punctuation.definition.comment.scheme"}},
|
25
|
+
match: /(;).*$\n?/,
|
26
|
+
name: "comment.line.semicolon.scheme"},
|
27
|
+
constants:
|
28
|
+
{patterns:
|
29
|
+
[{match: /#[t|f]/, name: "constant.language.boolean.scheme"},
|
30
|
+
{match:
|
31
|
+
/(?<=[\(\s])((#e|#i)?[0-9]+(\.[0-9]+)?|(#x)[0-9a-fA-F]+|(#o)[0-7]+|(#b)[01]+)(?=[\s;()'",\[\]])/,
|
32
|
+
name: "constant.numeric.scheme"}]},
|
33
|
+
illegal: {match: /[()\[\]]/, name: "invalid.illegal.parenthesis.scheme"},
|
34
|
+
:"language-functions" =>
|
35
|
+
{patterns:
|
36
|
+
[{match:
|
37
|
+
/(?x)
|
38
|
+
(?<=(\s|\(|\[)) # preceded by space or (
|
39
|
+
( do|or|and|else|quasiquote|begin|if|case|set!|
|
40
|
+
cond|let|unquote|define|let\*|unquote-splicing|delay|
|
41
|
+
letrec)
|
42
|
+
(?=(\s|\())/,
|
43
|
+
name: "keyword.control.scheme"},
|
44
|
+
{comment:
|
45
|
+
"\n\t\t\t\t\t\tThese functions run a test, and return a boolean\n\t\t\t\t\t\tanswer.\n\t\t\t\t\t",
|
46
|
+
match:
|
47
|
+
/(?x)
|
48
|
+
(?<=(\s|\()) # preceded by space or (
|
49
|
+
( char-alphabetic|char-lower-case|char-numeric|
|
50
|
+
char-ready|char-upper-case|char-whitespace|
|
51
|
+
(?:char|string)(?:-ci)?(?:=|<=?|>=?)|
|
52
|
+
atom|boolean|bound-identifier=|char|complex|
|
53
|
+
identifier|integer|symbol|free-identifier=|inexact|
|
54
|
+
eof-object|exact|list|(?:input|output)-port|pair|
|
55
|
+
real|rational|zero|vector|negative|odd|null|string|
|
56
|
+
eq|equal|eqv|even|number|positive|procedure
|
57
|
+
)
|
58
|
+
(\?) # name ends with ? sign
|
59
|
+
(?=(\s|\()) # followed by space or (
|
60
|
+
/,
|
61
|
+
name: "support.function.boolean-test.scheme"},
|
62
|
+
{comment:
|
63
|
+
"\n\t\t\t\t\t\tThese functions change one type into another.\n\t\t\t\t\t",
|
64
|
+
match:
|
65
|
+
/(?x)
|
66
|
+
(?<=(\s|\()) # preceded by space or (
|
67
|
+
( char->integer|exact->inexact|inexact->exact|
|
68
|
+
integer->char|symbol->string|list->vector|
|
69
|
+
list->string|identifier->symbol|vector->list|
|
70
|
+
string->list|string->number|string->symbol|
|
71
|
+
number->string
|
72
|
+
)
|
73
|
+
(?=(\s|\()) # followed by space or (
|
74
|
+
/,
|
75
|
+
name: "support.function.convert-type.scheme"},
|
76
|
+
{comment:
|
77
|
+
"\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",
|
78
|
+
match:
|
79
|
+
/(?x)
|
80
|
+
(?<=(\s|\()) # preceded by space or (
|
81
|
+
( set-(?:car|cdr)| # set car\/cdr
|
82
|
+
(?:vector|string)-(?:fill|set) # fill\/set string\/vector
|
83
|
+
)
|
84
|
+
(!) # name ends with ! sign
|
85
|
+
(?=(\s|\()) # followed by space or (
|
86
|
+
/,
|
87
|
+
name: "support.function.with-side-effects.scheme"},
|
88
|
+
{comment: "\n\t\t\t\t\t\t+, -, *, /, =, >, etc. \n\t\t\t\t\t",
|
89
|
+
match:
|
90
|
+
/(?x)
|
91
|
+
(?<=(\s|\()) # preceded by space or (
|
92
|
+
( >=?|<=?|=|[*\/+-])
|
93
|
+
(?=(\s|\()) # followed by space or (
|
94
|
+
/,
|
95
|
+
name: "keyword.operator.arithmetic.scheme"},
|
96
|
+
{match:
|
97
|
+
/(?x)
|
98
|
+
(?<=(\s|\()) # preceded by space or (
|
99
|
+
( append|apply|approximate|
|
100
|
+
call-with-current-continuation|call\/cc|catch|
|
101
|
+
construct-identifier|define-syntax|display|foo|
|
102
|
+
for-each|force|cd|gen-counter|gen-loser|
|
103
|
+
generate-identifier|last-pair|length|let-syntax|
|
104
|
+
letrec-syntax|list|list-ref|list-tail|load|log|
|
105
|
+
macro|magnitude|map|map-streams|max|member|memq|
|
106
|
+
memv|min|newline|nil|not|peek-char|rationalize|
|
107
|
+
read|read-char|return|reverse|sequence|substring|
|
108
|
+
syntax|syntax-rules|transcript-off|transcript-on|
|
109
|
+
truncate|unwrap-syntax|values-list|write|write-char|
|
110
|
+
|
111
|
+
# cons, car, cdr, etc
|
112
|
+
cons|c(a|d){1,4}r|
|
113
|
+
|
114
|
+
# unary math operators
|
115
|
+
abs|acos|angle|asin|assoc|assq|assv|atan|ceiling|
|
116
|
+
cos|floor|round|sin|sqrt|tan|
|
117
|
+
(?:real|imag)-part|numerator|denominator
|
118
|
+
|
119
|
+
# other math operators
|
120
|
+
modulo|exp|expt|remainder|quotient|lcm|
|
121
|
+
|
122
|
+
# ports \/ files
|
123
|
+
call-with-(?:input|output)-file|
|
124
|
+
(?:close|current)-(?:input|output)-port|
|
125
|
+
with-(?:input|output)-from-file|
|
126
|
+
open-(?:input|output)-file|
|
127
|
+
|
128
|
+
# char-«foo»
|
129
|
+
char-(?:downcase|upcase|ready)|
|
130
|
+
|
131
|
+
# make-«foo»
|
132
|
+
make-(?:polar|promise|rectangular|string|vector)
|
133
|
+
|
134
|
+
# string-«foo», vector-«foo»
|
135
|
+
string(?:-(?:append|copy|length|ref))?|
|
136
|
+
vector(?:-length|-ref)
|
137
|
+
)
|
138
|
+
(?=(\s|\()) # followed by space or (
|
139
|
+
/,
|
140
|
+
name: "support.function.general.scheme"}]},
|
141
|
+
quote:
|
142
|
+
{comment:
|
143
|
+
"\n\t\t\t\tWe need to be able to quote any kind of item, which creates\n\t\t\t\ta tiny bit of complexity in our grammar. It is hopefully\n\t\t\t\tnot overwhelming complexity.\n\t\t\t\t\n\t\t\t\tNote: the first two matches are special cases. quoted\n\t\t\t\tsymbols, and quoted empty lists are considered constant.other\n\t\t\t\t\n\t\t\t",
|
144
|
+
patterns:
|
145
|
+
[{captures: {1 => {name: "punctuation.section.quoted.symbol.scheme"}},
|
146
|
+
match: /(?x)
|
147
|
+
(')\s*
|
148
|
+
([[:alnum:]][[:alnum:]!$%&*+-.\/:<=>?@^_~]*)
|
149
|
+
/,
|
150
|
+
name: "constant.other.symbol.scheme"},
|
151
|
+
{captures:
|
152
|
+
{1 => {name: "punctuation.section.quoted.empty-list.scheme"},
|
153
|
+
2 => {name: "meta.expression.scheme"},
|
154
|
+
3 => {name: "punctuation.section.expression.begin.scheme"},
|
155
|
+
4 => {name: "punctuation.section.expression.end.scheme"}},
|
156
|
+
match: /(?x)
|
157
|
+
(')\s*
|
158
|
+
((\()\s*(\)))
|
159
|
+
/,
|
160
|
+
name: "constant.other.empty-list.schem"},
|
161
|
+
{begin: /(')\s*/,
|
162
|
+
beginCaptures: {1 => {name: "punctuation.section.quoted.scheme"}},
|
163
|
+
comment: "quoted double-quoted string or s-expression",
|
164
|
+
end: "(?=[\\s()])|(?<=\\n)",
|
165
|
+
name: "string.other.quoted-object.scheme",
|
166
|
+
patterns: [{include: "#quoted"}]}]},
|
167
|
+
:"quote-sexp" =>
|
168
|
+
{begin: /(?<=\()\s*(quote)\b\s*/,
|
169
|
+
beginCaptures: {1 => {name: "keyword.control.quote.scheme"}},
|
170
|
+
comment:
|
171
|
+
"\n\t\t\t\tSomething quoted with (quote «thing»). In this case «thing»\n\t\t\t\twill not be evaluated, so we are considering it a string.\n\t\t\t",
|
172
|
+
contentName: "string.other.quote.scheme",
|
173
|
+
end: "(?=[\\s)])|(?<=\\n)",
|
174
|
+
patterns: [{include: "#quoted"}]},
|
175
|
+
quoted:
|
176
|
+
{patterns:
|
177
|
+
[{include: "#string"},
|
178
|
+
{begin: /(\()/,
|
179
|
+
beginCaptures:
|
180
|
+
{1 => {name: "punctuation.section.expression.begin.scheme"}},
|
181
|
+
end: "(\\))",
|
182
|
+
endCaptures:
|
183
|
+
{1 => {name: "punctuation.section.expression.end.scheme"}},
|
184
|
+
name: "meta.expression.scheme",
|
185
|
+
patterns: [{include: "#quoted"}]},
|
186
|
+
{include: "#quote"},
|
187
|
+
{include: "#illegal"}]},
|
188
|
+
sexp:
|
189
|
+
{begin: /(\()/,
|
190
|
+
beginCaptures:
|
191
|
+
{1 => {name: "punctuation.section.expression.begin.scheme"}},
|
192
|
+
end: "(\\))(\\n)?",
|
193
|
+
endCaptures:
|
194
|
+
{1 => {name: "punctuation.section.expression.end.scheme"},
|
195
|
+
2 => {name: "meta.after-expression.scheme"}},
|
196
|
+
name: "meta.expression.scheme",
|
197
|
+
patterns:
|
198
|
+
[{include: "#comment"},
|
199
|
+
{begin:
|
200
|
+
/(?x)
|
201
|
+
(?<=\() # preceded by (
|
202
|
+
(define)\s+ # define
|
203
|
+
(\() # list of parameters
|
204
|
+
([[:alnum:]][[:alnum:]!$%&*+-.\/:<=>?@^_~]*)
|
205
|
+
((\s+
|
206
|
+
([[:alnum:]][[:alnum:]!$%&*+-.\/:<=>?@^_~]*|[._])
|
207
|
+
)*
|
208
|
+
)\s*
|
209
|
+
(\))
|
210
|
+
/,
|
211
|
+
captures:
|
212
|
+
{1 => {name: "keyword.control.scheme"},
|
213
|
+
2 => {name: "punctuation.definition.function.scheme"},
|
214
|
+
3 => {name: "entity.name.function.scheme"},
|
215
|
+
4 => {name: "variable.parameter.function.scheme"},
|
216
|
+
7 => {name: "punctuation.definition.function.scheme"}},
|
217
|
+
end: "(?=\\))",
|
218
|
+
name: "meta.declaration.procedure.scheme",
|
219
|
+
patterns:
|
220
|
+
[{include: "#comment"}, {include: "#sexp"}, {include: "#illegal"}]},
|
221
|
+
{begin:
|
222
|
+
/(?x)
|
223
|
+
(?<=\() # preceded by (
|
224
|
+
(lambda)\s+
|
225
|
+
(\() # opening paren
|
226
|
+
((?:
|
227
|
+
([[:alnum:]][[:alnum:]!$%&*+-.\/:<=>?@^_~]*|[._])
|
228
|
+
\s+
|
229
|
+
)*(?:
|
230
|
+
([[:alnum:]][[:alnum:]!$%&*+-.\/:<=>?@^_~]*|[._])
|
231
|
+
)?)
|
232
|
+
(\)) # closing paren
|
233
|
+
/,
|
234
|
+
captures:
|
235
|
+
{1 => {name: "keyword.control.scheme"},
|
236
|
+
2 => {name: "punctuation.definition.variable.scheme"},
|
237
|
+
3 => {name: "variable.parameter.scheme"},
|
238
|
+
6 => {name: "punctuation.definition.variable.scheme"}},
|
239
|
+
comment:
|
240
|
+
"\n\t\t\t\t\t\tNot sure this one is quite correct. That \\s* is\n\t\t\t\t\t\tparticularly troubling\n\t\t\t\t\t",
|
241
|
+
end: "(?=\\))",
|
242
|
+
name: "meta.declaration.procedure.scheme",
|
243
|
+
patterns:
|
244
|
+
[{include: "#comment"}, {include: "#sexp"}, {include: "#illegal"}]},
|
245
|
+
{begin:
|
246
|
+
/(?<=\()(define)\s([[:alnum:]][[:alnum:]!$%&*+-.\/:<=>?@^_~]*)\s*.*?/,
|
247
|
+
captures:
|
248
|
+
{1 => {name: "keyword.control.scheme"},
|
249
|
+
2 => {name: "variable.other.scheme"}},
|
250
|
+
end: "(?=\\))",
|
251
|
+
name: "meta.declaration.variable.scheme",
|
252
|
+
patterns:
|
253
|
+
[{include: "#comment"}, {include: "#sexp"}, {include: "#illegal"}]},
|
254
|
+
{include: "#quote-sexp"},
|
255
|
+
{include: "#quote"},
|
256
|
+
{include: "#language-functions"},
|
257
|
+
{include: "#string"},
|
258
|
+
{include: "#constants"},
|
259
|
+
{match: /(?<=[\(\s])(#\\)(space|newline|tab)(?=[\s\)])/,
|
260
|
+
name: "constant.character.named.scheme"},
|
261
|
+
{match: /(?<=[\(\s])(#\\)x[0-9A-F]{2,4}(?=[\s\)])/,
|
262
|
+
name: "constant.character.hex-literal.scheme"},
|
263
|
+
{match: /(?<=[\(\s])(#\\).(?=[\s\)])/,
|
264
|
+
name: "constant.character.escape.scheme"},
|
265
|
+
{comment:
|
266
|
+
"\n\t\t\t\t\t\tthe . in (a . b) which conses together two elements\n\t\t\t\t\t\ta and b. (a b c) == (a . (b . (c . nil)))\n\t\t\t\t\t",
|
267
|
+
match: /(?<=[ ()])\.(?=[ ()])/,
|
268
|
+
name: "punctuation.separator.cons.scheme"},
|
269
|
+
{include: "#sexp"},
|
270
|
+
{include: "#illegal"}]},
|
271
|
+
string:
|
272
|
+
{begin: /(")/,
|
273
|
+
beginCaptures:
|
274
|
+
{1 => {name: "punctuation.definition.string.begin.scheme"}},
|
275
|
+
end: "(\")",
|
276
|
+
endCaptures: {1 => {name: "punctuation.definition.string.end.scheme"}},
|
277
|
+
name: "string.quoted.double.scheme",
|
278
|
+
patterns: [{match: /\\./, name: "constant.character.escape.scheme"}]}},
|
279
|
+
scopeName: "source.scheme",
|
280
|
+
uuid: "3EC2CFD0-909C-4692-AC29-1A60ADBC161E"}
|