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,100 @@
|
|
1
|
+
# Encoding: UTF-8
|
2
|
+
|
3
|
+
{comment:
|
4
|
+
"This is a wrapper for and adds nested bracket scopes to Prototype & Script.aculo.us (JavaScript). It also allow for embedded ruby source. By Thomas Aylott",
|
5
|
+
foldingStartMarker: /(\{[^\}]*$|\([^\)]*$|<%)/,
|
6
|
+
foldingStopMarker: /(^[^\{]*\}|^\s*\)|%>)/,
|
7
|
+
keyEquivalent: "^~J",
|
8
|
+
name: "Prototype & Script.aculo.us (JavaScript) Bracketed",
|
9
|
+
patterns:
|
10
|
+
[{begin: /<%=/,
|
11
|
+
beginCaptures: {0 => {name: "punctuation.section.embedded.begin.js"}},
|
12
|
+
end: "%>",
|
13
|
+
endCaptures: {0 => {name: "punctuation.section.embedded.end.js"}},
|
14
|
+
name: "meta.source.embedded.return-value",
|
15
|
+
patterns:
|
16
|
+
[{begin: /(?<=<%=)/,
|
17
|
+
end: "(?=%>)",
|
18
|
+
name: "source.ruby.rails.embedded.html",
|
19
|
+
patterns: [{include: "source.ruby.rails"}]}]},
|
20
|
+
{begin: /<%(?![=#])/,
|
21
|
+
beginCaptures: {0 => {name: "punctuation.section.embedded.begin.js"}},
|
22
|
+
end: "%>",
|
23
|
+
endCaptures: {0 => {name: "punctuation.section.embedded.end.js"}},
|
24
|
+
name: "meta.source.embedded",
|
25
|
+
patterns:
|
26
|
+
[{begin: /(?<=<%)/,
|
27
|
+
end: "(?=%>)",
|
28
|
+
name: "source.ruby.rails.embedded.html",
|
29
|
+
patterns: [{include: "source.ruby.rails"}]}]},
|
30
|
+
{include: "#conditional-compilation"},
|
31
|
+
{include: "#round-brackets"},
|
32
|
+
{include: "source.js.prototype"}],
|
33
|
+
repository:
|
34
|
+
{:"conditional-compilation" =>
|
35
|
+
{patterns:
|
36
|
+
[{begin: /\/\*(?=@)/,
|
37
|
+
captures: {0 => {name: "punctuation.definition.comment.js"}},
|
38
|
+
end: "(?<=@)\\*/",
|
39
|
+
name: "comment.block.conditional.js",
|
40
|
+
patterns: [{include: "$base"}]},
|
41
|
+
{captures: {1 => {name: "punctuation.definition.keyword.js"}},
|
42
|
+
match: /(@)(if|elif|else|end)/,
|
43
|
+
name: "keyword.control.conditional.js"},
|
44
|
+
{captures: {1 => {name: "punctuation.definition.keyword.js"}},
|
45
|
+
match: /(@)(cc_on|set)/,
|
46
|
+
name: "keyword.operator.conditional.js"},
|
47
|
+
{captures: {1 => {name: "punctuation.definition.variable.js"}},
|
48
|
+
match:
|
49
|
+
/(@)(_win32|_win16|_mac|_alpha|_x86|_mc680x0|_PowerPC|_jscript_build|_jscript_version|_jscript|_debug|_fast|[a-zA-Z]\w+)/,
|
50
|
+
name: "variable.other.conditional.js"}]},
|
51
|
+
:"round-brackets" =>
|
52
|
+
{patterns:
|
53
|
+
[{begin: /(?<=\))\s*+(\{)/,
|
54
|
+
captures:
|
55
|
+
{1 => {name: "punctuation.section.function.js.prototype"},
|
56
|
+
2 => {name: "punctuation.separator.objects.js.prototype"}},
|
57
|
+
end: "(\\})(,)?\\s*",
|
58
|
+
name: "meta.group.braces.curly.function.js.prototype",
|
59
|
+
patterns: [{include: "$base"}]},
|
60
|
+
{begin: /(\{)/,
|
61
|
+
captures:
|
62
|
+
{1 => {name: "punctuation.section.scope.js"},
|
63
|
+
2 => {name: "punctuation.separator.objects.js.prototype"}},
|
64
|
+
end: "(\\})(,)?\\s*",
|
65
|
+
name: "meta.group.braces.curly",
|
66
|
+
patterns:
|
67
|
+
[{captures:
|
68
|
+
{1 => {name: "invalid.illegal.delimiter.object.comma.js"}},
|
69
|
+
match: /(,)\s*+(?=\})/},
|
70
|
+
{captures:
|
71
|
+
{1 => {name: "string.quoted.double.js.prototype"},
|
72
|
+
2 => {name: "punctuation.definition.string.js.prototype"},
|
73
|
+
3 => {name: "constant.other.object.key.js.prototype"},
|
74
|
+
4 => {name: "punctuation.definition.string.js.prototype"},
|
75
|
+
5 => {name: "punctuation.separator.objects.js.prototype"}},
|
76
|
+
match: /((")([^"]*)(")\s*)(:)\s*+(?!function)/},
|
77
|
+
{captures:
|
78
|
+
{1 => {name: "string.quoted.single.js.prototype"},
|
79
|
+
2 => {name: "punctuation.definition.string.js.prototype"},
|
80
|
+
3 => {name: "constant.other.object.key.js.prototype"},
|
81
|
+
4 => {name: "punctuation.definition.string.js.prototype"},
|
82
|
+
5 => {name: "punctuation.separator.objects.js.prototype"}},
|
83
|
+
match: /((')([^']*)(')\s*)(:)\s*+(?!function)/},
|
84
|
+
{captures:
|
85
|
+
{1 => {name: "constant.other.object.key.js.prototype"},
|
86
|
+
2 => {name: "punctuation.separator.objects.js.prototype"}},
|
87
|
+
match: /\b(\w+\b\s*)(:)\s*+(?!function)/},
|
88
|
+
{include: "$base"}]},
|
89
|
+
{begin: /(\()(?!\))/,
|
90
|
+
captures: {1 => {name: "punctuation.section.scope.js"}},
|
91
|
+
end: "(\\))",
|
92
|
+
name: "meta.group.braces.round",
|
93
|
+
patterns: [{include: "$base"}]},
|
94
|
+
{begin: /(\[)(?!\])/,
|
95
|
+
captures: {1 => {name: "punctuation.section.scope.js"}},
|
96
|
+
end: "(\\])",
|
97
|
+
name: "meta.group.braces.square",
|
98
|
+
patterns: [{include: "$base"}]}]}},
|
99
|
+
scopeName: "source.js.prototype.bracketed",
|
100
|
+
uuid: "1FD22341-8BAA-4F89-8257-92CBDD7DE29D"}
|
@@ -0,0 +1,56 @@
|
|
1
|
+
# Encoding: UTF-8
|
2
|
+
|
3
|
+
{comment:
|
4
|
+
"Prototype and Scriptaculous Javascript Frameworks. By Justin Palmer, Thomas Aylott & Martin Ström",
|
5
|
+
foldingStartMarker: /(^.*{[^}]*$|^.*\([^\)]*$|^.*\/\*(?!.*\*\/).*$)/,
|
6
|
+
foldingStopMarker: /(^\s*\}|^\s*\)|^(?!.*\/\*).*\*\/)/,
|
7
|
+
keyEquivalent: "^~J",
|
8
|
+
name: "Prototype & Script.aculo.us (JavaScript)",
|
9
|
+
patterns:
|
10
|
+
[{match:
|
11
|
+
/\b(Prototype|Class|Abstract|Try|PeriodicalExecuter|Enumerable|Hash|ObjectRange|Element|Ajax|Responders|Base|Request|Updater|PeriodicalUpdater|Toggle|Insertion|Before|Top|Bottom|After|ClassNames|Form|Serializers|TimedObserver|Observer|EventObserver|Event|Position|Effect|Effect2|Transitions|ScopedQueue|Queues|DefaultOptions|Parallel|Opacity|Move|MoveBy|Scale|Highlight|ScrollTo|Fade|Appear|Puff|BlindUp|BlindDown|SwitchOff|DropOut|Shake|SlideDown|SlideUp|Squish|Grow|Shrink|Pulsate|Fold|console)\b/,
|
12
|
+
name: "support.class.prototype.js"},
|
13
|
+
{match:
|
14
|
+
/\b(Version|ScriptFragment|emptyFunction|K|create|toColorPart|succ|times|these|initialize|registerCallback|onTimerEvent|stripTags|stripScripts|extractScripts|evalScripts|escapeHTML|unescapeHTML|toQueryParams|toArray|camelize|inspect|each|inGroupsOf|eachSlice|all|any|collect|detect|findAll|grep|include|inject|invoke|max|min|partition|pluck|reject|sortBy|toArray|zip|inspect|map|find|select|member|entries|_each|_reverse|reverse|clear|first|last|compact|flatten|without|indexOf|reverse|shift|inspect|keys|values|merge|toQueryString|inspect|include|getTransport|activeRequestCount|responders|register|unregister|dispatch|onComplete|setOptions|responseIsSuccess|responseIsFailure|request|setRequestHeaders|onStateChange|header|evalJSON|evalResponse|respondToReadyState|dispatchException|updateContent|start|stop|updateComplete|toggle|hide|show|remove|update|getHeight|classNames|hasClassName|addClassName|removeClassName|cleanWhitespace|empty|scrollTo|getStyle|setStyle|getDimensions|makePositioned|undoPositioned|makeClipping|undoClipping|recursivelyCollect|ancestors|descendants|previousSiblings|nextSiblings|siblings|match|up|down|previous|next|getElementsBySelector|getElementsByClassName|contentFromAnonymousTable|initializeRange|insertContent|set|add|toString|focus|present|activate|serialize|getElements|getInputs|disable|enable|findFirstElement|focusFirstElement|reset|getValue|input|inputSelector|textarea|selectOne|selectMany|onElementEvent|registerFormCallbacks|element|isLeftClick|pointerX|pointerY|findElement|observers|unloadCache|observe|stopObserving|includeScrollOffsets|prepare|realOffset|cumulativeOffset|positionedOffset|offsetParent|within|withinIncludingScrolloffsets|overlap|clone|page|clone|absolutize|relativize)\b/,
|
15
|
+
name: "support.function.js.prototype"},
|
16
|
+
{include: "source.js"},
|
17
|
+
{match:
|
18
|
+
/((?<=var\s)\b[a-zA-Z]\w*\b|\b[a-zA-Z]\w*\b(?=(\[|\s*(&|\*|\-\-|\-|\+\+|\+|~|===|==|=|!=|!==|<=|>=|<<=|>>=|>>>=|<>|<|>|!|&&|\|\||\?\:|\*=|\/=|%=|\+=|\-=|&=|\^=))))/,
|
19
|
+
name: "variable.other.js.prototype"},
|
20
|
+
{include: "#leading-space"}],
|
21
|
+
repository:
|
22
|
+
{:"leading-space" =>
|
23
|
+
{patterns:
|
24
|
+
[{begin: /^(?=(\t| ))/,
|
25
|
+
end: "(?=[^\\t\\s])",
|
26
|
+
name: "meta.leading-tabs",
|
27
|
+
patterns:
|
28
|
+
[{captures:
|
29
|
+
{1 => {name: "meta.odd-tab.group1.spaces"},
|
30
|
+
10 => {name: "meta.even-tab.group10.spaces"},
|
31
|
+
11 => {name: "meta.odd-tab.group11.spaces"},
|
32
|
+
2 => {name: "meta.even-tab.group2.spaces"},
|
33
|
+
3 => {name: "meta.odd-tab.group3.spaces"},
|
34
|
+
4 => {name: "meta.even-tab.group4.spaces"},
|
35
|
+
5 => {name: "meta.odd-tab.group5.spaces"},
|
36
|
+
6 => {name: "meta.even-tab.group6.spaces"},
|
37
|
+
7 => {name: "meta.odd-tab.group7.spaces"},
|
38
|
+
8 => {name: "meta.even-tab.group8.spaces"},
|
39
|
+
9 => {name: "meta.odd-tab.group9.spaces"}},
|
40
|
+
match: /( )( )?( )?( )?( )?( )?( )?( )?( )?( )?( )?/},
|
41
|
+
{captures:
|
42
|
+
{1 => {name: "meta.odd-tab.group1.tab"},
|
43
|
+
10 => {name: "meta.even-tab.group10.tab"},
|
44
|
+
11 => {name: "meta.odd-tab.group11.tab"},
|
45
|
+
2 => {name: "meta.even-tab.group2.tab"},
|
46
|
+
3 => {name: "meta.odd-tab.group3.tab"},
|
47
|
+
4 => {name: "meta.even-tab.group4.tab"},
|
48
|
+
5 => {name: "meta.odd-tab.group5.tab"},
|
49
|
+
6 => {name: "meta.even-tab.group6.tab"},
|
50
|
+
7 => {name: "meta.odd-tab.group7.tab"},
|
51
|
+
8 => {name: "meta.even-tab.group8.tab"},
|
52
|
+
9 => {name: "meta.odd-tab.group9.tab"}},
|
53
|
+
match:
|
54
|
+
/(\t)(\t)?(\t)?(\t)?(\t)?(\t)?(\t)?(\t)?(\t)?(\t)?(\t)?/}]}]}},
|
55
|
+
scopeName: "source.js.prototype",
|
56
|
+
uuid: "0BD60463-DDF6-436F-9295-89DEF577FF30"}
|
@@ -0,0 +1,25 @@
|
|
1
|
+
# Encoding: UTF-8
|
2
|
+
|
3
|
+
{fileTypes: [],
|
4
|
+
foldingStartMarker:
|
5
|
+
/^\s*(def|class)\s+([.a-zA-Z0-9_ b]+)\s*(\((.*)\))?\s*:|\{\s*$|\(\s*$|\[\s*$/,
|
6
|
+
foldingStopMarker: /^\s*$|^\s*\}|^\s*\]|^\s*\)/,
|
7
|
+
keyEquivalent: "^~P",
|
8
|
+
name: "Python Django",
|
9
|
+
patterns:
|
10
|
+
[{match:
|
11
|
+
/(meta|models)\.(Admin|AutoField|BooleanField|CharField|CommaSeparatedIntegerField|DateField|DateTimeField|DecimalField|EmailField|FileField|FilePathField|FloatField|ForeignKey|ImageField|IntegerField|IPAddressField|ManyToManyField|NullBooleanField|OneToOneField|PhoneNumberField|PositiveIntegerField|PositiveSmallIntegerField|SlugField|SmallIntegerField|TextField|TimeField|URLField|USStateField|XMLField)/,
|
12
|
+
name: "support.type.django.model"},
|
13
|
+
{match: /django(\.[a-z]+){1,} /, name: "support.other.django.module"},
|
14
|
+
{match:
|
15
|
+
/(ABSOLUTE_URL_OVERRIDES|ADMIN_FOR|ADMIN_MEDIA_PREFIX|ADMINS|ALLOWED_INCLUDE_ROOTS|APPEND_SLASH|AUTHENTICATION_BACKENDS|AUTH_PROFILE_MODULE|CACHE_BACKEND|CACHE_MIDDLEWARE_KEY_PREFIX|CACHE_MIDDLEWARE_SECONDS|DATABASE_ENGINE|DATABASE_HOST|DATABASE_NAME|DATABASE_OPTIONS|DATABASE_PASSWORD|DATABASE_PORT|DATABASE_USER|DATE_FORMAT|DATETIME_FORMAT|DEBUG|DEFAULT_CHARSET|DEFAULT_CONTENT_TYPE|DEFAULT_FROM_EMAIL|DEFAULT_TABLESPACE|DEFAULT_INDEX_TABLESPACE|DISALLOWED_USER_AGENTS|EMAIL_HOST_PASSWORD|EMAIL_HOST_USER|EMAIL_HOST|EMAIL_PORT|EMAIL_SUBJECT_PREFIX|EMAIL_USE_TLS|FILE_CHARSET|FIXTURE_DIRS|IGNORABLE_404_ENDS|IGNORABLE_404_STARTS|INSTALLED_APPS|INTERNAL_IPS|JING_PATH|LANGUAGE_CODE|LANGUAGE_COOKIE_NAME|LANGUAGES|LOCALE_PATHS|LOGIN_REDIRECT_URL|LOGIN_URL|LOGOUT_URL|MANAGERS|MEDIA_ROOT|MEDIA_URL|MIDDLEWARE_CLASSES|MONTH_DAY_FORMAT|PREPEND_WWW|PROFANITIES_LIST|ROOT_URLCONF|SECRET_KEY|SEND_BROKEN_LINK_EMAILS|SERIALIZATION_MODULES|SERVER_EMAIL|SESSION_ENGINE|SESSION_COOKIE_AGE|SESSION_COOKIE_DOMAIN|SESSION_COOKIE_NAME|SESSION_COOKIE_PATH|SESSION_COOKIE_SECURE|SESSION_EXPIRE_AT_BROWSER_CLOSE|SESSION_FILE_PATH|SESSION_SAVE_EVERY_REQUEST|SITE_ID|TEMPLATE_CONTEXT_PROCESSORS|TEMPLATE_DEBUG|TEMPLATE_DIRS|TEMPLATE_LOADERS|TEMPLATE_STRING_IF_INVALID|TEST_DATABASE_CHARSET|TEST_DATABASE_COLLATION|TEST_DATABASE_NAME|TEST_RUNNER|TIME_FORMAT|TIME_ZONE|URL_VALIDATOR_USER_AGENT|USE_ETAGS|USE_I18N|YEAR_MONTH_FORMAT)/,
|
16
|
+
name: "variable.other.django.settings"},
|
17
|
+
{match:
|
18
|
+
/(get_list_or_404|get_object_or_404|load_and_render|loader|render_to_response)/,
|
19
|
+
name: "support.function.django.view"},
|
20
|
+
{match:
|
21
|
+
/[a-z_]+\.get_(object|list|iterator|count|values|values_iterator|in_bulk)/,
|
22
|
+
name: "support.function.django.model"},
|
23
|
+
{include: "source.python"}],
|
24
|
+
scopeName: "source.python.django",
|
25
|
+
uuid: "5326D56C-6F76-4758-8DB7-D818527919AC"}
|
@@ -0,0 +1,836 @@
|
|
1
|
+
# Encoding: UTF-8
|
2
|
+
|
3
|
+
{bundleUUID: "E3BADC20-6B0E-11D9-9DC9-000D93589AF6",
|
4
|
+
comment:
|
5
|
+
"\n\ttodo:\n\t\tlist comprehension / generator comprehension scope.\n\t\t\n\t",
|
6
|
+
fileTypes:
|
7
|
+
["py",
|
8
|
+
"rpy",
|
9
|
+
"pyw",
|
10
|
+
"cpy",
|
11
|
+
"SConstruct",
|
12
|
+
"Sconstruct",
|
13
|
+
"sconstruct",
|
14
|
+
"SConscript"],
|
15
|
+
firstLineMatch: "^#!/.*\\bpython\\b",
|
16
|
+
foldingStartMarker:
|
17
|
+
/^\s*(def|class)\s+([.a-zA-Z0-9_ <]+)\s*(\((.*)\))?\s*:|\{\s*$|\(\s*$|\[\s*$|^\s*"""(?=.)(?!.*""")/,
|
18
|
+
foldingStopMarker: /^\s*$|^\s*\}|^\s*\]|^\s*\)|^\s*"""\s*$/,
|
19
|
+
keyEquivalent: /^~P/,
|
20
|
+
name: "Python",
|
21
|
+
patterns:
|
22
|
+
[{captures: {1 => {name: "punctuation.definition.comment.python"}},
|
23
|
+
match: /(#).*$\n?/,
|
24
|
+
name: "comment.line.number-sign.python"},
|
25
|
+
{match: /\b(?i:(0x\h*)L)/,
|
26
|
+
name: "constant.numeric.integer.long.hexadecimal.python"},
|
27
|
+
{match: /\b(?i:(0x\h*))/,
|
28
|
+
name: "constant.numeric.integer.hexadecimal.python"},
|
29
|
+
{match: /\b(?i:(0[0-7]+)L)/,
|
30
|
+
name: "constant.numeric.integer.long.octal.python"},
|
31
|
+
{match: /\b(0[0-7]+)/, name: "constant.numeric.integer.octal.python"},
|
32
|
+
{match:
|
33
|
+
/\b(?i:(((\d+(\.(?=[^a-zA-Z_])\d*)?|(?<=[^0-9a-zA-Z_])\.\d+)(e[\-\+]?\d+)?))J)/,
|
34
|
+
name: "constant.numeric.complex.python"},
|
35
|
+
{match: /\b(?i:(\d+\.\d*(e[\-\+]?\d+)?))(?=[^a-zA-Z_])/,
|
36
|
+
name: "constant.numeric.float.python"},
|
37
|
+
{match: /(?<=[^0-9a-zA-Z_])(?i:(\.\d+(e[\-\+]?\d+)?))/,
|
38
|
+
name: "constant.numeric.float.python"},
|
39
|
+
{match: /\b(?i:(\d+e[\-\+]?\d+))/, name: "constant.numeric.float.python"},
|
40
|
+
{match: /\b(?i:([1-9]+[0-9]*|0)L)/,
|
41
|
+
name: "constant.numeric.integer.long.decimal.python"},
|
42
|
+
{match: /\b([1-9]+[0-9]*|0)/,
|
43
|
+
name: "constant.numeric.integer.decimal.python"},
|
44
|
+
{captures: {1 => {name: "storage.modifier.global.python"}},
|
45
|
+
match: /\b(global)\b/},
|
46
|
+
{captures:
|
47
|
+
{1 => {name: "keyword.control.import.python"},
|
48
|
+
2 => {name: "keyword.control.import.from.python"}},
|
49
|
+
match: /\b(?:(import)|(from))\b/},
|
50
|
+
{comment: "keywords that delimit flow blocks",
|
51
|
+
match: /\b(elif|else|except|finally|for|if|try|while|with)\b/,
|
52
|
+
name: "keyword.control.flow.python"},
|
53
|
+
{comment: "keywords that alter flow from within a block",
|
54
|
+
match: /\b(break|continue|pass|raise|return|yield)\b/,
|
55
|
+
name: "keyword.control.flow.python"},
|
56
|
+
{comment: "keyword operators that evaluate to True or False",
|
57
|
+
match: /\b(and|in|is|not|or)\b/,
|
58
|
+
name: "keyword.operator.logical.python"},
|
59
|
+
{captures: {1 => {name: "keyword.other.python"}},
|
60
|
+
comment: "keywords that haven't fit into other groups (yet).",
|
61
|
+
match: /\b(as|assert|del|exec|print)\b/},
|
62
|
+
{match: /<\=|>\=|\=\=|<|>|<>/, name: "keyword.operator.comparison.python"},
|
63
|
+
{match: /\+\=|-\=|\*\=|\/\=|\/\/\=|%\=|&\=|\|\=|\^\=|>>\=|<<\=|\*\*\=/,
|
64
|
+
name: "keyword.operator.assignment.augmented.python"},
|
65
|
+
{match: /\+|\-|\*|\*\*|\/|\/\/|%|<<|>>|&|\||\^|~/,
|
66
|
+
name: "keyword.operator.arithmetic.python"},
|
67
|
+
{match: /\=/, name: "keyword.operator.assignment.python"},
|
68
|
+
{begin: /^\s*(class)\s+(?=[a-zA-Z_][a-zA-Z_0-9]*\s*\:)/,
|
69
|
+
beginCaptures: {1 => {name: "storage.type.class.python"}},
|
70
|
+
contentName: "entity.name.type.class.python",
|
71
|
+
end: "\\s*(:)",
|
72
|
+
endCaptures: {1 => {name: "punctuation.section.class.begin.python"}},
|
73
|
+
name: "meta.class.old-style.python",
|
74
|
+
patterns: [{include: "#entity_name_class"}]},
|
75
|
+
{begin: /^\s*(class)\s+(?=[a-zA-Z_][a-zA-Z_0-9]*\s*\()/,
|
76
|
+
beginCaptures: {1 => {name: "storage.type.class.python"}},
|
77
|
+
end: "(\\))\\s*(?:(\\:)|(.*$\\n?))",
|
78
|
+
endCaptures:
|
79
|
+
{1 => {name: "punctuation.definition.inheritance.end.python"},
|
80
|
+
2 => {name: "punctuation.section.class.begin.python"},
|
81
|
+
3 => {name: "invalid.illegal.missing-section-begin.python"}},
|
82
|
+
name: "meta.class.python",
|
83
|
+
patterns:
|
84
|
+
[{begin: /(?=[A-Za-z_][A-Za-z0-9_]*)/,
|
85
|
+
contentName: "entity.name.type.class.python",
|
86
|
+
end: "(?![A-Za-z0-9_])",
|
87
|
+
patterns: [{include: "#entity_name_class"}]},
|
88
|
+
{begin: /(\()/,
|
89
|
+
beginCaptures:
|
90
|
+
{1 => {name: "punctuation.definition.inheritance.begin.python"}},
|
91
|
+
contentName: "meta.class.inheritance.python",
|
92
|
+
end: "(?=\\)|:)",
|
93
|
+
patterns:
|
94
|
+
[{begin: /(?<=\(|,)\s*/,
|
95
|
+
contentName: "entity.other.inherited-class.python",
|
96
|
+
end: "\\s*(?:(,)|(?=\\)))",
|
97
|
+
endCaptures:
|
98
|
+
{1 => {name: "punctuation.separator.inheritance.python"}},
|
99
|
+
patterns: [{include: "$self"}]}]}]},
|
100
|
+
{begin: /^\s*(class)\s+(?=[a-zA-Z_][a-zA-Z_0-9])/,
|
101
|
+
beginCaptures: {1 => {name: "storage.type.class.python"}},
|
102
|
+
end: "(\\()|\\s*($\\n?|#.*$\\n?)",
|
103
|
+
endCaptures:
|
104
|
+
{1 => {name: "punctuation.definition.inheritance.begin.python"},
|
105
|
+
2 => {name: "invalid.illegal.missing-inheritance.python"}},
|
106
|
+
name: "meta.class.python",
|
107
|
+
patterns:
|
108
|
+
[{begin: /(?=[A-Za-z_][A-Za-z0-9_]*)/,
|
109
|
+
contentName: "entity.name.type.class.python",
|
110
|
+
end: "(?![A-Za-z0-9_])",
|
111
|
+
patterns: [{include: "#entity_name_function"}]}]},
|
112
|
+
{begin: /^\s*(def)\s+(?=[A-Za-z_][A-Za-z0-9_]*\s*\()/,
|
113
|
+
beginCaptures: {1 => {name: "storage.type.function.python"}},
|
114
|
+
end: "(\\))\\s*(?:(\\:)|(.*$\\n?))",
|
115
|
+
endCaptures:
|
116
|
+
{1 => {name: "punctuation.definition.parameters.end.python"},
|
117
|
+
2 => {name: "punctuation.section.function.begin.python"},
|
118
|
+
3 => {name: "invalid.illegal.missing-section-begin.python"}},
|
119
|
+
name: "meta.function.python",
|
120
|
+
patterns:
|
121
|
+
[{begin: /(?=[A-Za-z_][A-Za-z0-9_]*)/,
|
122
|
+
contentName: "entity.name.function.python",
|
123
|
+
end: "(?![A-Za-z0-9_])",
|
124
|
+
patterns: [{include: "#entity_name_function"}]},
|
125
|
+
{begin: /(\()/,
|
126
|
+
beginCaptures:
|
127
|
+
{1 => {name: "punctuation.definition.parameters.begin.python"}},
|
128
|
+
contentName: "meta.function.parameters.python",
|
129
|
+
end: "(?=\\)\\s*\\:)",
|
130
|
+
patterns:
|
131
|
+
[{include: "#keyword_arguments"},
|
132
|
+
{captures:
|
133
|
+
{1 => {name: "variable.parameter.function.python"},
|
134
|
+
2 => {name: "punctuation.separator.parameters.python"}},
|
135
|
+
match: /\b([a-zA-Z_][a-zA-Z_0-9]*)\s*(?:(,)|(?=[\n\)]))/}]}]},
|
136
|
+
{begin: /^\s*(def)\s+(?=[A-Za-z_][A-Za-z0-9_]*)/,
|
137
|
+
beginCaptures: {1 => {name: "storage.type.function.python"}},
|
138
|
+
end: "(\\()|\\s*($\\n?|#.*$\\n?)",
|
139
|
+
endCaptures:
|
140
|
+
{1 => {name: "punctuation.definition.parameters.begin.python"},
|
141
|
+
2 => {name: "invalid.illegal.missing-parameters.python"}},
|
142
|
+
name: "meta.function.python",
|
143
|
+
patterns:
|
144
|
+
[{begin: /(?=[A-Za-z_][A-Za-z0-9_]*)/,
|
145
|
+
contentName: "entity.name.function.python",
|
146
|
+
end: "(?![A-Za-z0-9_])",
|
147
|
+
patterns: [{include: "#entity_name_function"}]}]},
|
148
|
+
{begin: /(lambda)(?=\s+)/,
|
149
|
+
beginCaptures: {1 => {name: "storage.type.function.inline.python"}},
|
150
|
+
end: "(\\:)",
|
151
|
+
endCaptures:
|
152
|
+
{1 => {name: "punctuation.definition.parameters.end.python"},
|
153
|
+
2 => {name: "punctuation.section.function.begin.python"},
|
154
|
+
3 => {name: "invalid.illegal.missing-section-begin.python"}},
|
155
|
+
name: "meta.function.inline.python",
|
156
|
+
patterns:
|
157
|
+
[{begin: /\s+/,
|
158
|
+
contentName: "meta.function.inline.parameters.python",
|
159
|
+
end: "(?=\\:)",
|
160
|
+
patterns:
|
161
|
+
[{include: "#keyword_arguments"},
|
162
|
+
{captures:
|
163
|
+
{1 => {name: "variable.parameter.function.python"},
|
164
|
+
2 => {name: "punctuation.separator.parameters.python"}},
|
165
|
+
match: /\b([a-zA-Z_][a-zA-Z_0-9]*)\s*(?:(,)|(?=[\n\)\:]))/}]}]},
|
166
|
+
{begin:
|
167
|
+
/^\s*(?=@\s*[A-Za-z_][A-Za-z0-9_]*(?:\.[a-zA-Z_][a-zA-Z_0-9]*)*\s*\()/,
|
168
|
+
comment: "a decorator may be a function call which returns a decorator.",
|
169
|
+
end: "(\\))",
|
170
|
+
endCaptures: {1 => {name: "punctuation.definition.arguments.end.python"}},
|
171
|
+
name: "meta.function.decorator.python",
|
172
|
+
patterns:
|
173
|
+
[{begin:
|
174
|
+
/(?=(@)\s*[A-Za-z_][A-Za-z0-9_]*(?:\.[A-Za-z_][A-Za-z0-9_]*)*\s*\()/,
|
175
|
+
beginCaptures: {1 => {name: "punctuation.definition.decorator.python"}},
|
176
|
+
contentName: "entity.name.function.decorator.python",
|
177
|
+
end: "(?=\\s*\\()",
|
178
|
+
patterns: [{include: "#dotted_name"}]},
|
179
|
+
{begin: /(\()/,
|
180
|
+
beginCaptures:
|
181
|
+
{1 => {name: "punctuation.definition.arguments.begin.python"}},
|
182
|
+
contentName: "meta.function.decorator.arguments.python",
|
183
|
+
end: "(?=\\))",
|
184
|
+
patterns: [{include: "#keyword_arguments"}, {include: "$self"}]}]},
|
185
|
+
{begin: /^\s*(?=@\s*[A-Za-z_][A-Za-z0-9_]*(?:\.[a-zA-Z_][a-zA-Z_0-9]*)*)/,
|
186
|
+
contentName: "entity.name.function.decorator.python",
|
187
|
+
end: "(?=\\s|$\\n?|#)",
|
188
|
+
name: "meta.function.decorator.python",
|
189
|
+
patterns:
|
190
|
+
[{begin: /(?=(@)\s*[A-Za-z_][A-Za-z0-9_]*(\.[A-Za-z_][A-Za-z0-9_]*)*)/,
|
191
|
+
beginCaptures: {1 => {name: "punctuation.definition.decorator.python"}},
|
192
|
+
end: "(?=\\s|$\\n?|#)",
|
193
|
+
patterns: [{include: "#dotted_name"}]}]},
|
194
|
+
{begin: /(?<=\)|\])\s*(\()/,
|
195
|
+
beginCaptures:
|
196
|
+
{1 => {name: "punctuation.definition.arguments.begin.python"}},
|
197
|
+
contentName: "meta.function-call.arguments.python",
|
198
|
+
end: "(\\))",
|
199
|
+
endCaptures: {1 => {name: "punctuation.definition.arguments.end.python"}},
|
200
|
+
name: "meta.function-call.python",
|
201
|
+
patterns: [{include: "#keyword_arguments"}, {include: "$self"}]},
|
202
|
+
{begin: /(?=[A-Za-z_][A-Za-z0-9_]*(?:\.[a-zA-Z_][a-zA-Z_0-9]*)*\s*\()/,
|
203
|
+
end: "(\\))",
|
204
|
+
endCaptures: {1 => {name: "punctuation.definition.arguments.end.python"}},
|
205
|
+
name: "meta.function-call.python",
|
206
|
+
patterns:
|
207
|
+
[{begin: /(?=[A-Za-z_][A-Za-z0-9_]*(?:\.[A-Za-z_][A-Za-z0-9_]*)*\s*\()/,
|
208
|
+
end: "(?=\\s*\\()",
|
209
|
+
patterns: [{include: "#dotted_name"}]},
|
210
|
+
{begin: /(\()/,
|
211
|
+
beginCaptures:
|
212
|
+
{1 => {name: "punctuation.definition.arguments.begin.python"}},
|
213
|
+
contentName: "meta.function-call.arguments.python",
|
214
|
+
end: "(?=\\))",
|
215
|
+
patterns: [{include: "#keyword_arguments"}, {include: "$self"}]}]},
|
216
|
+
{begin: /(?=[A-Za-z_][A-Za-z0-9_]*(?:\.[a-zA-Z_][a-zA-Z_0-9]*)*\s*\[)/,
|
217
|
+
end: "(\\])",
|
218
|
+
endCaptures: {1 => {name: "punctuation.definition.arguments.end.python"}},
|
219
|
+
name: "meta.item-access.python",
|
220
|
+
patterns:
|
221
|
+
[{begin: /(?=[A-Za-z_][A-Za-z0-9_]*(?:\.[A-Za-z_][A-Za-z0-9_]*)*\s*\[)/,
|
222
|
+
end: "(?=\\s*\\[)",
|
223
|
+
patterns: [{include: "#dotted_name"}]},
|
224
|
+
{begin: /(\[)/,
|
225
|
+
beginCaptures:
|
226
|
+
{1 => {name: "punctuation.definition.arguments.begin.python"}},
|
227
|
+
contentName: "meta.item-access.arguments.python",
|
228
|
+
end: "(?=\\])",
|
229
|
+
patterns: [{include: "$self"}]}]},
|
230
|
+
{begin: /(?<=\)|\])\s*(\[)/,
|
231
|
+
beginCaptures:
|
232
|
+
{1 => {name: "punctuation.definition.arguments.begin.python"}},
|
233
|
+
contentName: "meta.item-access.arguments.python",
|
234
|
+
end: "(\\])",
|
235
|
+
endCaptures: {1 => {name: "punctuation.definition.arguments.end.python"}},
|
236
|
+
name: "meta.item-access.python",
|
237
|
+
patterns: [{include: "$self"}]},
|
238
|
+
{captures: {1 => {name: "storage.type.function.python"}},
|
239
|
+
match: /\b(def|lambda)\b/},
|
240
|
+
{captures: {1 => {name: "storage.type.class.python"}},
|
241
|
+
match: /\b(class)\b/},
|
242
|
+
{include: "#line_continuation"},
|
243
|
+
{include: "#language_variables"},
|
244
|
+
{match: /\b(None|True|False|Ellipsis|NotImplemented)\b/,
|
245
|
+
name: "constant.language.python"},
|
246
|
+
{include: "#string_quoted_single"},
|
247
|
+
{include: "#string_quoted_double"},
|
248
|
+
{include: "#dotted_name"},
|
249
|
+
{begin: /(\()/, end: "(\\))", patterns: [{include: "$self"}]},
|
250
|
+
{captures:
|
251
|
+
{1 => {name: "punctuation.definition.list.begin.python"},
|
252
|
+
2 => {name: "meta.empty-list.python"},
|
253
|
+
3 => {name: "punctuation.definition.list.end.python"}},
|
254
|
+
match: /(\[)(\s*(\]))\b/},
|
255
|
+
{begin: /(\[)/,
|
256
|
+
beginCaptures: {1 => {name: "punctuation.definition.list.begin.python"}},
|
257
|
+
end: "(\\])",
|
258
|
+
endCaptures: {1 => {name: "punctuation.definition.list.end.python"}},
|
259
|
+
name: "meta.structure.list.python",
|
260
|
+
patterns:
|
261
|
+
[{begin: /(?<=\[|\,)\s*(?![\],])/,
|
262
|
+
contentName: "meta.structure.list.item.python",
|
263
|
+
end: "\\s*(?:(,)|(?=\\]))",
|
264
|
+
endCaptures: {1 => {name: "punctuation.separator.list.python"}},
|
265
|
+
patterns: [{include: "$self"}]}]},
|
266
|
+
{captures:
|
267
|
+
{1 => {name: "punctuation.definition.tuple.begin.python"},
|
268
|
+
2 => {name: "meta.empty-tuple.python"},
|
269
|
+
3 => {name: "punctuation.definition.tuple.end.python"}},
|
270
|
+
match: /(\()(\s*(\)))/,
|
271
|
+
name: "meta.structure.tuple.python"},
|
272
|
+
{captures:
|
273
|
+
{1 => {name: "punctuation.definition.dictionary.begin.python"},
|
274
|
+
2 => {name: "meta.empty-dictionary.python"},
|
275
|
+
3 => {name: "punctuation.definition.dictionary.end.python"}},
|
276
|
+
match: /(\{)(\s*(\}))/,
|
277
|
+
name: "meta.structure.dictionary.python"},
|
278
|
+
{begin: /(\{)/,
|
279
|
+
beginCaptures:
|
280
|
+
{1 => {name: "punctuation.definition.dictionary.begin.python"}},
|
281
|
+
end: "(\\})",
|
282
|
+
endCaptures: {1 => {name: "punctuation.definition.dictionary.end.python"}},
|
283
|
+
name: "meta.structure.dictionary.python",
|
284
|
+
patterns:
|
285
|
+
[{begin: /(?<=\{|\,|^)\s*(?![\},])/,
|
286
|
+
contentName: "meta.structure.dictionary.key.python",
|
287
|
+
end: "\\s*(?:(?=\\})|(\\:))",
|
288
|
+
endCaptures:
|
289
|
+
{1 => {name: "punctuation.separator.valuepair.dictionary.python"}},
|
290
|
+
patterns: [{include: "$self"}]},
|
291
|
+
{begin: /(?<=\:|^)\s*/,
|
292
|
+
contentName: "meta.structure.dictionary.value.python",
|
293
|
+
end: "\\s*(?:(?=\\})|(,))",
|
294
|
+
endCaptures: {1 => {name: "punctuation.separator.dictionary.python"}},
|
295
|
+
patterns: [{include: "$self"}]}]}],
|
296
|
+
repository:
|
297
|
+
{builtin_exceptions:
|
298
|
+
{match:
|
299
|
+
/(?x)\b((Arithmetic|Assertion|Attribute|EOF|Environment|FloatingPoint|IO|Import|Indentation|Index|Key|Lookup|Memory|Name|OS|Overflow|NotImplemented|Reference|Runtime|Standard|Syntax|System|Tab|Type|UnboundLocal|Unicode(Translate|Encode|Decode)?|Value|ZeroDivision)Error|(Deprecation|Future|Overflow|PendingDeprecation|Runtime|Syntax|User)?Warning|KeyboardInterrupt|NotImplemented|StopIteration|SystemExit|(Base)?Exception)\b/,
|
300
|
+
name: "support.type.exception.python"},
|
301
|
+
builtin_functions:
|
302
|
+
{match:
|
303
|
+
/(?x)\b(
|
304
|
+
__import__|all|abs|any|apply|callable|chr|cmp|coerce|compile|delattr|dir|
|
305
|
+
divmod|eval|execfile|filter|getattr|globals|hasattr|hash|hex|id|
|
306
|
+
input|intern|isinstance|issubclass|iter|len|locals|map|max|min|oct|
|
307
|
+
ord|pow|range|raw_input|reduce|reload|repr|round|setattr|sorted|
|
308
|
+
sum|unichr|vars|zip
|
309
|
+
)\b/,
|
310
|
+
name: "support.function.builtin.python"},
|
311
|
+
builtin_types:
|
312
|
+
{match:
|
313
|
+
/(?x)\b(
|
314
|
+
basestring|bool|buffer|classmethod|complex|dict|enumerate|file|
|
315
|
+
float|frozenset|int|list|long|object|open|property|reversed|set|
|
316
|
+
slice|staticmethod|str|super|tuple|type|unicode|xrange
|
317
|
+
)\b/,
|
318
|
+
name: "support.type.python"},
|
319
|
+
constant_placeholder:
|
320
|
+
{match:
|
321
|
+
/(?i:%(\([a-z_]+\))?#?0?\-?[ ]?\+?([0-9]*|\*)(\.([0-9]*|\*))?[hL]?[a-z%])/,
|
322
|
+
name: "constant.other.placeholder.python"},
|
323
|
+
docstrings:
|
324
|
+
{patterns:
|
325
|
+
[{begin: /^\s*(?=[uU]?[rR]?""")/,
|
326
|
+
end: "(?<=\"\"\")",
|
327
|
+
name: "comment.block.python",
|
328
|
+
patterns: [{include: "#string_quoted_double"}]},
|
329
|
+
{begin: /^\s*(?=[uU]?[rR]?''')/,
|
330
|
+
end: "(?<=''')",
|
331
|
+
name: "comment.block.python",
|
332
|
+
patterns: [{include: "#string_quoted_single"}]}]},
|
333
|
+
dotted_name:
|
334
|
+
{begin: /(?=[A-Za-z_][A-Za-z0-9_]*(?:\.[A-Za-z_][A-Za-z0-9_]*)*)/,
|
335
|
+
end: "(?![A-Za-z0-9_\\.])",
|
336
|
+
patterns:
|
337
|
+
[{begin: /(\.)(?=[A-Za-z_][A-Za-z0-9_]*)/,
|
338
|
+
end: "(?![A-Za-z0-9_])",
|
339
|
+
patterns:
|
340
|
+
[{include: "#magic_function_names"},
|
341
|
+
{include: "#magic_variable_names"},
|
342
|
+
{include: "#illegal_names"},
|
343
|
+
{include: "#generic_names"}]},
|
344
|
+
{begin: /(?<!\.)(?=[A-Za-z_][A-Za-z0-9_]*)/,
|
345
|
+
end: "(?![A-Za-z0-9_])",
|
346
|
+
patterns:
|
347
|
+
[{include: "#builtin_functions"},
|
348
|
+
{include: "#builtin_types"},
|
349
|
+
{include: "#builtin_exceptions"},
|
350
|
+
{include: "#illegal_names"},
|
351
|
+
{include: "#magic_function_names"},
|
352
|
+
{include: "#magic_variable_names"},
|
353
|
+
{include: "#language_variables"},
|
354
|
+
{include: "#generic_names"}]}]},
|
355
|
+
entity_name_class:
|
356
|
+
{patterns: [{include: "#illegal_names"}, {include: "#generic_names"}]},
|
357
|
+
entity_name_function:
|
358
|
+
{patterns:
|
359
|
+
[{include: "#magic_function_names"},
|
360
|
+
{include: "#illegal_names"},
|
361
|
+
{include: "#generic_names"}]},
|
362
|
+
escaped_char:
|
363
|
+
{captures:
|
364
|
+
{1 => {name: "constant.character.escape.hex.python"},
|
365
|
+
10 => {name: "constant.character.escape.linefeed.python"},
|
366
|
+
11 => {name: "constant.character.escape.return.python"},
|
367
|
+
12 => {name: "constant.character.escape.tab.python"},
|
368
|
+
13 => {name: "constant.character.escape.vertical-tab.python"},
|
369
|
+
2 => {name: "constant.character.escape.octal.python"},
|
370
|
+
3 => {name: "constant.character.escape.newline.python"},
|
371
|
+
4 => {name: "constant.character.escape.backlash.python"},
|
372
|
+
5 => {name: "constant.character.escape.double-quote.python"},
|
373
|
+
6 => {name: "constant.character.escape.single-quote.python"},
|
374
|
+
7 => {name: "constant.character.escape.bell.python"},
|
375
|
+
8 => {name: "constant.character.escape.backspace.python"},
|
376
|
+
9 => {name: "constant.character.escape.formfeed.python"}},
|
377
|
+
match:
|
378
|
+
/(\\x[0-9A-F]{2})|(\\[0-7]{3})|(\\\n)|(\\\\)|(\\\")|(\\')|(\\a)|(\\b)|(\\f)|(\\n)|(\\r)|(\\t)|(\\v)/},
|
379
|
+
escaped_unicode_char:
|
380
|
+
{captures:
|
381
|
+
{1 => {name: "constant.character.escape.unicode.16-bit-hex.python"},
|
382
|
+
2 => {name: "constant.character.escape.unicode.32-bit-hex.python"},
|
383
|
+
3 => {name: "constant.character.escape.unicode.name.python"}},
|
384
|
+
match: /(\\U[0-9A-Fa-f]{8})|(\\u[0-9A-Fa-f]{4})|(\\N\{[a-zA-Z ]+\})/},
|
385
|
+
function_name:
|
386
|
+
{patterns:
|
387
|
+
[{include: "#magic_function_names"},
|
388
|
+
{include: "#magic_variable_names"},
|
389
|
+
{include: "#builtin_exceptions"},
|
390
|
+
{include: "#builtin_functions"},
|
391
|
+
{include: "#builtin_types"},
|
392
|
+
{include: "#generic_names"}]},
|
393
|
+
generic_names: {match: /[A-Za-z_][A-Za-z0-9_]*/},
|
394
|
+
illegal_names:
|
395
|
+
{match:
|
396
|
+
/\b(and|as|assert|break|class|continue|def|del|elif|else|except|exec|finally|for|from|global|if|import|in|is|lambda|not|or|pass|print|raise|return|try|while|with|yield)\b/,
|
397
|
+
name: "invalid.illegal.name.python"},
|
398
|
+
keyword_arguments:
|
399
|
+
{begin: /\b([a-zA-Z_][a-zA-Z_0-9]*)\s*(=)(?!=)/,
|
400
|
+
beginCaptures:
|
401
|
+
{1 => {name: "variable.parameter.function.python"},
|
402
|
+
2 => {name: "keyword.operator.assignment.python"}},
|
403
|
+
end: "\\s*(?:(,)|(?=$\\n?|[\\)\\:]))",
|
404
|
+
endCaptures: {1 => {name: "punctuation.separator.parameters.python"}},
|
405
|
+
patterns: [{include: "$self"}]},
|
406
|
+
language_variables:
|
407
|
+
{match: /\b(self|cls)\b/, name: "variable.language.python"},
|
408
|
+
line_continuation:
|
409
|
+
{captures:
|
410
|
+
{1 => {name: "punctuation.separator.continuation.line.python"},
|
411
|
+
2 => {name: "invalid.illegal.unexpected-text.python"}},
|
412
|
+
match: /(\\)(.*)$\n?/},
|
413
|
+
magic_function_names:
|
414
|
+
{comment:
|
415
|
+
"these methods have magic interpretation by python and are generally called indirectly through syntactic constructs",
|
416
|
+
match:
|
417
|
+
/(?x)\b(__(?:
|
418
|
+
abs|add|and|call|cmp|coerce|complex|contains|del|delattr|
|
419
|
+
delete|delitem|delslice|div|divmod|enter|eq|exit|float|
|
420
|
+
floordiv|ge|get|getattr|getattribute|getitem|getslice|gt|
|
421
|
+
hash|hex|iadd|iand|idiv|ifloordiv|ilshift|imod|imul|init|
|
422
|
+
int|invert|ior|ipow|irshift|isub|iter|itruediv|ixor|le|len|
|
423
|
+
long|lshift|lt|mod|mul|ne|neg|new|nonzero|oct|or|pos|pow|
|
424
|
+
radd|rand|rdiv|rdivmod|repr|rfloordiv|rlshift|rmod|rmul|ror|
|
425
|
+
rpow|rrshift|rshift|rsub|rtruediv|rxor|set|setattr|setitem|
|
426
|
+
setslice|str|sub|truediv|unicode|xor
|
427
|
+
)__)\b/,
|
428
|
+
name: "support.function.magic.python"},
|
429
|
+
magic_variable_names:
|
430
|
+
{comment: "magic variables which a class/module may have.",
|
431
|
+
match:
|
432
|
+
/\b__(all|bases|class|debug|dict|doc|file|members|metaclass|methods|name|slots|weakref)__\b/,
|
433
|
+
name: "support.variable.magic.python"},
|
434
|
+
regular_expressions:
|
435
|
+
{comment:
|
436
|
+
"Changed disabled to 1 to turn off syntax highlighting in “r” strings.",
|
437
|
+
disabled: 0,
|
438
|
+
patterns: [{include: "source.regexp.python"}]},
|
439
|
+
string_quoted_double:
|
440
|
+
{patterns:
|
441
|
+
[{begin: /([uU]r)(""")/,
|
442
|
+
beginCaptures:
|
443
|
+
{1 => {name: "storage.type.string.python"},
|
444
|
+
2 => {name: "punctuation.definition.string.begin.python"}},
|
445
|
+
comment: "single quoted unicode-raw string",
|
446
|
+
end: "((?<=\"\"\")(\")\"\"|\"\"\")",
|
447
|
+
endCaptures:
|
448
|
+
{1 => {name: "punctuation.definition.string.end.python"},
|
449
|
+
2 => {name: "meta.empty-string.double.python"}},
|
450
|
+
name: "string.quoted.double.block.unicode-raw-regex.python",
|
451
|
+
patterns:
|
452
|
+
[{include: "#constant_placeholder"},
|
453
|
+
{include: "#escaped_unicode_char"},
|
454
|
+
{include: "#escaped_char"},
|
455
|
+
{include: "#regular_expressions"}]},
|
456
|
+
{begin: /([uU]R)(""")/,
|
457
|
+
beginCaptures:
|
458
|
+
{1 => {name: "storage.type.string.python"},
|
459
|
+
2 => {name: "punctuation.definition.string.begin.python"}},
|
460
|
+
comment:
|
461
|
+
"single quoted unicode-raw string without regular expression highlighting",
|
462
|
+
end: "((?<=\"\"\")(\")\"\"|\"\"\")",
|
463
|
+
endCaptures:
|
464
|
+
{1 => {name: "punctuation.definition.string.end.python"},
|
465
|
+
2 => {name: "meta.empty-string.double.python"}},
|
466
|
+
name: "string.quoted.double.block.unicode-raw.python",
|
467
|
+
patterns:
|
468
|
+
[{include: "#constant_placeholder"},
|
469
|
+
{include: "#escaped_unicode_char"},
|
470
|
+
{include: "#escaped_char"}]},
|
471
|
+
{begin: /(r)(""")/,
|
472
|
+
beginCaptures:
|
473
|
+
{1 => {name: "storage.type.string.python"},
|
474
|
+
2 => {name: "punctuation.definition.string.begin.python"}},
|
475
|
+
comment: "double quoted raw string",
|
476
|
+
end: "((?<=\"\"\")(\")\"\"|\"\"\")",
|
477
|
+
endCaptures:
|
478
|
+
{1 => {name: "punctuation.definition.string.end.python"},
|
479
|
+
2 => {name: "meta.empty-string.double.python"}},
|
480
|
+
name: "string.quoted.double.block.raw-regex.python",
|
481
|
+
patterns:
|
482
|
+
[{include: "#constant_placeholder"},
|
483
|
+
{include: "#escaped_char"},
|
484
|
+
{include: "#regular_expressions"}]},
|
485
|
+
{begin: /(R)(""")/,
|
486
|
+
beginCaptures:
|
487
|
+
{1 => {name: "storage.type.string.python"},
|
488
|
+
2 => {name: "punctuation.definition.string.begin.python"}},
|
489
|
+
comment: "double quoted raw string",
|
490
|
+
end: "((?<=\"\"\")(\")\"\"|\"\"\")",
|
491
|
+
endCaptures:
|
492
|
+
{1 => {name: "punctuation.definition.string.end.python"},
|
493
|
+
2 => {name: "meta.empty-string.double.python"}},
|
494
|
+
name: "string.quoted.double.block.raw.python",
|
495
|
+
patterns:
|
496
|
+
[{include: "#constant_placeholder"}, {include: "#escaped_char"}]},
|
497
|
+
{begin: /([uU])(""")/,
|
498
|
+
beginCaptures:
|
499
|
+
{1 => {name: "storage.type.string.python"},
|
500
|
+
2 => {name: "punctuation.definition.string.begin.python"}},
|
501
|
+
comment: "double quoted unicode string",
|
502
|
+
end: "((?<=\"\"\")(\")\"\"|\"\"\")",
|
503
|
+
endCaptures:
|
504
|
+
{1 => {name: "punctuation.definition.string.end.python"},
|
505
|
+
2 => {name: "meta.empty-string.double.python"}},
|
506
|
+
name: "string.quoted.double.block.unicode.python",
|
507
|
+
patterns:
|
508
|
+
[{include: "#constant_placeholder"},
|
509
|
+
{include: "#escaped_unicode_char"},
|
510
|
+
{include: "#escaped_char"}]},
|
511
|
+
{begin: /([uU]r)(")/,
|
512
|
+
beginCaptures:
|
513
|
+
{1 => {name: "storage.type.string.python"},
|
514
|
+
2 => {name: "punctuation.definition.string.begin.python"}},
|
515
|
+
comment: "double-quoted raw string",
|
516
|
+
end: "((?<=\")(\")|\")|(\\n)",
|
517
|
+
endCaptures:
|
518
|
+
{1 => {name: "punctuation.definition.string.end.python"},
|
519
|
+
2 => {name: "meta.empty-string.double.python"},
|
520
|
+
3 => {name: "invalid.illegal.unclosed-string.python"}},
|
521
|
+
name: "string.quoted.double.single-line.unicode-raw-regex.python",
|
522
|
+
patterns:
|
523
|
+
[{include: "#constant_placeholder"},
|
524
|
+
{include: "#escaped_unicode_char"},
|
525
|
+
{include: "#escaped_char"},
|
526
|
+
{include: "#regular_expressions"}]},
|
527
|
+
{begin: /([uU]R)(")/,
|
528
|
+
beginCaptures:
|
529
|
+
{1 => {name: "storage.type.string.python"},
|
530
|
+
2 => {name: "punctuation.definition.string.begin.python"}},
|
531
|
+
comment: "double-quoted raw string",
|
532
|
+
end: "((?<=\")(\")|\")|(\\n)",
|
533
|
+
endCaptures:
|
534
|
+
{1 => {name: "punctuation.definition.string.end.python"},
|
535
|
+
2 => {name: "meta.empty-string.double.python"},
|
536
|
+
3 => {name: "invalid.illegal.unclosed-string.python"}},
|
537
|
+
name: "string.quoted.double.single-line.unicode-raw.python",
|
538
|
+
patterns:
|
539
|
+
[{include: "#constant_placeholder"},
|
540
|
+
{include: "#escaped_unicode_char"},
|
541
|
+
{include: "#escaped_char"}]},
|
542
|
+
{begin: /(r)(")/,
|
543
|
+
beginCaptures:
|
544
|
+
{1 => {name: "storage.type.string.python"},
|
545
|
+
2 => {name: "punctuation.definition.string.begin.python"}},
|
546
|
+
comment: "double-quoted raw string",
|
547
|
+
end: "((?<=\")(\")|\")|(\\n)",
|
548
|
+
endCaptures:
|
549
|
+
{1 => {name: "punctuation.definition.string.end.python"},
|
550
|
+
2 => {name: "meta.empty-string.double.python"},
|
551
|
+
3 => {name: "invalid.illegal.unclosed-string.python"}},
|
552
|
+
name: "string.quoted.double.single-line.raw-regex.python",
|
553
|
+
patterns:
|
554
|
+
[{include: "#constant_placeholder"},
|
555
|
+
{include: "#escaped_char"},
|
556
|
+
{include: "#regular_expressions"}]},
|
557
|
+
{begin: /(R)(")/,
|
558
|
+
beginCaptures:
|
559
|
+
{1 => {name: "storage.type.string.python"},
|
560
|
+
2 => {name: "punctuation.definition.string.begin.python"}},
|
561
|
+
comment: "double-quoted raw string",
|
562
|
+
end: "((?<=\")(\")|\")|(\\n)",
|
563
|
+
endCaptures:
|
564
|
+
{1 => {name: "punctuation.definition.string.end.python"},
|
565
|
+
2 => {name: "meta.empty-string.double.python"},
|
566
|
+
3 => {name: "invalid.illegal.unclosed-string.python"}},
|
567
|
+
name: "string.quoted.double.single-line.raw.python",
|
568
|
+
patterns:
|
569
|
+
[{include: "#constant_placeholder"}, {include: "#escaped_char"}]},
|
570
|
+
{begin: /([uU])(")/,
|
571
|
+
beginCaptures:
|
572
|
+
{1 => {name: "storage.type.string.python"},
|
573
|
+
2 => {name: "punctuation.definition.string.begin.python"}},
|
574
|
+
comment: "double quoted unicode string",
|
575
|
+
end: "((?<=\")(\")|\")|(\\n)",
|
576
|
+
endCaptures:
|
577
|
+
{1 => {name: "punctuation.definition.string.end.python"},
|
578
|
+
2 => {name: "meta.empty-string.double.python"},
|
579
|
+
3 => {name: "invalid.illegal.unclosed-string.python"}},
|
580
|
+
name: "string.quoted.double.single-line.unicode.python",
|
581
|
+
patterns:
|
582
|
+
[{include: "#constant_placeholder"},
|
583
|
+
{include: "#escaped_unicode_char"},
|
584
|
+
{include: "#escaped_char"}]},
|
585
|
+
{begin:
|
586
|
+
/(""")(?=\s*(SELECT|INSERT|UPDATE|DELETE|CREATE|REPLACE|ALTER))/,
|
587
|
+
beginCaptures:
|
588
|
+
{1 => {name: "punctuation.definition.string.begin.python"}},
|
589
|
+
comment: "double quoted string",
|
590
|
+
end: "((?<=\"\"\")(\")\"\"|\"\"\")",
|
591
|
+
endCaptures:
|
592
|
+
{1 => {name: "punctuation.definition.string.end.python"},
|
593
|
+
2 => {name: "meta.empty-string.double.python"}},
|
594
|
+
name: "string.quoted.double.block.sql.python",
|
595
|
+
patterns:
|
596
|
+
[{include: "#constant_placeholder"},
|
597
|
+
{include: "#escaped_char"},
|
598
|
+
{include: "source.sql"}]},
|
599
|
+
{begin: /(")(?=\s*(SELECT|INSERT|UPDATE|DELETE|CREATE|REPLACE|ALTER))/,
|
600
|
+
beginCaptures:
|
601
|
+
{1 => {name: "punctuation.definition.string.begin.python"}},
|
602
|
+
comment: "double quoted string",
|
603
|
+
end: "((?<=\")(\")|\")|(\\n)",
|
604
|
+
endCaptures:
|
605
|
+
{1 => {name: "punctuation.definition.string.end.python"},
|
606
|
+
2 => {name: "meta.empty-string.double.python"},
|
607
|
+
3 => {name: "invalid.illegal.unclosed-string.python"}},
|
608
|
+
name: "string.quoted.double.single-line.sql.python",
|
609
|
+
patterns:
|
610
|
+
[{include: "#constant_placeholder"},
|
611
|
+
{include: "#escaped_char"},
|
612
|
+
{include: "source.sql"}]},
|
613
|
+
{begin: /(""")/,
|
614
|
+
beginCaptures:
|
615
|
+
{1 => {name: "punctuation.definition.string.begin.python"}},
|
616
|
+
comment: "double quoted string",
|
617
|
+
end: "((?<=\"\"\")(\")\"\"|\"\"\")",
|
618
|
+
endCaptures:
|
619
|
+
{1 => {name: "punctuation.definition.string.end.python"},
|
620
|
+
2 => {name: "meta.empty-string.double.python"}},
|
621
|
+
name: "string.quoted.double.block.python",
|
622
|
+
patterns:
|
623
|
+
[{include: "#constant_placeholder"}, {include: "#escaped_char"}]},
|
624
|
+
{begin: /(")/,
|
625
|
+
beginCaptures:
|
626
|
+
{1 => {name: "punctuation.definition.string.begin.python"}},
|
627
|
+
comment: "double quoted string",
|
628
|
+
end: "((?<=\")(\")|\")|(\\n)",
|
629
|
+
endCaptures:
|
630
|
+
{1 => {name: "punctuation.definition.string.end.python"},
|
631
|
+
2 => {name: "meta.empty-string.double.python"},
|
632
|
+
3 => {name: "invalid.illegal.unclosed-string.python"}},
|
633
|
+
name: "string.quoted.double.single-line.python",
|
634
|
+
patterns:
|
635
|
+
[{include: "#constant_placeholder"}, {include: "#escaped_char"}]}]},
|
636
|
+
string_quoted_single:
|
637
|
+
{patterns:
|
638
|
+
[{captures:
|
639
|
+
{1 => {name: "punctuation.definition.string.begin.python"},
|
640
|
+
2 => {name: "punctuation.definition.string.end.python"},
|
641
|
+
3 => {name: "meta.empty-string.single.python"}},
|
642
|
+
match: /(?<!')(')(('))(?!')/,
|
643
|
+
name: "string.quoted.single.single-line.python"},
|
644
|
+
{begin: /([uU]r)(''')/,
|
645
|
+
beginCaptures:
|
646
|
+
{1 => {name: "storage.type.string.python"},
|
647
|
+
2 => {name: "punctuation.definition.string.begin.python"}},
|
648
|
+
comment: "single quoted unicode-raw string",
|
649
|
+
end: "((?<=''')(')''|''')",
|
650
|
+
endCaptures:
|
651
|
+
{1 => {name: "punctuation.definition.string.end.python"},
|
652
|
+
2 => {name: "meta.empty-string.single.python"}},
|
653
|
+
name: "string.quoted.single.block.unicode-raw-regex.python",
|
654
|
+
patterns:
|
655
|
+
[{include: "#constant_placeholder"},
|
656
|
+
{include: "#escaped_unicode_char"},
|
657
|
+
{include: "#escaped_char"},
|
658
|
+
{include: "#regular_expressions"}]},
|
659
|
+
{begin: /([uU]R)(''')/,
|
660
|
+
beginCaptures:
|
661
|
+
{1 => {name: "storage.type.string.python"},
|
662
|
+
2 => {name: "punctuation.definition.string.begin.python"}},
|
663
|
+
comment: "single quoted unicode-raw string",
|
664
|
+
end: "((?<=''')(')''|''')",
|
665
|
+
endCaptures:
|
666
|
+
{1 => {name: "punctuation.definition.string.end.python"},
|
667
|
+
2 => {name: "meta.empty-string.single.python"}},
|
668
|
+
name: "string.quoted.single.block.unicode-raw.python",
|
669
|
+
patterns:
|
670
|
+
[{include: "#constant_placeholder"},
|
671
|
+
{include: "#escaped_unicode_char"},
|
672
|
+
{include: "#escaped_char"}]},
|
673
|
+
{begin: /(r)(''')/,
|
674
|
+
beginCaptures:
|
675
|
+
{1 => {name: "storage.type.string.python"},
|
676
|
+
2 => {name: "punctuation.definition.string.begin.python"}},
|
677
|
+
comment: "single quoted raw string",
|
678
|
+
end: "((?<=''')(')''|''')",
|
679
|
+
endCaptures:
|
680
|
+
{1 => {name: "punctuation.definition.string.end.python"},
|
681
|
+
2 => {name: "meta.empty-string.single.python"}},
|
682
|
+
name: "string.quoted.single.block.raw-regex.python",
|
683
|
+
patterns:
|
684
|
+
[{include: "#constant_placeholder"},
|
685
|
+
{include: "#escaped_char"},
|
686
|
+
{include: "#regular_expressions"}]},
|
687
|
+
{begin: /(R)(''')/,
|
688
|
+
beginCaptures:
|
689
|
+
{1 => {name: "storage.type.string.python"},
|
690
|
+
2 => {name: "punctuation.definition.string.begin.python"}},
|
691
|
+
comment: "single quoted raw string",
|
692
|
+
end: "((?<=''')(')''|''')",
|
693
|
+
endCaptures:
|
694
|
+
{1 => {name: "punctuation.definition.string.end.python"},
|
695
|
+
2 => {name: "meta.empty-string.single.python"}},
|
696
|
+
name: "string.quoted.single.block.raw.python",
|
697
|
+
patterns:
|
698
|
+
[{include: "#constant_placeholder"}, {include: "#escaped_char"}]},
|
699
|
+
{begin: /([uU])(''')/,
|
700
|
+
beginCaptures:
|
701
|
+
{1 => {name: "storage.type.string.python"},
|
702
|
+
2 => {name: "punctuation.definition.string.begin.python"}},
|
703
|
+
comment: "single quoted unicode string",
|
704
|
+
end: "((?<=''')(')''|''')",
|
705
|
+
endCaptures:
|
706
|
+
{1 => {name: "punctuation.definition.string.end.python"},
|
707
|
+
2 => {name: "meta.empty-string.single.python"}},
|
708
|
+
name: "string.quoted.single.block.unicode.python",
|
709
|
+
patterns:
|
710
|
+
[{include: "#constant_placeholder"},
|
711
|
+
{include: "#escaped_unicode_char"},
|
712
|
+
{include: "#escaped_char"}]},
|
713
|
+
{begin: /([uU]r)(')/,
|
714
|
+
beginCaptures:
|
715
|
+
{1 => {name: "storage.type.string.python"},
|
716
|
+
2 => {name: "punctuation.definition.string.begin.python"}},
|
717
|
+
comment: "single quoted raw string",
|
718
|
+
end: "(')|(\\n)",
|
719
|
+
endCaptures:
|
720
|
+
{1 => {name: "punctuation.definition.string.end.python"},
|
721
|
+
2 => {name: "invalid.illegal.unclosed-string.python"}},
|
722
|
+
name: "string.quoted.single.single-line.unicode-raw-regex.python",
|
723
|
+
patterns:
|
724
|
+
[{include: "#constant_placeholder"},
|
725
|
+
{include: "#escaped_unicode_char"},
|
726
|
+
{include: "#escaped_char"},
|
727
|
+
{include: "#regular_expressions"}]},
|
728
|
+
{begin: /([uU]R)(')/,
|
729
|
+
beginCaptures:
|
730
|
+
{1 => {name: "storage.type.string.python"},
|
731
|
+
2 => {name: "punctuation.definition.string.begin.python"}},
|
732
|
+
comment: "single quoted raw string",
|
733
|
+
end: "(')|(\\n)",
|
734
|
+
endCaptures:
|
735
|
+
{1 => {name: "punctuation.definition.string.end.python"},
|
736
|
+
2 => {name: "invalid.illegal.unclosed-string.python"}},
|
737
|
+
name: "string.quoted.single.single-line.unicode-raw.python",
|
738
|
+
patterns:
|
739
|
+
[{include: "#constant_placeholder"},
|
740
|
+
{include: "#escaped_unicode_char"},
|
741
|
+
{include: "#escaped_char"}]},
|
742
|
+
{begin: /(r)(')/,
|
743
|
+
beginCaptures:
|
744
|
+
{1 => {name: "storage.type.string.python"},
|
745
|
+
2 => {name: "punctuation.definition.string.begin.python"}},
|
746
|
+
comment: "single quoted raw string",
|
747
|
+
end: "(')|(\\n)",
|
748
|
+
endCaptures:
|
749
|
+
{1 => {name: "punctuation.definition.string.end.python"},
|
750
|
+
2 => {name: "invalid.illegal.unclosed-string.python"}},
|
751
|
+
name: "string.quoted.single.single-line.raw-regex.python",
|
752
|
+
patterns:
|
753
|
+
[{include: "#constant_placeholder"},
|
754
|
+
{include: "#escaped_char"},
|
755
|
+
{include: "#regular_expressions"}]},
|
756
|
+
{begin: /(R)(')/,
|
757
|
+
beginCaptures:
|
758
|
+
{1 => {name: "storage.type.string.python"},
|
759
|
+
2 => {name: "punctuation.definition.string.begin.python"}},
|
760
|
+
comment: "single quoted raw string",
|
761
|
+
end: "(')|(\\n)",
|
762
|
+
endCaptures:
|
763
|
+
{1 => {name: "punctuation.definition.string.end.python"},
|
764
|
+
2 => {name: "invalid.illegal.unclosed-string.python"}},
|
765
|
+
name: "string.quoted.single.single-line.raw.python",
|
766
|
+
patterns:
|
767
|
+
[{include: "#constant_placeholder"}, {include: "#escaped_char"}]},
|
768
|
+
{begin: /([uU])(')/,
|
769
|
+
beginCaptures:
|
770
|
+
{1 => {name: "storage.type.string.python"},
|
771
|
+
2 => {name: "punctuation.definition.string.begin.python"}},
|
772
|
+
comment: "single quoted unicode string",
|
773
|
+
end: "(')|(\\n)",
|
774
|
+
endCaptures:
|
775
|
+
{1 => {name: "punctuation.definition.string.end.python"},
|
776
|
+
2 => {name: "invalid.illegal.unclosed-string.python"}},
|
777
|
+
name: "string.quoted.single.single-line.unicode.python",
|
778
|
+
patterns:
|
779
|
+
[{include: "#constant_placeholder"},
|
780
|
+
{include: "#escaped_unicode_char"},
|
781
|
+
{include: "#escaped_char"}]},
|
782
|
+
{begin:
|
783
|
+
/(''')(?=\s*(SELECT|INSERT|UPDATE|DELETE|CREATE|REPLACE|ALTER))/,
|
784
|
+
beginCaptures:
|
785
|
+
{1 => {name: "punctuation.definition.string.begin.python"}},
|
786
|
+
comment: "single quoted string",
|
787
|
+
end: "((?<=''')(')''|''')",
|
788
|
+
endCaptures:
|
789
|
+
{1 => {name: "punctuation.definition.string.end.python"},
|
790
|
+
2 => {name: "meta.empty-string.single.python"}},
|
791
|
+
name: "string.quoted.single.block.python",
|
792
|
+
patterns:
|
793
|
+
[{include: "#constant_placeholder"},
|
794
|
+
{include: "#escaped_char"},
|
795
|
+
{include: "source.sql"}]},
|
796
|
+
{begin: /(')(?=\s*(SELECT|INSERT|UPDATE|DELETE|CREATE|REPLACE|ALTER))/,
|
797
|
+
beginCaptures:
|
798
|
+
{1 => {name: "punctuation.definition.string.begin.python"}},
|
799
|
+
comment: "single quoted string",
|
800
|
+
end: "(')|(\\n)",
|
801
|
+
endCaptures:
|
802
|
+
{1 => {name: "punctuation.definition.string.end.python"},
|
803
|
+
2 => {name: "invalid.illegal.unclosed-string.python"}},
|
804
|
+
name: "string.quoted.single.single-line.python",
|
805
|
+
patterns:
|
806
|
+
[{include: "#constant_placeholder"},
|
807
|
+
{include: "#escaped_char"},
|
808
|
+
{include: "source.sql"}]},
|
809
|
+
{begin: /(''')/,
|
810
|
+
beginCaptures:
|
811
|
+
{1 => {name: "punctuation.definition.string.begin.python"}},
|
812
|
+
comment: "single quoted string",
|
813
|
+
end: "((?<=''')(')''|''')",
|
814
|
+
endCaptures:
|
815
|
+
{1 => {name: "punctuation.definition.string.end.python"},
|
816
|
+
2 => {name: "meta.empty-string.single.python"}},
|
817
|
+
name: "string.quoted.single.block.python",
|
818
|
+
patterns:
|
819
|
+
[{include: "#constant_placeholder"}, {include: "#escaped_char"}]},
|
820
|
+
{begin: /(')/,
|
821
|
+
beginCaptures:
|
822
|
+
{1 => {name: "punctuation.definition.string.begin.python"}},
|
823
|
+
comment: "single quoted string",
|
824
|
+
end: "(')|(\\n)",
|
825
|
+
endCaptures:
|
826
|
+
{1 => {name: "punctuation.definition.string.end.python"},
|
827
|
+
2 => {name: "invalid.illegal.unclosed-string.python"}},
|
828
|
+
name: "string.quoted.single.single-line.python",
|
829
|
+
patterns:
|
830
|
+
[{include: "#constant_placeholder"}, {include: "#escaped_char"}]}]},
|
831
|
+
strings:
|
832
|
+
{patterns:
|
833
|
+
[{include: "#string_quoted_double"},
|
834
|
+
{include: "#string_quoted_single"}]}},
|
835
|
+
scopeName: "source.python",
|
836
|
+
uuid: "F23DB5B2-7D08-11D9-A709-000D93B6E43C"}
|