ver 2010.02 → 2010.08
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +1 -0
- data/.yardopts +1 -1
- data/AUTHORS +2 -2
- data/CHANGELOG +1160 -0
- data/MANIFEST +212 -62
- data/README.textile +68 -9
- data/Rakefile +2 -2
- data/bin/ver +33 -8
- data/config/commands/ANTLR.rb +11 -0
- data/config/commands/ActionScript.rb +102 -0
- data/config/commands/Active4D.rb +30 -0
- data/config/commands/Ada.rb +11 -0
- data/config/commands/Ant.rb +90 -0
- data/config/commands/Apache.rb +98 -0
- data/config/commands/AppleScript.rb +169 -0
- data/config/commands/Blogging.rb +72 -0
- data/config/commands/Bulletin Board.rb +10 -0
- data/config/commands/Bundle Development.rb +83 -0
- data/config/commands/C++ Qt.rb +158 -0
- data/config/commands/C.rb +82 -0
- data/config/commands/CMake.rb +32 -0
- data/config/commands/CSS.rb +76 -0
- data/config/commands/CTags.rb +29 -0
- data/config/commands/CVS.rb +114 -0
- data/config/commands/CoffeeScript.rb +58 -0
- data/config/commands/Context Free.rb +20 -0
- data/config/commands/Cucumber.rb +94 -0
- data/config/commands/D.rb +47 -0
- data/config/commands/Darcs.rb +72 -0
- data/config/commands/Diff.rb +76 -0
- data/config/commands/Doxygen.rb +9 -0
- data/config/commands/Experimental Wiki.rb +9 -0
- data/config/commands/Experimental.rb +172 -0
- data/config/commands/F-Script.rb +13 -0
- data/config/commands/FXScript.rb +11 -0
- data/config/commands/FileMerge.rb +42 -0
- data/config/commands/Fortran.rb +58 -0
- data/config/commands/GTD2.rb +134 -0
- data/config/commands/GTDAlt.rb +225 -0
- data/config/commands/GetBundle.rb +41 -0
- data/config/commands/Go.rb +29 -0
- data/config/commands/Graphviz.rb +11 -0
- data/config/commands/Greasemonkey.rb +158 -0
- data/config/commands/Gri.rb +11 -0
- data/config/commands/Groovy Grails.rb +174 -0
- data/config/commands/Groovy.rb +66 -0
- data/config/commands/HTML.rb +206 -0
- data/config/commands/Haskell.rb +48 -0
- data/config/commands/Hotkey.rb +50 -0
- data/config/commands/Hyperlink Helper.rb +81 -0
- data/config/commands/ImageBrowser.rb +10 -0
- data/config/commands/Io.rb +11 -0
- data/config/commands/JSFL.rb +29 -0
- data/config/commands/JSON.rb +11 -0
- data/config/commands/Java.rb +45 -0
- data/config/commands/JavaDoc.rb +12 -0
- data/config/commands/JavaScript Prototype & Script.aculo.us.rb +51 -0
- data/config/commands/JavaScript YUI.rb +12 -0
- data/config/commands/JavaScript jQuery.rb +12 -0
- data/config/commands/JavaScript.rb +50 -0
- data/config/commands/LaTeX.rb +423 -0
- data/config/commands/Lisp.rb +20 -0
- data/config/commands/Logo.rb +10 -0
- data/config/commands/Logtalk.rb +34 -0
- data/config/commands/Lua.rb +29 -0
- data/config/commands/MEL.rb +20 -0
- data/config/commands/Mail.rb +73 -0
- data/config/commands/Make.rb +20 -0
- data/config/commands/Man Pages.rb +20 -0
- data/config/commands/Markdown.rb +194 -0
- data/config/commands/Math.rb +79 -0
- data/config/commands/Matlab.rb +188 -0
- data/config/commands/Maven.rb +162 -0
- data/config/commands/Mediawiki.rb +12 -0
- data/config/commands/Mercurial.rb +185 -0
- data/config/commands/MoinMoin.rb +74 -0
- data/config/commands/Movable Type.rb +68 -0
- data/config/commands/Nemerle.rb +29 -0
- data/config/commands/OCaml Experimental Completions.rb +22 -0
- data/config/commands/OCaml.rb +99 -0
- data/config/commands/Objective-C.rb +181 -0
- data/config/commands/Outlines.rb +54 -0
- data/config/commands/PHP Smarty.rb +10 -0
- data/config/commands/Pascal.rb +11 -0
- data/config/commands/Perforce.rb +102 -0
- data/config/commands/Perl.rb +78 -0
- data/config/commands/Processing.rb +11 -0
- data/config/commands/Prolog.rb +11 -0
- data/config/commands/Property List.rb +38 -0
- data/config/commands/Python Django.rb +11 -0
- data/config/commands/Python.rb +131 -0
- data/config/commands/R Console (R.app).rb +80 -0
- data/config/commands/R Console (Rdaemon).rb +414 -0
- data/config/commands/R.rb +337 -0
- data/config/commands/Ragel.rb +10 -0
- data/config/commands/Regular Expressions.rb +18 -0
- data/config/commands/Remind.rb +44 -0
- data/config/commands/Ruby RSpec.rb +40 -0
- data/config/commands/Ruby on Rails.rb +331 -0
- data/config/commands/Ruby.rb +220 -0
- data/config/commands/S5 Slide Show.rb +37 -0
- data/config/commands/SCons.rb +24 -0
- data/config/commands/SQL.rb +60 -0
- data/config/commands/SVK.rb +83 -0
- data/config/commands/SWeave.rb +63 -0
- data/config/commands/Scheme.rb +30 -0
- data/config/commands/Scilab.rb +28 -0
- data/config/commands/Setext.rb +20 -0
- data/config/commands/Shell Script.rb +59 -0
- data/config/commands/Slate.rb +9 -0
- data/config/commands/Source.rb +84 -0
- data/config/commands/Standard ML.rb +38 -0
- data/config/commands/Subversion.rb +181 -0
- data/config/commands/TODO.rb +32 -0
- data/config/commands/Tcl.rb +21 -0
- data/config/commands/TerminalMate.rb +30 -0
- data/config/commands/Text.rb +137 -0
- data/config/commands/TextMate.rb +100 -0
- data/config/commands/Textile.rb +58 -0
- data/config/commands/Thrift.rb +20 -0
- data/config/commands/Transmit.rb +34 -0
- data/config/commands/Txt2tags.rb +213 -0
- data/config/commands/Vectorscript.rb +19 -0
- data/config/commands/Widget Creator.rb +23 -0
- data/config/commands/XML.rb +29 -0
- data/config/commands/Xcode.rb +106 -0
- data/config/commands/YAML.rb +39 -0
- data/config/commands/YARD.rb +12 -0
- data/config/commands/iTerm.rb +26 -0
- data/config/commands/reStructuredText.rb +126 -0
- data/config/detect.rb +13 -1
- data/config/keymap/diakonos.rb +113 -115
- data/config/keymap/emacs.rb +6 -2
- data/config/keymap/nano.rb +104 -112
- data/config/keymap/vim.rb +329 -258
- data/config/plugin/autosave.rb +3 -6
- data/config/plugin/git.rb +18 -12
- data/config/plugin/soma.rb +1 -1
- data/config/preferences/Apache.rb +17 -17
- data/config/preferences/AppleScript.rb +5 -5
- data/config/preferences/Bundle Development.rb +10 -10
- data/config/preferences/C.rb +38 -30
- data/config/preferences/CoffeeScript.rb +28 -0
- data/config/preferences/ColdFusion.rb +6 -6
- data/config/preferences/Cucumber.rb +40 -0
- data/config/preferences/Diff.rb +4 -4
- data/config/preferences/Eiffel.rb +6 -6
- data/config/preferences/Erlang.rb +16 -16
- data/config/preferences/F-Script.rb +12 -12
- data/config/preferences/FXScript.rb +5 -5
- data/config/preferences/Fortran.rb +17 -17
- data/config/preferences/Go.rb +23 -0
- data/config/preferences/Groovy.rb +29 -0
- data/config/preferences/HTML.rb +44 -44
- data/config/preferences/Haskell.rb +14 -14
- data/config/preferences/Io.rb +11 -11
- data/config/preferences/Java.rb +8 -8
- data/config/preferences/LaTeX.rb +24 -24
- data/config/preferences/Logo.rb +6 -6
- data/config/preferences/Logtalk.rb +5 -5
- data/config/preferences/Markdown.rb +43 -0
- data/config/preferences/Maven.rb +42 -42
- data/config/preferences/Mediawiki.rb +8 -8
- data/config/preferences/Movable Type.rb +14 -14
- data/config/preferences/OCaml.rb +15 -15
- data/config/preferences/Objective-C.rb +5 -5
- data/config/preferences/PHP.rb +2564 -0
- data/config/preferences/Property List.rb +8 -8
- data/config/preferences/R.rb +5 -5
- data/config/preferences/Ruby.rb +24 -24
- data/config/preferences/Source.rb +13 -13
- data/config/preferences/Standard ML.rb +9 -9
- data/config/preferences/Tcl.rb +5 -5
- data/config/preferences/Text.rb +14 -14
- data/config/preferences/TextMate.rb +5 -5
- data/config/preferences/Textile.rb +8 -8
- data/config/preferences/YARD.rb +9 -0
- data/config/preferences/iTerm.rb +9 -9
- data/config/rc.rb +5 -2
- data/config/snippets/ASP vb.NET.rb +203 -54
- data/config/snippets/ASP.rb +51 -36
- data/config/snippets/ActionScript.rb +332 -205
- data/config/snippets/Active4D.rb +325 -256
- data/config/snippets/Ada.rb +106 -60
- data/config/snippets/Ant.rb +7 -5
- data/config/snippets/Apache.rb +24 -20
- data/config/snippets/AppleScript.rb +213 -82
- data/config/snippets/Blogging.rb +41 -18
- data/config/snippets/Bulletin Board.rb +56 -21
- data/config/snippets/Bundle Development.rb +108 -63
- data/config/snippets/C++ Qt.rb +72 -57
- data/config/snippets/C.rb +128 -100
- data/config/snippets/CMake.rb +42 -32
- data/config/snippets/CSS.rb +515 -115
- data/config/snippets/CoffeeScript.rb +85 -0
- data/config/snippets/ColdFusion.rb +2228 -1547
- data/config/snippets/Context Free.rb +35 -28
- data/config/snippets/Cucumber.rb +55 -0
- data/config/snippets/D.rb +164 -111
- data/config/snippets/DokuWiki.rb +103 -54
- data/config/snippets/Doxygen.rb +87 -40
- data/config/snippets/Eiffel.rb +121 -18
- data/config/snippets/Erlang.rb +109 -68
- data/config/snippets/F-Script.rb +30 -24
- data/config/snippets/FXScript.rb +364 -210
- data/config/snippets/Fortran.rb +462 -280
- data/config/snippets/GTDAlt.rb +10 -4
- data/config/snippets/Gettext.rb +10 -8
- data/config/snippets/Go.rb +52 -0
- data/config/snippets/Greasemonkey.rb +52 -42
- data/config/snippets/Gri.rb +12 -10
- data/config/snippets/Groovy Grails.rb +313 -0
- data/config/snippets/Groovy.rb +685 -0
- data/config/snippets/HTML.rb +325 -126
- data/config/snippets/Haskell.rb +32 -24
- data/config/snippets/Io.rb +53 -42
- data/config/snippets/Java.rb +204 -92
- data/config/snippets/JavaDoc.rb +105 -56
- data/config/snippets/JavaScript MooTools.rb +208 -13
- data/config/snippets/JavaScript Objective-J.rb +18 -15
- data/config/snippets/JavaScript Prototype & Script.aculo.us.rb +362 -107
- data/config/snippets/JavaScript YUI.rb +1245 -186
- data/config/snippets/JavaScript jQuery.rb +693 -375
- data/config/snippets/JavaScript.rb +71 -53
- data/config/snippets/LaTeX.rb +188 -0
- data/config/snippets/Lisp.rb +59 -40
- data/config/snippets/Logo.rb +12 -6
- data/config/snippets/Logtalk.rb +131 -60
- data/config/snippets/Lua.rb +43 -33
- data/config/snippets/MIPS Assembler.rb +7 -5
- data/config/snippets/Mail.rb +10 -1
- data/config/snippets/Markdown.rb +7 -0
- data/config/snippets/Matlab.rb +232 -178
- data/config/snippets/Maven.rb +6 -5
- data/config/snippets/Mediawiki.rb +43 -12
- data/config/snippets/MoinMoin.rb +50 -10
- data/config/snippets/Movable Type.rb +368 -53
- data/config/snippets/Nemerle.rb +127 -79
- data/config/snippets/OCaml Code Completion Misc.rb +1716 -72
- data/config/snippets/OCaml Code Completion Unix.rb +2128 -203
- data/config/snippets/OCaml.rb +107 -73
- data/config/snippets/ODCompletion.rb +169 -118
- data/config/snippets/Objective-C.rb +281 -193
- data/config/snippets/PHP Smarty.rb +149 -79
- data/config/snippets/PHP.rb +186 -0
- data/config/snippets/Pascal.rb +47 -33
- data/config/snippets/Perl HTML-Template.rb +33 -0
- data/config/snippets/Perl Mason.rb +50 -30
- data/config/snippets/Perl Template Toolkit.rb +25 -20
- data/config/snippets/Perl.rb +91 -72
- data/config/snippets/Processing.rb +55 -33
- data/config/snippets/Propel.rb +36 -30
- data/config/snippets/Property List.rb +57 -24
- data/config/snippets/Python Django Templates.rb +381 -95
- data/config/snippets/Python Django.rb +159 -132
- data/config/snippets/Python.rb +88 -0
- data/config/snippets/R Console (Rdaemon).rb +11 -9
- data/config/snippets/R.rb +96 -77
- data/config/snippets/Remind.rb +18 -15
- data/config/snippets/Ruby RSpec.rb +343 -238
- data/config/snippets/Ruby on Rails.rb +1116 -765
- data/config/snippets/Ruby.rb +770 -545
- data/config/snippets/S5 Slide Show.rb +32 -24
- data/config/snippets/SSH Config.rb +21 -17
- data/config/snippets/SWIG.rb +30 -18
- data/config/snippets/Scilab.rb +98 -79
- data/config/snippets/Setext.rb +10 -8
- data/config/snippets/Shell Script.rb +52 -42
- data/config/snippets/Slate.rb +62 -48
- data/config/snippets/Source.rb +24 -1
- data/config/snippets/Standard ML.rb +37 -27
- data/config/snippets/Tcl.rb +32 -26
- data/config/snippets/Text.rb +28 -15
- data/config/snippets/Textile.rb +130 -45
- data/config/snippets/Thrift.rb +22 -18
- data/config/snippets/Twiki.rb +158 -105
- data/config/snippets/Txt2tags.rb +166 -79
- data/config/snippets/Vectorscript.rb +47 -38
- data/config/snippets/Widget Creator.rb +5 -5
- data/config/snippets/XML.rb +30 -18
- data/config/snippets/YAML.rb +5 -4
- data/config/snippets/YARD.rb +93 -0
- data/config/snippets/reStructuredText.rb +25 -20
- data/config/syntax/ANTLR.rb +17 -15
- data/config/syntax/ASP vb.NET.rb +27 -24
- data/config/syntax/ASP.rb +21 -19
- data/config/syntax/ActionScript.rb +16 -16
- data/config/syntax/Active4D Config.rb +5 -5
- data/config/syntax/Active4D Library.rb +2 -2
- data/config/syntax/Active4D.rb +32 -30
- data/config/syntax/Ada.rb +13 -10
- data/config/syntax/Ant.rb +9 -7
- data/config/syntax/Apache.rb +22 -18
- data/config/syntax/AppleScript.rb +486 -192
- data/config/syntax/AsciiDoc.rb +21 -0
- data/config/syntax/BibTeX.rb +7 -7
- data/config/syntax/Blog - HTML.rb +7 -7
- data/config/syntax/Blog - Markdown.rb +6 -6
- data/config/syntax/Blog - Text.rb +2 -2
- data/config/syntax/Blog - Textile.rb +2 -2
- data/config/syntax/Bulletin Board.rb +33 -32
- data/config/syntax/C++ Qt.rb +7 -6
- data/config/syntax/C++.rb +31 -28
- data/config/syntax/C.rb +55 -51
- data/config/syntax/CMake Listfile.rb +12 -11
- data/config/syntax/CSS.rb +24 -23
- data/config/syntax/CSV.rb +3 -3
- data/config/syntax/CoffeeScript.rb +161 -0
- data/config/syntax/ColdFusion.rb +8 -8
- data/config/syntax/Context Free.rb +18 -16
- data/config/syntax/Cucumber Steps.rb +108 -0
- data/config/syntax/D.rb +70 -69
- data/config/syntax/Diff.rb +13 -10
- data/config/syntax/DokuWiki.rb +22 -18
- data/config/syntax/Doxygen.rb +1 -1
- data/config/syntax/Dylan.rb +8 -8
- data/config/syntax/Eiffel.rb +12 -12
- data/config/syntax/Erlang.rb +96 -89
- data/config/syntax/F-Script.rb +11 -9
- data/config/syntax/FXScript.rb +16 -14
- data/config/syntax/Fortran - Modern.rb +25 -24
- data/config/syntax/Fortran - Punchcard.rb +43 -40
- data/config/syntax/GTD.rb +1 -1
- data/config/syntax/GTDalt.rb +14 -11
- data/config/syntax/Gettext.rb +10 -9
- data/config/syntax/Gherkin.rb +65 -0
- data/config/syntax/Go.rb +256 -0
- data/config/syntax/Grails Server Page.rb +108 -0
- data/config/syntax/Graphviz (DOT).rb +6 -6
- data/config/syntax/Greasemonkey.rb +3 -3
- data/config/syntax/Gri.rb +12 -12
- data/config/syntax/Groovy.rb +502 -0
- data/config/syntax/HTML (ASP).rb +3 -3
- data/config/syntax/HTML (ASP.net).rb +31 -31
- data/config/syntax/HTML (Active4D).rb +19 -19
- data/config/syntax/HTML (Django).rb +6 -6
- data/config/syntax/HTML (Erlang).rb +4 -4
- data/config/syntax/HTML (Mason).rb +13 -13
- data/config/syntax/HTML (Rails).rb +5 -5
- data/config/syntax/HTML (Tcl).rb +3 -3
- data/config/syntax/HTML (Template Toolkit).rb +9 -9
- data/config/syntax/HTML.rb +27 -27
- data/config/syntax/Haskell.rb +31 -28
- data/config/syntax/Inform.rb +5 -5
- data/config/syntax/Ini.rb +4 -4
- data/config/syntax/Installer Distribution Script.rb +19 -18
- data/config/syntax/Io.rb +17 -15
- data/config/syntax/JSFL.rb +7 -6
- data/config/syntax/Java Properties.rb +3 -3
- data/config/syntax/Java Server Page (JSP).rb +5 -4
- data/config/syntax/Java.rb +40 -33
- data/config/syntax/JavaDoc.rb +24 -22
- data/config/syntax/JavaScript (Rails).rb +1 -1
- data/config/syntax/JavaScript.rb +41 -34
- data/config/syntax/Javascript YUI.rb +109 -101
- data/config/syntax/LaTeX Beamer.rb +3 -3
- data/config/syntax/LaTeX Log.rb +3 -3
- data/config/syntax/LaTeX Memoir.rb +7 -5
- data/config/syntax/LaTeX Rdaemon.rb +1 -1
- data/config/syntax/LaTeX.rb +52 -47
- data/config/syntax/Language Grammar.rb +58 -55
- data/config/syntax/Lex-Flex.rb +13 -13
- data/config/syntax/Lighttpd.rb +7 -7
- data/config/syntax/Lisp.rb +6 -5
- data/config/syntax/Literate Haskell.rb +2 -2
- data/config/syntax/Logo.rb +4 -4
- data/config/syntax/Logtalk.rb +64 -49
- data/config/syntax/Lua.rb +12 -12
- data/config/syntax/MATLAB.rb +71 -70
- data/config/syntax/MEL.rb +16 -15
- data/config/syntax/MIPS Assembler.rb +11 -11
- data/config/syntax/MacPorts Portfile.rb +16 -15
- data/config/syntax/Mail.rb +5 -4
- data/config/syntax/Makefile.rb +3 -3
- data/config/syntax/Man.rb +2 -2
- data/config/syntax/Markdown.rb +440 -0
- data/config/syntax/Maven POM.rb +17 -16
- data/config/syntax/Mediawiki.rb +46 -46
- data/config/syntax/Modula-3.rb +7 -6
- data/config/syntax/MoinMoin.rb +16 -16
- data/config/syntax/MooTools.rb +75 -65
- data/config/syntax/Movable Type (MT only).rb +18 -18
- data/config/syntax/Movable Type.rb +20 -20
- data/config/syntax/MultiMarkdown.rb +35 -0
- data/config/syntax/Nemerle.rb +12 -12
- data/config/syntax/OCaml.rb +79 -71
- data/config/syntax/OCamllex.rb +14 -14
- data/config/syntax/OCamlyacc.rb +14 -12
- data/config/syntax/Objective-C++.rb +2 -2
- data/config/syntax/Objective-C.rb +76 -70
- data/config/syntax/Objective-J.rb +30 -29
- data/config/syntax/Octave.rb +27 -27
- data/config/syntax/OpenGL.rb +4 -4
- data/config/syntax/PHP.rb +1154 -0
- data/config/syntax/Pascal.rb +8 -8
- data/config/syntax/Perl HTML-Template.rb +5 -5
- data/config/syntax/Perl.rb +80 -76
- data/config/syntax/Plain Text.rb +5 -5
- data/config/syntax/Postscript.rb +6 -6
- data/config/syntax/Processing.rb +20 -20
- data/config/syntax/Prolog.rb +2 -2
- data/config/syntax/Property List.rb +50 -47
- data/config/syntax/Prototype & Script.aculo.us (JavaScript) Bracketed.rb +15 -13
- data/config/syntax/Prototype & Script.aculo.us (JavaScript).rb +9 -8
- data/config/syntax/Python Django.rb +6 -6
- data/config/syntax/Python.rb +94 -87
- data/config/syntax/Quake Style .cfg.rb +4 -4
- data/config/syntax/R Console (Rdaemon) Plain.rb +2 -2
- data/config/syntax/R Console (Rdaemon).rb +2 -2
- data/config/syntax/R.rb +21 -20
- data/config/syntax/RSpec.rb +15 -15
- data/config/syntax/Ragel.rb +14 -13
- data/config/syntax/Rd (R Documentation).rb +4 -4
- data/config/syntax/Regular Expressions (Oniguruma).rb +11 -10
- data/config/syntax/Regular Expressions (Python).rb +9 -9
- data/config/syntax/Release Notes.rb +7 -6
- data/config/syntax/Remind.rb +19 -17
- data/config/syntax/Rez.rb +10 -9
- data/config/syntax/Ruby Haml.rb +11 -11
- data/config/syntax/Ruby on Rails.rb +26 -24
- data/config/syntax/Ruby.rb +73 -71
- data/config/syntax/S5 Slide Show.rb +9 -9
- data/config/syntax/SQL.rb +29 -27
- data/config/syntax/SSH Config.rb +4 -4
- data/config/syntax/SWIG.rb +12 -11
- data/config/syntax/SWeave.rb +8 -7
- data/config/syntax/Scheme.rb +56 -54
- data/config/syntax/Scilab.rb +7 -6
- data/config/syntax/Setext.rb +14 -13
- data/config/syntax/Shell Script (Bash).rb +42 -42
- data/config/syntax/Slate.rb +24 -19
- data/config/syntax/Smarty.rb +11 -10
- data/config/syntax/Standard ML - CM.rb +2 -2
- data/config/syntax/Standard ML.rb +26 -23
- data/config/syntax/Strings File.rb +6 -6
- data/config/syntax/TSV.rb +2 -2
- data/config/syntax/Tcl.rb +10 -9
- data/config/syntax/TeX Math.rb +7 -6
- data/config/syntax/TeX.rb +7 -7
- data/config/syntax/Textile.rb +33 -27
- data/config/syntax/Thrift.rb +37 -29
- data/config/syntax/Twiki.rb +19 -18
- data/config/syntax/Txt2tags.rb +26 -23
- data/config/syntax/Vectorscript.rb +9 -7
- data/config/syntax/XML strict.rb +6 -4
- data/config/syntax/XML.rb +55 -30
- data/config/syntax/XSL.rb +5 -5
- data/config/syntax/YAML.rb +14 -12
- data/config/syntax/camlp4.rb +5 -5
- data/config/syntax/iCalendar.rb +3 -3
- data/config/syntax/jQuery (JavaScript).rb +9 -9
- data/config/syntax/mod_perl.rb +6 -6
- data/config/syntax/qmake Project file.rb +16 -15
- data/config/syntax/reStructuredText.rb +23 -21
- data/config/syntax/svn-commit.tmp.rb +5 -5
- data/lib/ver.rb +169 -85
- data/lib/ver/action.rb +39 -30
- data/lib/ver/buffer.rb +962 -144
- data/lib/ver/buffer/frame.rb +23 -0
- data/lib/ver/buffer/invalid_trailing_whitespace.rb +17 -0
- data/lib/ver/buffer/markup_underline_link.rb +30 -0
- data/lib/ver/buffer/matching_brace.rb +22 -0
- data/lib/ver/buffer/term.rb +1 -1
- data/lib/ver/clipboard.rb +107 -0
- data/lib/ver/digraphs.rb +1373 -0
- data/lib/ver/entry.rb +54 -43
- data/lib/ver/event.rb +335 -0
- data/lib/ver/exception_view.rb +3 -1
- data/lib/ver/executor.rb +7 -7
- data/lib/ver/executor/buffer.rb +4 -4
- data/lib/ver/executor/encoding.rb +19 -0
- data/lib/ver/executor/entry.rb +9 -9
- data/lib/ver/executor/fuzzy_file_finder.rb +1 -1
- data/lib/ver/executor/label.rb +2 -0
- data/lib/ver/executor/method.rb +2 -3
- data/lib/ver/help/describe_key.rb +44 -44
- data/lib/ver/hover_completion.rb +11 -6
- data/lib/ver/keymap.rb +68 -39
- data/lib/ver/layout/paned.rb +56 -44
- data/lib/ver/layout/toplevel.rb +68 -0
- data/lib/ver/layout/vim.rb +919 -0
- data/lib/ver/major_mode.rb +49 -49
- data/lib/ver/methods.rb +22 -25
- data/lib/ver/methods/basic.rb +49 -20
- data/lib/ver/methods/bookmark.rb +33 -33
- data/lib/ver/methods/clipboard.rb +186 -49
- data/lib/ver/methods/completion.rb +5 -5
- data/lib/ver/methods/control.rb +47 -66
- data/lib/ver/methods/delete.rb +5 -122
- data/lib/ver/methods/help.rb +2 -2
- data/lib/ver/methods/insert.rb +101 -29
- data/lib/ver/methods/layout.rb +62 -64
- data/lib/ver/methods/macro.rb +45 -0
- data/lib/ver/methods/move.rb +63 -349
- data/lib/ver/methods/nano.rb +99 -71
- data/lib/ver/methods/open.rb +8 -7
- data/lib/ver/methods/preview.rb +34 -14
- data/lib/ver/methods/save.rb +194 -163
- data/lib/ver/methods/search.rb +169 -81
- data/lib/ver/methods/search_and_replace.rb +62 -49
- data/lib/ver/methods/selection.rb +26 -54
- data/lib/ver/methods/snippet.rb +79 -54
- data/lib/ver/methods/undo.rb +12 -16
- data/lib/ver/minibuffer.rb +283 -134
- data/lib/ver/minor_mode.rb +36 -47
- data/lib/ver/mode_resolving.rb +71 -0
- data/lib/ver/platform.rb +41 -0
- data/lib/ver/plist.rb +16 -4
- data/lib/ver/register.rb +86 -0
- data/lib/ver/status.rb +44 -6
- data/lib/ver/status/battery.rb +1 -1
- data/lib/ver/status/buffer_position.rb +2 -2
- data/lib/ver/status/diakonos_position.rb +3 -3
- data/lib/ver/status/encoding.rb +1 -1
- data/lib/ver/status/filename.rb +1 -1
- data/lib/ver/status/label.rb +20 -20
- data/lib/ver/status/mode.rb +1 -1
- data/lib/ver/status/nano_help.rb +3 -14
- data/lib/ver/status/nano_position.rb +6 -6
- data/lib/ver/status/percent.rb +2 -2
- data/lib/ver/status/position.rb +2 -2
- data/lib/ver/status/short_filename.rb +1 -1
- data/lib/ver/status/syntax.rb +1 -1
- data/lib/ver/struct.rb +28 -0
- data/lib/ver/syntax/processor.rb +2 -1
- data/lib/ver/text.rb +48 -520
- data/lib/ver/text/end.rb +14 -0
- data/lib/ver/text/index.rb +16 -101
- data/lib/ver/text/insert.rb +138 -0
- data/lib/ver/text/mark.rb +559 -0
- data/lib/ver/text/position.rb +240 -0
- data/lib/ver/text/range.rb +74 -0
- data/lib/ver/text/selection.rb +402 -0
- data/lib/ver/text/selection/block.rb +69 -0
- data/lib/ver/text/selection/char.rb +93 -0
- data/lib/ver/text/selection/line.rb +64 -0
- data/lib/ver/text/tag.rb +322 -0
- data/lib/ver/undo.rb +109 -34
- data/lib/ver/vendor/eval_completer.rb +184 -0
- data/lib/ver/vendor/json_store.rb +23 -0
- data/lib/ver/vendor/open3.rb +729 -0
- data/lib/ver/vendor/pathname.rb +73 -0
- data/lib/ver/vendor/textpow.rb +1 -1
- data/lib/ver/version.rb +1 -1
- data/lib/ver/widget_event.rb +9 -5
- data/lib/ver/widget_major_mode.rb +69 -23
- data/spec/helper.rb +124 -8
- data/spec/ver/action.rb +160 -46
- data/spec/ver/buffer.rb +23 -0
- data/spec/ver/clipboard.rb +92 -0
- data/spec/ver/keymap.rb +63 -61
- data/spec/ver/keymap/diakonos.rb +88 -0
- data/spec/ver/keymap/emacs.rb +65 -0
- data/spec/ver/keymap/general.rb +98 -0
- data/spec/ver/keymap/nano.rb +84 -0
- data/spec/ver/keymap/vim.rb +205 -0
- data/spec/ver/keymap/vim/changing_text.rb +489 -0
- data/spec/ver/keymap/vim/complex_changes.rb +53 -0
- data/spec/ver/keymap/vim/copying_and_moving_text.rb +258 -0
- data/spec/ver/keymap/vim/deleting_text.rb +188 -0
- data/spec/ver/keymap/vim/digraphs.rb +52 -0
- data/spec/ver/keymap/vim/external_commands.rb +21 -0
- data/spec/ver/keymap/vim/inserting_mode_keys.rb +115 -0
- data/spec/ver/keymap/vim/inserting_mode_special.rb +168 -0
- data/spec/ver/keymap/vim/inserting_text.rb +108 -0
- data/spec/ver/keymap/vim/left_right_motion.rb +120 -0
- data/spec/ver/keymap/vim/mark_motion.rb +73 -0
- data/spec/ver/keymap/vim/repeating_commands.rb +64 -0
- data/spec/ver/keymap/vim/text_object_motion.rb +137 -0
- data/spec/ver/keymap/vim/text_objects.rb +101 -0
- data/spec/ver/keymap/vim/undo_redo.rb +21 -0
- data/spec/ver/keymap/vim/up_down_motion.rb +94 -0
- data/spec/ver/keymap/vim/various_motion.rb +33 -0
- data/spec/ver/keysyms.rb +13 -0
- data/spec/ver/major_mode.rb +37 -37
- data/spec/ver/minor_mode.rb +21 -20
- data/spec/ver/plugin/smart_autoindent.rb +2 -2
- data/spec/ver/text/index.rb +122 -0
- data/spec/ver/text/insert.rb +299 -0
- data/spec/ver/text/mark.rb +94 -0
- data/spec/ver/text/range.rb +71 -0
- data/spec/ver/text/selection.rb +315 -0
- data/spec/ver/text/tag.rb +93 -0
- data/spec/ver/undo.rb +133 -0
- data/spec/ver/undo/record_sanitize.rb +85 -0
- data/spec/ver/vendor/eval_completer.rb +91 -0
- data/spec/ver/widget_major_mode.rb +4 -3
- data/ver.gemspec +8 -8
- metadata +234 -72
- data/.todo +0 -102
- data/ROADMAP.textile +0 -187
- data/config/snippets/ANTLR.rb +0 -3
- data/config/snippets/Bison.rb +0 -3
- data/config/snippets/CTags.rb +0 -3
- data/config/snippets/CVS.rb +0 -3
- data/config/snippets/Darcs.rb +0 -3
- data/config/snippets/Diff.rb +0 -3
- data/config/snippets/Dylan.rb +0 -3
- data/config/snippets/Experimental Wiki.rb +0 -3
- data/config/snippets/Experimental.rb +0 -3
- data/config/snippets/FileMerge.rb +0 -3
- data/config/snippets/GTD2.rb +0 -3
- data/config/snippets/GetBundle.rb +0 -3
- data/config/snippets/Graphviz.rb +0 -3
- data/config/snippets/Hotkey.rb +0 -3
- data/config/snippets/Hyperlink Helper.rb +0 -3
- data/config/snippets/ImageBrowser.rb +0 -3
- data/config/snippets/Inform.rb +0 -3
- data/config/snippets/Ini.rb +0 -3
- data/config/snippets/Installer.rb +0 -3
- data/config/snippets/JSFL.rb +0 -3
- data/config/snippets/JSON.rb +0 -3
- data/config/snippets/Lex-Flex.rb +0 -3
- data/config/snippets/Lighttpd.rb +0 -3
- data/config/snippets/MEL.rb +0 -3
- data/config/snippets/MacPorts.rb +0 -3
- data/config/snippets/Make.rb +0 -3
- data/config/snippets/Man Pages.rb +0 -3
- data/config/snippets/Math.rb +0 -3
- data/config/snippets/Mercurial.rb +0 -3
- data/config/snippets/Modula.rb +0 -3
- data/config/snippets/Navigation.rb +0 -3
- data/config/snippets/OCaml Experimental Completions.rb +0 -3
- data/config/snippets/OpenGL.rb +0 -3
- data/config/snippets/Outlines.rb +0 -3
- data/config/snippets/Perforce.rb +0 -3
- data/config/snippets/Perl HTML::Template.rb +0 -27
- data/config/snippets/Postscript.rb +0 -3
- data/config/snippets/Prolog.rb +0 -3
- data/config/snippets/Quake.rb +0 -3
- data/config/snippets/R Console (R.app).rb +0 -3
- data/config/snippets/Ragel.rb +0 -3
- data/config/snippets/Regular Expressions.rb +0 -3
- data/config/snippets/Rez.rb +0 -3
- data/config/snippets/Ruby Haml.rb +0 -3
- data/config/snippets/SCons.rb +0 -3
- data/config/snippets/SQL.rb +0 -3
- data/config/snippets/SVK.rb +0 -3
- data/config/snippets/SWeave.rb +0 -3
- data/config/snippets/Scheme.rb +0 -3
- data/config/snippets/Subversion.rb +0 -3
- data/config/snippets/TODO.rb +0 -3
- data/config/snippets/Tabular.rb +0 -3
- data/config/snippets/TerminalMate.rb +0 -3
- data/config/snippets/TextMate.rb +0 -3
- data/config/snippets/Transmit.rb +0 -3
- data/config/snippets/Xcode.rb +0 -3
- data/config/snippets/iCalendar.rb +0 -3
- data/config/snippets/iTerm.rb +0 -3
- data/lib/ver/keysyms.rb +0 -104
- data/spec/ver/methods/move.rb +0 -150
@@ -2,8 +2,8 @@
|
|
2
2
|
|
3
3
|
{comment:
|
4
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: /(
|
5
|
+
foldingStartMarker: /(?<_1>\{[^\}]*$|\([^\)]*$|<%)/,
|
6
|
+
foldingStopMarker: /(?<_1>^[^\{]*\}|^\s*\)|%>)/,
|
7
7
|
keyEquivalent: "^~J",
|
8
8
|
name: "Prototype & Script.aculo.us (JavaScript) Bracketed",
|
9
9
|
patterns:
|
@@ -39,25 +39,25 @@
|
|
39
39
|
name: "comment.block.conditional.js",
|
40
40
|
patterns: [{include: "$base"}]},
|
41
41
|
{captures: {1 => {name: "punctuation.definition.keyword.js"}},
|
42
|
-
match: /(
|
42
|
+
match: /(?<_1>@)(?<_2>if|elif|else|end)/,
|
43
43
|
name: "keyword.control.conditional.js"},
|
44
44
|
{captures: {1 => {name: "punctuation.definition.keyword.js"}},
|
45
|
-
match: /(
|
45
|
+
match: /(?<_1>@)(?<_2>cc_on|set)/,
|
46
46
|
name: "keyword.operator.conditional.js"},
|
47
47
|
{captures: {1 => {name: "punctuation.definition.variable.js"}},
|
48
48
|
match:
|
49
|
-
/(
|
49
|
+
/(?<_1>@)(?<_2>_win32|_win16|_mac|_alpha|_x86|_mc680x0|_PowerPC|_jscript_build|_jscript_version|_jscript|_debug|_fast|[a-zA-Z]\w+)/,
|
50
50
|
name: "variable.other.conditional.js"}]},
|
51
51
|
:"round-brackets" =>
|
52
52
|
{patterns:
|
53
|
-
[{begin: /(?<=\))\s*+(
|
53
|
+
[{begin: /(?<=\))\s*+(?<_1>\{)/,
|
54
54
|
captures:
|
55
55
|
{1 => {name: "punctuation.section.function.js.prototype"},
|
56
56
|
2 => {name: "punctuation.separator.objects.js.prototype"}},
|
57
57
|
end: "(\\})(,)?\\s*",
|
58
58
|
name: "meta.group.braces.curly.function.js.prototype",
|
59
59
|
patterns: [{include: "$base"}]},
|
60
|
-
{begin: /(
|
60
|
+
{begin: /(?<_1>\{)/,
|
61
61
|
captures:
|
62
62
|
{1 => {name: "punctuation.section.scope.js"},
|
63
63
|
2 => {name: "punctuation.separator.objects.js.prototype"}},
|
@@ -66,32 +66,34 @@
|
|
66
66
|
patterns:
|
67
67
|
[{captures:
|
68
68
|
{1 => {name: "invalid.illegal.delimiter.object.comma.js"}},
|
69
|
-
match: /(
|
69
|
+
match: /(?<_1>,)\s*+(?=\})/},
|
70
70
|
{captures:
|
71
71
|
{1 => {name: "string.quoted.double.js.prototype"},
|
72
72
|
2 => {name: "punctuation.definition.string.js.prototype"},
|
73
73
|
3 => {name: "constant.other.object.key.js.prototype"},
|
74
74
|
4 => {name: "punctuation.definition.string.js.prototype"},
|
75
75
|
5 => {name: "punctuation.separator.objects.js.prototype"}},
|
76
|
-
match:
|
76
|
+
match:
|
77
|
+
/(?<_1>(?<_2>")(?<_3>[^"]*)(?<_4>")\s*)(?<_5>:)\s*+(?!function)/},
|
77
78
|
{captures:
|
78
79
|
{1 => {name: "string.quoted.single.js.prototype"},
|
79
80
|
2 => {name: "punctuation.definition.string.js.prototype"},
|
80
81
|
3 => {name: "constant.other.object.key.js.prototype"},
|
81
82
|
4 => {name: "punctuation.definition.string.js.prototype"},
|
82
83
|
5 => {name: "punctuation.separator.objects.js.prototype"}},
|
83
|
-
match:
|
84
|
+
match:
|
85
|
+
/(?<_1>(?<_2>')(?<_3>[^']*)(?<_4>')\s*)(?<_5>:)\s*+(?!function)/},
|
84
86
|
{captures:
|
85
87
|
{1 => {name: "constant.other.object.key.js.prototype"},
|
86
88
|
2 => {name: "punctuation.separator.objects.js.prototype"}},
|
87
|
-
match: /\b(
|
89
|
+
match: /\b(?<_1>\w+\b\s*)(?<_2>:)\s*+(?!function)/},
|
88
90
|
{include: "$base"}]},
|
89
|
-
{begin: /(
|
91
|
+
{begin: /(?<_1>\()(?!\))/,
|
90
92
|
captures: {1 => {name: "punctuation.section.scope.js"}},
|
91
93
|
end: "(\\))",
|
92
94
|
name: "meta.group.braces.round",
|
93
95
|
patterns: [{include: "$base"}]},
|
94
|
-
{begin: /(
|
96
|
+
{begin: /(?<_1>\[)(?!\])/,
|
95
97
|
captures: {1 => {name: "punctuation.section.scope.js"}},
|
96
98
|
end: "(\\])",
|
97
99
|
name: "meta.group.braces.square",
|
@@ -2,26 +2,26 @@
|
|
2
2
|
|
3
3
|
{comment:
|
4
4
|
"Prototype and Scriptaculous Javascript Frameworks. By Justin Palmer, Thomas Aylott & Martin Ström",
|
5
|
-
foldingStartMarker: /(
|
6
|
-
foldingStopMarker: /(
|
5
|
+
foldingStartMarker: /(?<_1>^.*{[^}]*$|^.*\([^\)]*$|^.*\/\*(?!.*\*\/).*$)/,
|
6
|
+
foldingStopMarker: /(?<_1>^\s*\}|^\s*\)|^(?!.*\/\*).*\*\/)/,
|
7
7
|
keyEquivalent: "^~J",
|
8
8
|
name: "Prototype & Script.aculo.us (JavaScript)",
|
9
9
|
patterns:
|
10
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/,
|
11
|
+
/\b(?<_1>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
12
|
name: "support.class.prototype.js"},
|
13
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/,
|
14
|
+
/\b(?<_1>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
15
|
name: "support.function.js.prototype"},
|
16
16
|
{include: "source.js"},
|
17
17
|
{match:
|
18
|
-
/((?<=var\s)\b[a-zA-Z]\w*\b|\b[a-zA-Z]\w*\b(?=(
|
18
|
+
/(?<_1>(?<=var\s)\b[a-zA-Z]\w*\b|\b[a-zA-Z]\w*\b(?=(?<_2>\[|\s*(?<_3>&|\*|\-\-|\-|\+\+|\+|~|===|==|=|!=|!==|<=|>=|<<=|>>=|>>>=|<>|<|>|!|&&|\|\||\?\:|\*=|\/=|%=|\+=|\-=|&=|\^=))))/,
|
19
19
|
name: "variable.other.js.prototype"},
|
20
20
|
{include: "#leading-space"}],
|
21
21
|
repository:
|
22
22
|
{:"leading-space" =>
|
23
23
|
{patterns:
|
24
|
-
[{begin: /^(?=(
|
24
|
+
[{begin: /^(?=(?<_1>\t| ))/,
|
25
25
|
end: "(?=[^\\t\\s])",
|
26
26
|
name: "meta.leading-tabs",
|
27
27
|
patterns:
|
@@ -37,7 +37,8 @@
|
|
37
37
|
7 => {name: "meta.odd-tab.group7.spaces"},
|
38
38
|
8 => {name: "meta.even-tab.group8.spaces"},
|
39
39
|
9 => {name: "meta.odd-tab.group9.spaces"}},
|
40
|
-
match:
|
40
|
+
match:
|
41
|
+
/(?<_1> )(?<_2> )?(?<_3> )?(?<_4> )?(?<_5> )?(?<_6> )?(?<_7> )?(?<_8> )?(?<_9> )?(?<_10> )?(?<_11> )?/},
|
41
42
|
{captures:
|
42
43
|
{1 => {name: "meta.odd-tab.group1.tab"},
|
43
44
|
10 => {name: "meta.even-tab.group10.tab"},
|
@@ -51,6 +52,6 @@
|
|
51
52
|
8 => {name: "meta.even-tab.group8.tab"},
|
52
53
|
9 => {name: "meta.odd-tab.group9.tab"}},
|
53
54
|
match:
|
54
|
-
/(
|
55
|
+
/(?<_1>\t)(?<_2>\t)?(?<_3>\t)?(?<_4>\t)?(?<_5>\t)?(?<_6>\t)?(?<_7>\t)?(?<_8>\t)?(?<_9>\t)?(?<_10>\t)?(?<_11>\t)?/}]}]}},
|
55
56
|
scopeName: "source.js.prototype",
|
56
57
|
uuid: "0BD60463-DDF6-436F-9295-89DEF577FF30"}
|
@@ -2,23 +2,23 @@
|
|
2
2
|
|
3
3
|
{fileTypes: [],
|
4
4
|
foldingStartMarker:
|
5
|
-
/^\s*(def|class)\s+([.a-zA-Z0-9_ b]+)\s*(
|
5
|
+
/^\s*(?<_1>def|class)\s+(?<_2>[.a-zA-Z0-9_ b]+)\s*(?<_3>\((?<_4>.*)\))?\s*:|\{\s*$|\(\s*$|\[\s*$/,
|
6
6
|
foldingStopMarker: /^\s*$|^\s*\}|^\s*\]|^\s*\)/,
|
7
7
|
keyEquivalent: "^~P",
|
8
8
|
name: "Python Django",
|
9
9
|
patterns:
|
10
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)/,
|
11
|
+
/(?<_1>meta|models)\.(?<_2>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
12
|
name: "support.type.django.model"},
|
13
|
-
{match: /django(
|
13
|
+
{match: /django(?<_1>\.[a-z]+){1,} /, name: "support.other.django.module"},
|
14
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)/,
|
15
|
+
/(?<_1>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
16
|
name: "variable.other.django.settings"},
|
17
17
|
{match:
|
18
|
-
/(get_list_or_404|get_object_or_404|load_and_render|loader|render_to_response)/,
|
18
|
+
/(?<_1>get_list_or_404|get_object_or_404|load_and_render|loader|render_to_response)/,
|
19
19
|
name: "support.function.django.view"},
|
20
20
|
{match:
|
21
|
-
/[a-z_]+\.get_(object|list|iterator|count|values|values_iterator|in_bulk)/,
|
21
|
+
/[a-z_]+\.get_(?<_1>object|list|iterator|count|values|values_iterator|in_bulk)/,
|
22
22
|
name: "support.function.django.model"},
|
23
23
|
{include: "source.python"}],
|
24
24
|
scopeName: "source.python.django",
|
data/config/syntax/Python.rb
CHANGED
@@ -14,65 +14,66 @@
|
|
14
14
|
"SConscript"],
|
15
15
|
firstLineMatch: "^#!/.*\\bpython\\b",
|
16
16
|
foldingStartMarker:
|
17
|
-
/^\s*(def|class)\s+([.a-zA-Z0-9_ <]+)\s*(
|
17
|
+
/^\s*(?<_1>def|class)\s+(?<_2>[.a-zA-Z0-9_ <]+)\s*(?<_3>\((?<_4>.*)\))?\s*:|\{\s*$|\(\s*$|\[\s*$|^\s*"""(?=.)(?!.*""")/,
|
18
18
|
foldingStopMarker: /^\s*$|^\s*\}|^\s*\]|^\s*\)|^\s*"""\s*$/,
|
19
|
-
keyEquivalent:
|
19
|
+
keyEquivalent: "^~P",
|
20
20
|
name: "Python",
|
21
21
|
patterns:
|
22
22
|
[{captures: {1 => {name: "punctuation.definition.comment.python"}},
|
23
|
-
match: /(
|
23
|
+
match: /(?<_1>#).*$\n?/,
|
24
24
|
name: "comment.line.number-sign.python"},
|
25
|
-
{match: /\b(?i:(0x\h*)L)/,
|
25
|
+
{match: /\b(?i:(?<_1>0x\h*)L)/,
|
26
26
|
name: "constant.numeric.integer.long.hexadecimal.python"},
|
27
|
-
{match: /\b(?i:(0x\h*))/,
|
27
|
+
{match: /\b(?i:(?<_1>0x\h*))/,
|
28
28
|
name: "constant.numeric.integer.hexadecimal.python"},
|
29
|
-
{match: /\b(?i:(0[0-7]+)L)/,
|
29
|
+
{match: /\b(?i:(?<_1>0[0-7]+)L)/,
|
30
30
|
name: "constant.numeric.integer.long.octal.python"},
|
31
|
-
{match: /\b(0[0-7]+)/, name: "constant.numeric.integer.octal.python"},
|
31
|
+
{match: /\b(?<_1>0[0-7]+)/, name: "constant.numeric.integer.octal.python"},
|
32
32
|
{match:
|
33
|
-
/\b(?i:(((
|
33
|
+
/\b(?i:(?<_1>(?<_2>(?<_3>\d+(?<_4>\.(?=[^a-zA-Z_])\d*)?|(?<=[^0-9a-zA-Z_])\.\d+)(?<_5>e[\-\+]?\d+)?))J)/,
|
34
34
|
name: "constant.numeric.complex.python"},
|
35
|
-
{match: /\b(?i:(
|
35
|
+
{match: /\b(?i:(?<_1>\d+\.\d*(?<_2>e[\-\+]?\d+)?))(?=[^a-zA-Z_])/,
|
36
36
|
name: "constant.numeric.float.python"},
|
37
|
-
{match: /(?<=[^0-9a-zA-Z_])(?i:(
|
37
|
+
{match: /(?<=[^0-9a-zA-Z_])(?i:(?<_1>\.\d+(?<_2>e[\-\+]?\d+)?))/,
|
38
38
|
name: "constant.numeric.float.python"},
|
39
|
-
{match: /\b(?i:(
|
40
|
-
|
39
|
+
{match: /\b(?i:(?<_1>\d+e[\-\+]?\d+))/,
|
40
|
+
name: "constant.numeric.float.python"},
|
41
|
+
{match: /\b(?i:(?<_1>[1-9]+[0-9]*|0)L)/,
|
41
42
|
name: "constant.numeric.integer.long.decimal.python"},
|
42
|
-
{match: /\b([1-9]+[0-9]*|0)/,
|
43
|
+
{match: /\b(?<_1>[1-9]+[0-9]*|0)/,
|
43
44
|
name: "constant.numeric.integer.decimal.python"},
|
44
45
|
{captures: {1 => {name: "storage.modifier.global.python"}},
|
45
|
-
match: /\b(global)\b/},
|
46
|
+
match: /\b(?<_1>global)\b/},
|
46
47
|
{captures:
|
47
48
|
{1 => {name: "keyword.control.import.python"},
|
48
49
|
2 => {name: "keyword.control.import.from.python"}},
|
49
|
-
match: /\b(?:(import)|(from))\b/},
|
50
|
+
match: /\b(?:(?<_1>import)|(?<_2>from))\b/},
|
50
51
|
{comment: "keywords that delimit flow blocks",
|
51
|
-
match: /\b(elif|else|except|finally|for|if|try|while|with)\b/,
|
52
|
+
match: /\b(?<_1>elif|else|except|finally|for|if|try|while|with)\b/,
|
52
53
|
name: "keyword.control.flow.python"},
|
53
54
|
{comment: "keywords that alter flow from within a block",
|
54
|
-
match: /\b(break|continue|pass|raise|return|yield)\b/,
|
55
|
+
match: /\b(?<_1>break|continue|pass|raise|return|yield)\b/,
|
55
56
|
name: "keyword.control.flow.python"},
|
56
57
|
{comment: "keyword operators that evaluate to True or False",
|
57
|
-
match: /\b(and|in|is|not|or)\b/,
|
58
|
+
match: /\b(?<_1>and|in|is|not|or)\b/,
|
58
59
|
name: "keyword.operator.logical.python"},
|
59
60
|
{captures: {1 => {name: "keyword.other.python"}},
|
60
61
|
comment: "keywords that haven't fit into other groups (yet).",
|
61
|
-
match: /\b(as|assert|del|exec|print)\b/},
|
62
|
+
match: /\b(?<_1>as|assert|del|exec|print)\b/},
|
62
63
|
{match: /<\=|>\=|\=\=|<|>|<>/, name: "keyword.operator.comparison.python"},
|
63
64
|
{match: /\+\=|-\=|\*\=|\/\=|\/\/\=|%\=|&\=|\|\=|\^\=|>>\=|<<\=|\*\*\=/,
|
64
65
|
name: "keyword.operator.assignment.augmented.python"},
|
65
66
|
{match: /\+|\-|\*|\*\*|\/|\/\/|%|<<|>>|&|\||\^|~/,
|
66
67
|
name: "keyword.operator.arithmetic.python"},
|
67
68
|
{match: /\=/, name: "keyword.operator.assignment.python"},
|
68
|
-
{begin: /^\s*(class)\s+(?=[a-zA-Z_][a-zA-Z_0-9]*\s*\:)/,
|
69
|
+
{begin: /^\s*(?<_1>class)\s+(?=[a-zA-Z_][a-zA-Z_0-9]*\s*\:)/,
|
69
70
|
beginCaptures: {1 => {name: "storage.type.class.python"}},
|
70
71
|
contentName: "entity.name.type.class.python",
|
71
72
|
end: "\\s*(:)",
|
72
73
|
endCaptures: {1 => {name: "punctuation.section.class.begin.python"}},
|
73
74
|
name: "meta.class.old-style.python",
|
74
75
|
patterns: [{include: "#entity_name_class"}]},
|
75
|
-
{begin: /^\s*(class)\s+(?=[a-zA-Z_][a-zA-Z_0-9]*\s*\()/,
|
76
|
+
{begin: /^\s*(?<_1>class)\s+(?=[a-zA-Z_][a-zA-Z_0-9]*\s*\()/,
|
76
77
|
beginCaptures: {1 => {name: "storage.type.class.python"}},
|
77
78
|
end: "(\\))\\s*(?:(\\:)|(.*$\\n?))",
|
78
79
|
endCaptures:
|
@@ -85,7 +86,7 @@
|
|
85
86
|
contentName: "entity.name.type.class.python",
|
86
87
|
end: "(?![A-Za-z0-9_])",
|
87
88
|
patterns: [{include: "#entity_name_class"}]},
|
88
|
-
{begin: /(
|
89
|
+
{begin: /(?<_1>\()/,
|
89
90
|
beginCaptures:
|
90
91
|
{1 => {name: "punctuation.definition.inheritance.begin.python"}},
|
91
92
|
contentName: "meta.class.inheritance.python",
|
@@ -97,7 +98,7 @@
|
|
97
98
|
endCaptures:
|
98
99
|
{1 => {name: "punctuation.separator.inheritance.python"}},
|
99
100
|
patterns: [{include: "$self"}]}]}]},
|
100
|
-
{begin: /^\s*(class)\s+(?=[a-zA-Z_][a-zA-Z_0-9])/,
|
101
|
+
{begin: /^\s*(?<_1>class)\s+(?=[a-zA-Z_][a-zA-Z_0-9])/,
|
101
102
|
beginCaptures: {1 => {name: "storage.type.class.python"}},
|
102
103
|
end: "(\\()|\\s*($\\n?|#.*$\\n?)",
|
103
104
|
endCaptures:
|
@@ -109,7 +110,7 @@
|
|
109
110
|
contentName: "entity.name.type.class.python",
|
110
111
|
end: "(?![A-Za-z0-9_])",
|
111
112
|
patterns: [{include: "#entity_name_function"}]}]},
|
112
|
-
{begin: /^\s*(def)\s+(?=[A-Za-z_][A-Za-z0-9_]*\s*\()/,
|
113
|
+
{begin: /^\s*(?<_1>def)\s+(?=[A-Za-z_][A-Za-z0-9_]*\s*\()/,
|
113
114
|
beginCaptures: {1 => {name: "storage.type.function.python"}},
|
114
115
|
end: "(\\))\\s*(?:(\\:)|(.*$\\n?))",
|
115
116
|
endCaptures:
|
@@ -122,7 +123,7 @@
|
|
122
123
|
contentName: "entity.name.function.python",
|
123
124
|
end: "(?![A-Za-z0-9_])",
|
124
125
|
patterns: [{include: "#entity_name_function"}]},
|
125
|
-
{begin: /(
|
126
|
+
{begin: /(?<_1>\()/,
|
126
127
|
beginCaptures:
|
127
128
|
{1 => {name: "punctuation.definition.parameters.begin.python"}},
|
128
129
|
contentName: "meta.function.parameters.python",
|
@@ -132,8 +133,9 @@
|
|
132
133
|
{captures:
|
133
134
|
{1 => {name: "variable.parameter.function.python"},
|
134
135
|
2 => {name: "punctuation.separator.parameters.python"}},
|
135
|
-
match:
|
136
|
-
|
136
|
+
match:
|
137
|
+
/\b(?<_1>[a-zA-Z_][a-zA-Z_0-9]*)\s*(?:(?<_2>,)|(?=[\n\)]))/}]}]},
|
138
|
+
{begin: /^\s*(?<_1>def)\s+(?=[A-Za-z_][A-Za-z0-9_]*)/,
|
137
139
|
beginCaptures: {1 => {name: "storage.type.function.python"}},
|
138
140
|
end: "(\\()|\\s*($\\n?|#.*$\\n?)",
|
139
141
|
endCaptures:
|
@@ -145,7 +147,7 @@
|
|
145
147
|
contentName: "entity.name.function.python",
|
146
148
|
end: "(?![A-Za-z0-9_])",
|
147
149
|
patterns: [{include: "#entity_name_function"}]}]},
|
148
|
-
{begin: /(lambda)(?=\s+)/,
|
150
|
+
{begin: /(?<_1>lambda)(?=\s+)/,
|
149
151
|
beginCaptures: {1 => {name: "storage.type.function.inline.python"}},
|
150
152
|
end: "(\\:)",
|
151
153
|
endCaptures:
|
@@ -162,7 +164,8 @@
|
|
162
164
|
{captures:
|
163
165
|
{1 => {name: "variable.parameter.function.python"},
|
164
166
|
2 => {name: "punctuation.separator.parameters.python"}},
|
165
|
-
match:
|
167
|
+
match:
|
168
|
+
/\b(?<_1>[a-zA-Z_][a-zA-Z_0-9]*)\s*(?:(?<_2>,)|(?=[\n\)\:]))/}]}]},
|
166
169
|
{begin:
|
167
170
|
/^\s*(?=@\s*[A-Za-z_][A-Za-z0-9_]*(?:\.[a-zA-Z_][a-zA-Z_0-9]*)*\s*\()/,
|
168
171
|
comment: "a decorator may be a function call which returns a decorator.",
|
@@ -171,12 +174,12 @@
|
|
171
174
|
name: "meta.function.decorator.python",
|
172
175
|
patterns:
|
173
176
|
[{begin:
|
174
|
-
/(?=(
|
177
|
+
/(?=(?<_1>@)\s*[A-Za-z_][A-Za-z0-9_]*(?:\.[A-Za-z_][A-Za-z0-9_]*)*\s*\()/,
|
175
178
|
beginCaptures: {1 => {name: "punctuation.definition.decorator.python"}},
|
176
179
|
contentName: "entity.name.function.decorator.python",
|
177
180
|
end: "(?=\\s*\\()",
|
178
181
|
patterns: [{include: "#dotted_name"}]},
|
179
|
-
{begin: /(
|
182
|
+
{begin: /(?<_1>\()/,
|
180
183
|
beginCaptures:
|
181
184
|
{1 => {name: "punctuation.definition.arguments.begin.python"}},
|
182
185
|
contentName: "meta.function.decorator.arguments.python",
|
@@ -187,11 +190,12 @@
|
|
187
190
|
end: "(?=\\s|$\\n?|#)",
|
188
191
|
name: "meta.function.decorator.python",
|
189
192
|
patterns:
|
190
|
-
[{begin:
|
193
|
+
[{begin:
|
194
|
+
/(?=(?<_1>@)\s*[A-Za-z_][A-Za-z0-9_]*(?<_2>\.[A-Za-z_][A-Za-z0-9_]*)*)/,
|
191
195
|
beginCaptures: {1 => {name: "punctuation.definition.decorator.python"}},
|
192
196
|
end: "(?=\\s|$\\n?|#)",
|
193
197
|
patterns: [{include: "#dotted_name"}]}]},
|
194
|
-
{begin: /(?<=\)|\])\s*(
|
198
|
+
{begin: /(?<=\)|\])\s*(?<_1>\()/,
|
195
199
|
beginCaptures:
|
196
200
|
{1 => {name: "punctuation.definition.arguments.begin.python"}},
|
197
201
|
contentName: "meta.function-call.arguments.python",
|
@@ -207,7 +211,7 @@
|
|
207
211
|
[{begin: /(?=[A-Za-z_][A-Za-z0-9_]*(?:\.[A-Za-z_][A-Za-z0-9_]*)*\s*\()/,
|
208
212
|
end: "(?=\\s*\\()",
|
209
213
|
patterns: [{include: "#dotted_name"}]},
|
210
|
-
{begin: /(
|
214
|
+
{begin: /(?<_1>\()/,
|
211
215
|
beginCaptures:
|
212
216
|
{1 => {name: "punctuation.definition.arguments.begin.python"}},
|
213
217
|
contentName: "meta.function-call.arguments.python",
|
@@ -221,13 +225,13 @@
|
|
221
225
|
[{begin: /(?=[A-Za-z_][A-Za-z0-9_]*(?:\.[A-Za-z_][A-Za-z0-9_]*)*\s*\[)/,
|
222
226
|
end: "(?=\\s*\\[)",
|
223
227
|
patterns: [{include: "#dotted_name"}]},
|
224
|
-
{begin: /(
|
228
|
+
{begin: /(?<_1>\[)/,
|
225
229
|
beginCaptures:
|
226
230
|
{1 => {name: "punctuation.definition.arguments.begin.python"}},
|
227
231
|
contentName: "meta.item-access.arguments.python",
|
228
232
|
end: "(?=\\])",
|
229
233
|
patterns: [{include: "$self"}]}]},
|
230
|
-
{begin: /(?<=\)|\])\s*(
|
234
|
+
{begin: /(?<=\)|\])\s*(?<_1>\[)/,
|
231
235
|
beginCaptures:
|
232
236
|
{1 => {name: "punctuation.definition.arguments.begin.python"}},
|
233
237
|
contentName: "meta.item-access.arguments.python",
|
@@ -236,23 +240,23 @@
|
|
236
240
|
name: "meta.item-access.python",
|
237
241
|
patterns: [{include: "$self"}]},
|
238
242
|
{captures: {1 => {name: "storage.type.function.python"}},
|
239
|
-
match: /\b(def|lambda)\b/},
|
243
|
+
match: /\b(?<_1>def|lambda)\b/},
|
240
244
|
{captures: {1 => {name: "storage.type.class.python"}},
|
241
|
-
match: /\b(class)\b/},
|
245
|
+
match: /\b(?<_1>class)\b/},
|
242
246
|
{include: "#line_continuation"},
|
243
247
|
{include: "#language_variables"},
|
244
|
-
{match: /\b(None|True|False|Ellipsis|NotImplemented)\b/,
|
248
|
+
{match: /\b(?<_1>None|True|False|Ellipsis|NotImplemented)\b/,
|
245
249
|
name: "constant.language.python"},
|
246
250
|
{include: "#string_quoted_single"},
|
247
251
|
{include: "#string_quoted_double"},
|
248
252
|
{include: "#dotted_name"},
|
249
|
-
{begin: /(
|
253
|
+
{begin: /(?<_1>\()/, end: "(\\))", patterns: [{include: "$self"}]},
|
250
254
|
{captures:
|
251
255
|
{1 => {name: "punctuation.definition.list.begin.python"},
|
252
256
|
2 => {name: "meta.empty-list.python"},
|
253
257
|
3 => {name: "punctuation.definition.list.end.python"}},
|
254
|
-
match: /(
|
255
|
-
{begin: /(
|
258
|
+
match: /(?<_1>\[)(?<_2>\s*(?<_3>\]))\b/},
|
259
|
+
{begin: /(?<_1>\[)/,
|
256
260
|
beginCaptures: {1 => {name: "punctuation.definition.list.begin.python"}},
|
257
261
|
end: "(\\])",
|
258
262
|
endCaptures: {1 => {name: "punctuation.definition.list.end.python"}},
|
@@ -267,15 +271,15 @@
|
|
267
271
|
{1 => {name: "punctuation.definition.tuple.begin.python"},
|
268
272
|
2 => {name: "meta.empty-tuple.python"},
|
269
273
|
3 => {name: "punctuation.definition.tuple.end.python"}},
|
270
|
-
match: /(
|
274
|
+
match: /(?<_1>\()(?<_2>\s*(?<_3>\)))/,
|
271
275
|
name: "meta.structure.tuple.python"},
|
272
276
|
{captures:
|
273
277
|
{1 => {name: "punctuation.definition.dictionary.begin.python"},
|
274
278
|
2 => {name: "meta.empty-dictionary.python"},
|
275
279
|
3 => {name: "punctuation.definition.dictionary.end.python"}},
|
276
|
-
match: /(
|
280
|
+
match: /(?<_1>\{)(?<_2>\s*(?<_3>\}))/,
|
277
281
|
name: "meta.structure.dictionary.python"},
|
278
|
-
{begin: /(
|
282
|
+
{begin: /(?<_1>\{)/,
|
279
283
|
beginCaptures:
|
280
284
|
{1 => {name: "punctuation.definition.dictionary.begin.python"}},
|
281
285
|
end: "(\\})",
|
@@ -296,11 +300,11 @@
|
|
296
300
|
repository:
|
297
301
|
{builtin_exceptions:
|
298
302
|
{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/,
|
303
|
+
/(?x)\b(?<_1>(?<_2>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(?<_3>Translate|Encode|Decode)?|Value|ZeroDivision)Error|(?<_4>Deprecation|Future|Overflow|PendingDeprecation|Runtime|Syntax|User)?Warning|KeyboardInterrupt|NotImplemented|StopIteration|SystemExit|(?<_5>Base)?Exception)\b/,
|
300
304
|
name: "support.type.exception.python"},
|
301
305
|
builtin_functions:
|
302
306
|
{match:
|
303
|
-
/(?x)\b(
|
307
|
+
/(?x)\b(?<_1>
|
304
308
|
__import__|all|abs|any|apply|callable|chr|cmp|coerce|compile|delattr|dir|
|
305
309
|
divmod|eval|execfile|filter|getattr|globals|hasattr|hash|hex|id|
|
306
310
|
input|intern|isinstance|issubclass|iter|len|locals|map|max|min|oct|
|
@@ -310,7 +314,7 @@
|
|
310
314
|
name: "support.function.builtin.python"},
|
311
315
|
builtin_types:
|
312
316
|
{match:
|
313
|
-
/(?x)\b(
|
317
|
+
/(?x)\b(?<_1>
|
314
318
|
basestring|bool|buffer|classmethod|complex|dict|enumerate|file|
|
315
319
|
float|frozenset|int|list|long|object|open|property|reversed|set|
|
316
320
|
slice|staticmethod|str|super|tuple|type|unicode|xrange
|
@@ -318,7 +322,7 @@
|
|
318
322
|
name: "support.type.python"},
|
319
323
|
constant_placeholder:
|
320
324
|
{match:
|
321
|
-
/(?i:%(
|
325
|
+
/(?i:%(?<_1>\([a-z_]+\))?#?0?\-?[ ]?\+?(?<_2>[0-9]*|\*)(?<_3>\.(?<_4>[0-9]*|\*))?[hL]?[a-z%])/,
|
322
326
|
name: "constant.other.placeholder.python"},
|
323
327
|
docstrings:
|
324
328
|
{patterns:
|
@@ -334,7 +338,7 @@
|
|
334
338
|
{begin: /(?=[A-Za-z_][A-Za-z0-9_]*(?:\.[A-Za-z_][A-Za-z0-9_]*)*)/,
|
335
339
|
end: "(?![A-Za-z0-9_\\.])",
|
336
340
|
patterns:
|
337
|
-
[{begin: /(
|
341
|
+
[{begin: /(?<_1>\.)(?=[A-Za-z_][A-Za-z0-9_]*)/,
|
338
342
|
end: "(?![A-Za-z0-9_])",
|
339
343
|
patterns:
|
340
344
|
[{include: "#magic_function_names"},
|
@@ -375,13 +379,14 @@
|
|
375
379
|
8 => {name: "constant.character.escape.backspace.python"},
|
376
380
|
9 => {name: "constant.character.escape.formfeed.python"}},
|
377
381
|
match:
|
378
|
-
/(
|
382
|
+
/(?<_1>\\x[0-9A-F]{2})|(?<_2>\\[0-7]{3})|(?<_3>\\\n)|(?<_4>\\\\)|(?<_5>\\\")|(?<_6>\\')|(?<_7>\\a)|(?<_8>\\b)|(?<_9>\\f)|(?<_10>\\n)|(?<_11>\\r)|(?<_12>\\t)|(?<_13>\\v)/},
|
379
383
|
escaped_unicode_char:
|
380
384
|
{captures:
|
381
385
|
{1 => {name: "constant.character.escape.unicode.16-bit-hex.python"},
|
382
386
|
2 => {name: "constant.character.escape.unicode.32-bit-hex.python"},
|
383
387
|
3 => {name: "constant.character.escape.unicode.name.python"}},
|
384
|
-
match:
|
388
|
+
match:
|
389
|
+
/(?<_1>\\U[0-9A-Fa-f]{8})|(?<_2>\\u[0-9A-Fa-f]{4})|(?<_3>\\N\{[a-zA-Z ]+\})/},
|
385
390
|
function_name:
|
386
391
|
{patterns:
|
387
392
|
[{include: "#magic_function_names"},
|
@@ -393,10 +398,10 @@
|
|
393
398
|
generic_names: {match: /[A-Za-z_][A-Za-z0-9_]*/},
|
394
399
|
illegal_names:
|
395
400
|
{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/,
|
401
|
+
/\b(?<_1>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
402
|
name: "invalid.illegal.name.python"},
|
398
403
|
keyword_arguments:
|
399
|
-
{begin: /\b([a-zA-Z_][a-zA-Z_0-9]*)\s*(
|
404
|
+
{begin: /\b(?<_1>[a-zA-Z_][a-zA-Z_0-9]*)\s*(?<_2>=)(?!=)/,
|
400
405
|
beginCaptures:
|
401
406
|
{1 => {name: "variable.parameter.function.python"},
|
402
407
|
2 => {name: "keyword.operator.assignment.python"}},
|
@@ -404,17 +409,17 @@
|
|
404
409
|
endCaptures: {1 => {name: "punctuation.separator.parameters.python"}},
|
405
410
|
patterns: [{include: "$self"}]},
|
406
411
|
language_variables:
|
407
|
-
{match: /\b(self|cls)\b/, name: "variable.language.python"},
|
412
|
+
{match: /\b(?<_1>self|cls)\b/, name: "variable.language.python"},
|
408
413
|
line_continuation:
|
409
414
|
{captures:
|
410
415
|
{1 => {name: "punctuation.separator.continuation.line.python"},
|
411
416
|
2 => {name: "invalid.illegal.unexpected-text.python"}},
|
412
|
-
match: /(
|
417
|
+
match: /(?<_1>\\)(?<_2>.*)$\n?/},
|
413
418
|
magic_function_names:
|
414
419
|
{comment:
|
415
420
|
"these methods have magic interpretation by python and are generally called indirectly through syntactic constructs",
|
416
421
|
match:
|
417
|
-
/(?x)\b(__(?:
|
422
|
+
/(?x)\b(?<_1>__(?:
|
418
423
|
abs|add|and|call|cmp|coerce|complex|contains|del|delattr|
|
419
424
|
delete|delitem|delslice|div|divmod|enter|eq|exit|float|
|
420
425
|
floordiv|ge|get|getattr|getattribute|getitem|getslice|gt|
|
@@ -429,7 +434,7 @@
|
|
429
434
|
magic_variable_names:
|
430
435
|
{comment: "magic variables which a class/module may have.",
|
431
436
|
match:
|
432
|
-
/\b__(all|bases|class|debug|dict|doc|file|members|metaclass|methods|name|slots|weakref)__\b/,
|
437
|
+
/\b__(?<_1>all|bases|class|debug|dict|doc|file|members|metaclass|methods|name|slots|weakref)__\b/,
|
433
438
|
name: "support.variable.magic.python"},
|
434
439
|
regular_expressions:
|
435
440
|
{comment:
|
@@ -438,7 +443,7 @@
|
|
438
443
|
patterns: [{include: "source.regexp.python"}]},
|
439
444
|
string_quoted_double:
|
440
445
|
{patterns:
|
441
|
-
[{begin: /([uU]r)(""")/,
|
446
|
+
[{begin: /(?<_1>[uU]r)(?<_2>""")/,
|
442
447
|
beginCaptures:
|
443
448
|
{1 => {name: "storage.type.string.python"},
|
444
449
|
2 => {name: "punctuation.definition.string.begin.python"}},
|
@@ -453,7 +458,7 @@
|
|
453
458
|
{include: "#escaped_unicode_char"},
|
454
459
|
{include: "#escaped_char"},
|
455
460
|
{include: "#regular_expressions"}]},
|
456
|
-
{begin: /([uU]R)(""")/,
|
461
|
+
{begin: /(?<_1>[uU]R)(?<_2>""")/,
|
457
462
|
beginCaptures:
|
458
463
|
{1 => {name: "storage.type.string.python"},
|
459
464
|
2 => {name: "punctuation.definition.string.begin.python"}},
|
@@ -468,7 +473,7 @@
|
|
468
473
|
[{include: "#constant_placeholder"},
|
469
474
|
{include: "#escaped_unicode_char"},
|
470
475
|
{include: "#escaped_char"}]},
|
471
|
-
{begin: /(r)(""")/,
|
476
|
+
{begin: /(?<_1>r)(?<_2>""")/,
|
472
477
|
beginCaptures:
|
473
478
|
{1 => {name: "storage.type.string.python"},
|
474
479
|
2 => {name: "punctuation.definition.string.begin.python"}},
|
@@ -482,7 +487,7 @@
|
|
482
487
|
[{include: "#constant_placeholder"},
|
483
488
|
{include: "#escaped_char"},
|
484
489
|
{include: "#regular_expressions"}]},
|
485
|
-
{begin: /(R)(""")/,
|
490
|
+
{begin: /(?<_1>R)(?<_2>""")/,
|
486
491
|
beginCaptures:
|
487
492
|
{1 => {name: "storage.type.string.python"},
|
488
493
|
2 => {name: "punctuation.definition.string.begin.python"}},
|
@@ -494,7 +499,7 @@
|
|
494
499
|
name: "string.quoted.double.block.raw.python",
|
495
500
|
patterns:
|
496
501
|
[{include: "#constant_placeholder"}, {include: "#escaped_char"}]},
|
497
|
-
{begin: /([uU])(""")/,
|
502
|
+
{begin: /(?<_1>[uU])(?<_2>""")/,
|
498
503
|
beginCaptures:
|
499
504
|
{1 => {name: "storage.type.string.python"},
|
500
505
|
2 => {name: "punctuation.definition.string.begin.python"}},
|
@@ -508,7 +513,7 @@
|
|
508
513
|
[{include: "#constant_placeholder"},
|
509
514
|
{include: "#escaped_unicode_char"},
|
510
515
|
{include: "#escaped_char"}]},
|
511
|
-
{begin: /([uU]r)(")/,
|
516
|
+
{begin: /(?<_1>[uU]r)(?<_2>")/,
|
512
517
|
beginCaptures:
|
513
518
|
{1 => {name: "storage.type.string.python"},
|
514
519
|
2 => {name: "punctuation.definition.string.begin.python"}},
|
@@ -524,7 +529,7 @@
|
|
524
529
|
{include: "#escaped_unicode_char"},
|
525
530
|
{include: "#escaped_char"},
|
526
531
|
{include: "#regular_expressions"}]},
|
527
|
-
{begin: /([uU]R)(")/,
|
532
|
+
{begin: /(?<_1>[uU]R)(?<_2>")/,
|
528
533
|
beginCaptures:
|
529
534
|
{1 => {name: "storage.type.string.python"},
|
530
535
|
2 => {name: "punctuation.definition.string.begin.python"}},
|
@@ -539,7 +544,7 @@
|
|
539
544
|
[{include: "#constant_placeholder"},
|
540
545
|
{include: "#escaped_unicode_char"},
|
541
546
|
{include: "#escaped_char"}]},
|
542
|
-
{begin: /(r)(")/,
|
547
|
+
{begin: /(?<_1>r)(?<_2>")/,
|
543
548
|
beginCaptures:
|
544
549
|
{1 => {name: "storage.type.string.python"},
|
545
550
|
2 => {name: "punctuation.definition.string.begin.python"}},
|
@@ -554,7 +559,7 @@
|
|
554
559
|
[{include: "#constant_placeholder"},
|
555
560
|
{include: "#escaped_char"},
|
556
561
|
{include: "#regular_expressions"}]},
|
557
|
-
{begin: /(R)(")/,
|
562
|
+
{begin: /(?<_1>R)(?<_2>")/,
|
558
563
|
beginCaptures:
|
559
564
|
{1 => {name: "storage.type.string.python"},
|
560
565
|
2 => {name: "punctuation.definition.string.begin.python"}},
|
@@ -567,7 +572,7 @@
|
|
567
572
|
name: "string.quoted.double.single-line.raw.python",
|
568
573
|
patterns:
|
569
574
|
[{include: "#constant_placeholder"}, {include: "#escaped_char"}]},
|
570
|
-
{begin: /([uU])(")/,
|
575
|
+
{begin: /(?<_1>[uU])(?<_2>")/,
|
571
576
|
beginCaptures:
|
572
577
|
{1 => {name: "storage.type.string.python"},
|
573
578
|
2 => {name: "punctuation.definition.string.begin.python"}},
|
@@ -583,7 +588,7 @@
|
|
583
588
|
{include: "#escaped_unicode_char"},
|
584
589
|
{include: "#escaped_char"}]},
|
585
590
|
{begin:
|
586
|
-
/(""")(?=\s*(SELECT|INSERT|UPDATE|DELETE|CREATE|REPLACE|ALTER))/,
|
591
|
+
/(?<_1>""")(?=\s*(?<_2>SELECT|INSERT|UPDATE|DELETE|CREATE|REPLACE|ALTER))/,
|
587
592
|
beginCaptures:
|
588
593
|
{1 => {name: "punctuation.definition.string.begin.python"}},
|
589
594
|
comment: "double quoted string",
|
@@ -596,7 +601,8 @@
|
|
596
601
|
[{include: "#constant_placeholder"},
|
597
602
|
{include: "#escaped_char"},
|
598
603
|
{include: "source.sql"}]},
|
599
|
-
{begin:
|
604
|
+
{begin:
|
605
|
+
/(?<_1>")(?=\s*(?<_2>SELECT|INSERT|UPDATE|DELETE|CREATE|REPLACE|ALTER))/,
|
600
606
|
beginCaptures:
|
601
607
|
{1 => {name: "punctuation.definition.string.begin.python"}},
|
602
608
|
comment: "double quoted string",
|
@@ -610,7 +616,7 @@
|
|
610
616
|
[{include: "#constant_placeholder"},
|
611
617
|
{include: "#escaped_char"},
|
612
618
|
{include: "source.sql"}]},
|
613
|
-
{begin: /(""")/,
|
619
|
+
{begin: /(?<_1>""")/,
|
614
620
|
beginCaptures:
|
615
621
|
{1 => {name: "punctuation.definition.string.begin.python"}},
|
616
622
|
comment: "double quoted string",
|
@@ -621,7 +627,7 @@
|
|
621
627
|
name: "string.quoted.double.block.python",
|
622
628
|
patterns:
|
623
629
|
[{include: "#constant_placeholder"}, {include: "#escaped_char"}]},
|
624
|
-
{begin: /(")/,
|
630
|
+
{begin: /(?<_1>")/,
|
625
631
|
beginCaptures:
|
626
632
|
{1 => {name: "punctuation.definition.string.begin.python"}},
|
627
633
|
comment: "double quoted string",
|
@@ -639,9 +645,9 @@
|
|
639
645
|
{1 => {name: "punctuation.definition.string.begin.python"},
|
640
646
|
2 => {name: "punctuation.definition.string.end.python"},
|
641
647
|
3 => {name: "meta.empty-string.single.python"}},
|
642
|
-
match: /(?<!')(')(('))(?!')/,
|
648
|
+
match: /(?<!')(?<_1>')(?<_2>(?<_3>'))(?!')/,
|
643
649
|
name: "string.quoted.single.single-line.python"},
|
644
|
-
{begin: /([uU]r)(''')/,
|
650
|
+
{begin: /(?<_1>[uU]r)(?<_2>''')/,
|
645
651
|
beginCaptures:
|
646
652
|
{1 => {name: "storage.type.string.python"},
|
647
653
|
2 => {name: "punctuation.definition.string.begin.python"}},
|
@@ -656,7 +662,7 @@
|
|
656
662
|
{include: "#escaped_unicode_char"},
|
657
663
|
{include: "#escaped_char"},
|
658
664
|
{include: "#regular_expressions"}]},
|
659
|
-
{begin: /([uU]R)(''')/,
|
665
|
+
{begin: /(?<_1>[uU]R)(?<_2>''')/,
|
660
666
|
beginCaptures:
|
661
667
|
{1 => {name: "storage.type.string.python"},
|
662
668
|
2 => {name: "punctuation.definition.string.begin.python"}},
|
@@ -670,7 +676,7 @@
|
|
670
676
|
[{include: "#constant_placeholder"},
|
671
677
|
{include: "#escaped_unicode_char"},
|
672
678
|
{include: "#escaped_char"}]},
|
673
|
-
{begin: /(r)(''')/,
|
679
|
+
{begin: /(?<_1>r)(?<_2>''')/,
|
674
680
|
beginCaptures:
|
675
681
|
{1 => {name: "storage.type.string.python"},
|
676
682
|
2 => {name: "punctuation.definition.string.begin.python"}},
|
@@ -684,7 +690,7 @@
|
|
684
690
|
[{include: "#constant_placeholder"},
|
685
691
|
{include: "#escaped_char"},
|
686
692
|
{include: "#regular_expressions"}]},
|
687
|
-
{begin: /(R)(''')/,
|
693
|
+
{begin: /(?<_1>R)(?<_2>''')/,
|
688
694
|
beginCaptures:
|
689
695
|
{1 => {name: "storage.type.string.python"},
|
690
696
|
2 => {name: "punctuation.definition.string.begin.python"}},
|
@@ -696,7 +702,7 @@
|
|
696
702
|
name: "string.quoted.single.block.raw.python",
|
697
703
|
patterns:
|
698
704
|
[{include: "#constant_placeholder"}, {include: "#escaped_char"}]},
|
699
|
-
{begin: /([uU])(''')/,
|
705
|
+
{begin: /(?<_1>[uU])(?<_2>''')/,
|
700
706
|
beginCaptures:
|
701
707
|
{1 => {name: "storage.type.string.python"},
|
702
708
|
2 => {name: "punctuation.definition.string.begin.python"}},
|
@@ -710,7 +716,7 @@
|
|
710
716
|
[{include: "#constant_placeholder"},
|
711
717
|
{include: "#escaped_unicode_char"},
|
712
718
|
{include: "#escaped_char"}]},
|
713
|
-
{begin: /([uU]r)(')/,
|
719
|
+
{begin: /(?<_1>[uU]r)(?<_2>')/,
|
714
720
|
beginCaptures:
|
715
721
|
{1 => {name: "storage.type.string.python"},
|
716
722
|
2 => {name: "punctuation.definition.string.begin.python"}},
|
@@ -725,7 +731,7 @@
|
|
725
731
|
{include: "#escaped_unicode_char"},
|
726
732
|
{include: "#escaped_char"},
|
727
733
|
{include: "#regular_expressions"}]},
|
728
|
-
{begin: /([uU]R)(')/,
|
734
|
+
{begin: /(?<_1>[uU]R)(?<_2>')/,
|
729
735
|
beginCaptures:
|
730
736
|
{1 => {name: "storage.type.string.python"},
|
731
737
|
2 => {name: "punctuation.definition.string.begin.python"}},
|
@@ -739,7 +745,7 @@
|
|
739
745
|
[{include: "#constant_placeholder"},
|
740
746
|
{include: "#escaped_unicode_char"},
|
741
747
|
{include: "#escaped_char"}]},
|
742
|
-
{begin: /(r)(')/,
|
748
|
+
{begin: /(?<_1>r)(?<_2>')/,
|
743
749
|
beginCaptures:
|
744
750
|
{1 => {name: "storage.type.string.python"},
|
745
751
|
2 => {name: "punctuation.definition.string.begin.python"}},
|
@@ -753,7 +759,7 @@
|
|
753
759
|
[{include: "#constant_placeholder"},
|
754
760
|
{include: "#escaped_char"},
|
755
761
|
{include: "#regular_expressions"}]},
|
756
|
-
{begin: /(R)(')/,
|
762
|
+
{begin: /(?<_1>R)(?<_2>')/,
|
757
763
|
beginCaptures:
|
758
764
|
{1 => {name: "storage.type.string.python"},
|
759
765
|
2 => {name: "punctuation.definition.string.begin.python"}},
|
@@ -765,7 +771,7 @@
|
|
765
771
|
name: "string.quoted.single.single-line.raw.python",
|
766
772
|
patterns:
|
767
773
|
[{include: "#constant_placeholder"}, {include: "#escaped_char"}]},
|
768
|
-
{begin: /([uU])(')/,
|
774
|
+
{begin: /(?<_1>[uU])(?<_2>')/,
|
769
775
|
beginCaptures:
|
770
776
|
{1 => {name: "storage.type.string.python"},
|
771
777
|
2 => {name: "punctuation.definition.string.begin.python"}},
|
@@ -780,7 +786,7 @@
|
|
780
786
|
{include: "#escaped_unicode_char"},
|
781
787
|
{include: "#escaped_char"}]},
|
782
788
|
{begin:
|
783
|
-
/(''')(?=\s*(SELECT|INSERT|UPDATE|DELETE|CREATE|REPLACE|ALTER))/,
|
789
|
+
/(?<_1>''')(?=\s*(?<_2>SELECT|INSERT|UPDATE|DELETE|CREATE|REPLACE|ALTER))/,
|
784
790
|
beginCaptures:
|
785
791
|
{1 => {name: "punctuation.definition.string.begin.python"}},
|
786
792
|
comment: "single quoted string",
|
@@ -793,7 +799,8 @@
|
|
793
799
|
[{include: "#constant_placeholder"},
|
794
800
|
{include: "#escaped_char"},
|
795
801
|
{include: "source.sql"}]},
|
796
|
-
{begin:
|
802
|
+
{begin:
|
803
|
+
/(?<_1>')(?=\s*(?<_2>SELECT|INSERT|UPDATE|DELETE|CREATE|REPLACE|ALTER))/,
|
797
804
|
beginCaptures:
|
798
805
|
{1 => {name: "punctuation.definition.string.begin.python"}},
|
799
806
|
comment: "single quoted string",
|
@@ -806,7 +813,7 @@
|
|
806
813
|
[{include: "#constant_placeholder"},
|
807
814
|
{include: "#escaped_char"},
|
808
815
|
{include: "source.sql"}]},
|
809
|
-
{begin: /(''')/,
|
816
|
+
{begin: /(?<_1>''')/,
|
810
817
|
beginCaptures:
|
811
818
|
{1 => {name: "punctuation.definition.string.begin.python"}},
|
812
819
|
comment: "single quoted string",
|
@@ -817,7 +824,7 @@
|
|
817
824
|
name: "string.quoted.single.block.python",
|
818
825
|
patterns:
|
819
826
|
[{include: "#constant_placeholder"}, {include: "#escaped_char"}]},
|
820
|
-
{begin: /(')/,
|
827
|
+
{begin: /(?<_1>')/,
|
821
828
|
beginCaptures:
|
822
829
|
{1 => {name: "punctuation.definition.string.begin.python"}},
|
823
830
|
comment: "single quoted string",
|