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,61 @@
|
|
1
|
+
# Encoding: UTF-8
|
2
|
+
|
3
|
+
{fileTypes: ["tmpl"],
|
4
|
+
firstLineMatch: "<(?i:TMPL)_.+?>",
|
5
|
+
foldingStartMarker:
|
6
|
+
/(<(?i:(head|table|tr|div|style|script|ul|ol|form|dl))\b.*?>|^ *<(?i:TMPL_(?:LOOP|UNLESS|IF))\b(?!.*<\/(?i:TMPL_(?:LOOP|UNLESS|IF))>))/,
|
7
|
+
foldingStopMarker:
|
8
|
+
/(<\/(?i:(head|table|tr|div|style|script|ul|ol|form|dl))>|^ *<\/(?i:TMPL_(?:LOOP|UNLESS|IF)) *>)/,
|
9
|
+
keyEquivalent: /^~H/,
|
10
|
+
name: "Perl HTML-Template",
|
11
|
+
patterns: [{include: "#tmpl-container-tag"}, {include: "text.html.basic"}],
|
12
|
+
repository:
|
13
|
+
{:"embedded-code" => {},
|
14
|
+
entities:
|
15
|
+
{patterns:
|
16
|
+
[{captures:
|
17
|
+
{1 => {name: "punctuation.definition.constant.html"},
|
18
|
+
3 => {name: "punctuation.definition.constant.html"}},
|
19
|
+
match: /(&)([a-zA-Z0-9]+|#[0-9]+|#x[0-9a-fA-F]+)(;)/,
|
20
|
+
name: "constant.character.entity.html"},
|
21
|
+
{match: /&/, name: "invalid.illegal.bad-ampersand.html"}]},
|
22
|
+
:"html-template-stuff" =>
|
23
|
+
{patterns:
|
24
|
+
[{match: /\b(?i:NAME|ESCAPE|DEFAULT|)\b/,
|
25
|
+
name: "keyword.control.html-template"},
|
26
|
+
{match: /=/, name: "punctuation.separator.key-value.html-template"},
|
27
|
+
{include: "#string-double-quoted"},
|
28
|
+
{include: "#string-single-quoted"},
|
29
|
+
{include: "#keyword"}]},
|
30
|
+
keyword:
|
31
|
+
{match: /\b([A-Za-z0-9_]+)/, name: "string.unquoted.html-template"},
|
32
|
+
:"string-double-quoted" =>
|
33
|
+
{begin: /"/,
|
34
|
+
beginCaptures:
|
35
|
+
{0 => {name: "punctuation.definition.string.begin.html-template"}},
|
36
|
+
end: "\"",
|
37
|
+
endCaptures:
|
38
|
+
{0 => {name: "punctuation.definition.string.end.html-template"}},
|
39
|
+
name: "string.quoted.double.html-template",
|
40
|
+
patterns: [{include: "#embedded-code"}, {include: "#entities"}]},
|
41
|
+
:"string-single-quoted" =>
|
42
|
+
{begin: /'/,
|
43
|
+
beginCaptures:
|
44
|
+
{0 => {name: "punctuation.definition.string.begin.html-template"}},
|
45
|
+
end: "'",
|
46
|
+
endCaptures:
|
47
|
+
{0 => {name: "punctuation.definition.string.end.html-template"}},
|
48
|
+
name: "string.quoted.single.html-template",
|
49
|
+
patterns: [{include: "#embedded-code"}, {include: "#entities"}]},
|
50
|
+
:"tmpl-container-tag" =>
|
51
|
+
{patterns:
|
52
|
+
[{begin: /<\/?(?i:TMPL_(?:IF|UNLESS|ELSE|VAR|INCLUDE|LOOP))/,
|
53
|
+
captures: {0 => {name: "punctuation.definition.tag.html-template"}},
|
54
|
+
end: ">",
|
55
|
+
name: "meta.tag.template.html-template",
|
56
|
+
patterns: [{include: "#html-template-stuff"}]},
|
57
|
+
{begin: /<\/?(?i:TMPL_(?!IF|UNLESS|ELSE|VAR|INCLUDE|LOOP))/,
|
58
|
+
end: ">",
|
59
|
+
name: "invalid.illegal.tag.template.html-template"}]}},
|
60
|
+
scopeName: "text.html.html-template",
|
61
|
+
uuid: "79287EAC-597A-480D-974C-837440298571"}
|
@@ -0,0 +1,764 @@
|
|
1
|
+
# Encoding: UTF-8
|
2
|
+
|
3
|
+
{comment: "\n\tTODO:\tInclude RegExp syntax\n",
|
4
|
+
fileTypes: ["pl", "pm", "pod", "t", "PL"],
|
5
|
+
firstLineMatch: "^#!.*\\bperl\\b",
|
6
|
+
foldingStartMarker: /(\/\*|(\{|\[|\()\s*$)/,
|
7
|
+
foldingStopMarker: /(\*\/|^\s*(\}|\]|\)))/,
|
8
|
+
keyEquivalent: "^~P",
|
9
|
+
name: "Perl",
|
10
|
+
patterns:
|
11
|
+
[{include: "#line_comment"},
|
12
|
+
{begin: /^=/,
|
13
|
+
captures: {0 => {name: "punctuation.definition.comment.perl"}},
|
14
|
+
end: "^=cut",
|
15
|
+
name: "comment.block.documentation.perl"},
|
16
|
+
{include: "#variable"},
|
17
|
+
{applyEndPatternLast: 1,
|
18
|
+
begin: /\b(?=qr\s*[^\s\w])/,
|
19
|
+
comment: "string.regexp.compile.perl",
|
20
|
+
end: "((([egimosx]*)))(?=(\\s+\\S|\\s*[;\\,\\#\\{\\}\\)]|$))",
|
21
|
+
endCaptures:
|
22
|
+
{1 => {name: "string.regexp.compile.perl"},
|
23
|
+
2 => {name: "punctuation.definition.string.perl"},
|
24
|
+
3 => {name: "keyword.control.regexp-option.perl"}},
|
25
|
+
patterns:
|
26
|
+
[{begin: /(qr)\s*\{/,
|
27
|
+
captures:
|
28
|
+
{0 => {name: "punctuation.definition.string.perl"},
|
29
|
+
1 => {name: "support.function.perl"}},
|
30
|
+
end: "\\}",
|
31
|
+
name: "string.regexp.compile.nested_braces.perl",
|
32
|
+
patterns:
|
33
|
+
[{include: "#escaped_char"},
|
34
|
+
{include: "#variable"},
|
35
|
+
{include: "#nested_braces_interpolated"}]},
|
36
|
+
{begin: /(qr)\s*\[/,
|
37
|
+
captures:
|
38
|
+
{0 => {name: "punctuation.definition.string.perl"},
|
39
|
+
1 => {name: "support.function.perl"}},
|
40
|
+
end: "\\]",
|
41
|
+
name: "string.regexp.compile.nested_brackets.perl",
|
42
|
+
patterns:
|
43
|
+
[{include: "#escaped_char"},
|
44
|
+
{include: "#variable"},
|
45
|
+
{include: "#nested_brackets_interpolated"}]},
|
46
|
+
{begin: /(qr)\s*</,
|
47
|
+
captures:
|
48
|
+
{0 => {name: "punctuation.definition.string.perl"},
|
49
|
+
1 => {name: "support.function.perl"}},
|
50
|
+
end: ">",
|
51
|
+
name: "string.regexp.compile.nested_ltgt.perl",
|
52
|
+
patterns:
|
53
|
+
[{include: "#escaped_char"},
|
54
|
+
{include: "#variable"},
|
55
|
+
{include: "#nested_ltgt_interpolated"}]},
|
56
|
+
{begin: /(qr)\s*\(/,
|
57
|
+
captures:
|
58
|
+
{0 => {name: "punctuation.definition.string.perl"},
|
59
|
+
1 => {name: "support.function.perl"}},
|
60
|
+
end: "\\)",
|
61
|
+
name: "string.regexp.compile.nested_parens.perl",
|
62
|
+
patterns:
|
63
|
+
[{include: "#escaped_char"},
|
64
|
+
{include: "#variable"},
|
65
|
+
{include: "#nested_parens_interpolated"}]},
|
66
|
+
{begin: /(qr)\s*\'/,
|
67
|
+
captures:
|
68
|
+
{0 => {name: "punctuation.definition.string.perl"},
|
69
|
+
1 => {name: "support.function.perl"}},
|
70
|
+
end: "\\'",
|
71
|
+
name: "string.regexp.compile.single-quote.perl",
|
72
|
+
patterns: [{include: "#escaped_char"}]},
|
73
|
+
{begin: /(qr)\s*([^\s\w\'\{\[\(\<])/,
|
74
|
+
captures:
|
75
|
+
{0 => {name: "punctuation.definition.string.perl"},
|
76
|
+
1 => {name: "support.function.perl"}},
|
77
|
+
end: "\\2",
|
78
|
+
name: "string.regexp.compile.simple-delimiter.perl",
|
79
|
+
patterns:
|
80
|
+
[{comment:
|
81
|
+
"This is to prevent thinks like qr/foo$/ to treat $/ as a variable",
|
82
|
+
match: /\$(?=[^\s\w\'\{\[\(\<])/,
|
83
|
+
name: "keyword.control.anchor.perl"},
|
84
|
+
{include: "#escaped_char"},
|
85
|
+
{include: "#variable"},
|
86
|
+
{include: "#nested_parens_interpolated"}]}]},
|
87
|
+
{applyEndPatternLast: 1,
|
88
|
+
begin: /\b(?=(?<!\&)(s)(\s+\S|\s*[;\,\#\{\}\(\)\[<]|$))/,
|
89
|
+
comment: "string.regexp.replace.perl",
|
90
|
+
end: "((([egimosx]*)))(?=(\\s+\\S|\\s*[;\\,\\#\\{\\}\\)\\]>]|$))",
|
91
|
+
endCaptures:
|
92
|
+
{1 => {name: "string.regexp.replace.perl"},
|
93
|
+
2 => {name: "punctuation.definition.string.perl"},
|
94
|
+
3 => {name: "keyword.control.regexp-option.perl"}},
|
95
|
+
patterns:
|
96
|
+
[{begin: /(s)\s*\{/,
|
97
|
+
captures:
|
98
|
+
{0 => {name: "punctuation.definition.string.perl"},
|
99
|
+
1 => {name: "support.function.perl"}},
|
100
|
+
end: "\\}",
|
101
|
+
name: "string.regexp.nested_braces.perl",
|
102
|
+
patterns: [{include: "#escaped_char"}, {include: "#nested_braces"}]},
|
103
|
+
{begin: /(s)\s*\[/,
|
104
|
+
captures:
|
105
|
+
{0 => {name: "punctuation.definition.string.perl"},
|
106
|
+
1 => {name: "support.function.perl"}},
|
107
|
+
end: "\\]",
|
108
|
+
name: "string.regexp.nested_brackets.perl",
|
109
|
+
patterns: [{include: "#escaped_char"}, {include: "#nested_brackets"}]},
|
110
|
+
{begin: /(s)\s*</,
|
111
|
+
captures:
|
112
|
+
{0 => {name: "punctuation.definition.string.perl"},
|
113
|
+
1 => {name: "support.function.perl"}},
|
114
|
+
end: ">",
|
115
|
+
name: "string.regexp.nested_ltgt.perl",
|
116
|
+
patterns: [{include: "#escaped_char"}, {include: "#nested_ltgt"}]},
|
117
|
+
{begin: /(s)\s*\(/,
|
118
|
+
captures:
|
119
|
+
{0 => {name: "punctuation.definition.string.perl"},
|
120
|
+
1 => {name: "support.function.perl"}},
|
121
|
+
end: "\\)",
|
122
|
+
name: "string.regexp.nested_parens.perl",
|
123
|
+
patterns: [{include: "#escaped_char"}, {include: "#nested_parens"}]},
|
124
|
+
{begin: /\{/,
|
125
|
+
captures: {0 => {name: "punctuation.definition.string.perl"}},
|
126
|
+
end: "\\}",
|
127
|
+
name: "string.regexp.format.nested_braces.perl",
|
128
|
+
patterns:
|
129
|
+
[{include: "#escaped_char"},
|
130
|
+
{include: "#variable"},
|
131
|
+
{include: "#nested_braces_interpolated"}]},
|
132
|
+
{begin: /\[/,
|
133
|
+
captures: {0 => {name: "punctuation.definition.string.perl"}},
|
134
|
+
end: "\\]",
|
135
|
+
name: "string.regexp.format.nested_brackets.perl",
|
136
|
+
patterns:
|
137
|
+
[{include: "#escaped_char"},
|
138
|
+
{include: "#variable"},
|
139
|
+
{include: "#nested_brackets_interpolated"}]},
|
140
|
+
{begin: /</,
|
141
|
+
captures: {0 => {name: "punctuation.definition.string.perl"}},
|
142
|
+
end: ">",
|
143
|
+
name: "string.regexp.format.nested_ltgt.perl",
|
144
|
+
patterns:
|
145
|
+
[{include: "#escaped_char"},
|
146
|
+
{include: "#variable"},
|
147
|
+
{include: "#nested_ltgt_interpolated"}]},
|
148
|
+
{begin: /\(/,
|
149
|
+
captures: {0 => {name: "punctuation.definition.string.perl"}},
|
150
|
+
end: "\\)",
|
151
|
+
name: "string.regexp.format.nested_parens.perl",
|
152
|
+
patterns:
|
153
|
+
[{include: "#escaped_char"},
|
154
|
+
{include: "#variable"},
|
155
|
+
{include: "#nested_parens_interpolated"}]},
|
156
|
+
{begin: /'/,
|
157
|
+
captures: {0 => {name: "punctuation.definition.string.perl"}},
|
158
|
+
end: "'",
|
159
|
+
name: "string.regexp.format.single_quote.perl",
|
160
|
+
patterns: [{match: /\\['\\]/, name: "constant.character.escape.perl"}]},
|
161
|
+
{begin: /([^\s\w\[({<;])/,
|
162
|
+
captures: {0 => {name: "punctuation.definition.string.perl"}},
|
163
|
+
end: "\\1",
|
164
|
+
name: "string.regexp.format.simple_delimiter.perl",
|
165
|
+
patterns: [{include: "#escaped_char"}, {include: "#variable"}]},
|
166
|
+
{match: /\s+/}]},
|
167
|
+
{begin: /\b(?=s([^\s\w\[({<]).*\1([egimos]*)([\}\)\;\,]|\s+))/,
|
168
|
+
comment: "string.regexp.replaceXXX",
|
169
|
+
end: "((([egimos]*)))(?=([\\}\\)\\;\\,]|\\s+|$))",
|
170
|
+
endCaptures:
|
171
|
+
{1 => {name: "string.regexp.replace.perl"},
|
172
|
+
2 => {name: "punctuation.definition.string.perl"},
|
173
|
+
3 => {name: "keyword.control.regexp-option.perl"}},
|
174
|
+
patterns:
|
175
|
+
[{begin: /(s\s*)([^\s\w\[({<])/,
|
176
|
+
captures:
|
177
|
+
{0 => {name: "punctuation.definition.string.perl"},
|
178
|
+
1 => {name: "support.function.perl"}},
|
179
|
+
end: "(?=\\2)",
|
180
|
+
name: "string.regexp.replaceXXX.simple_delimiter.perl",
|
181
|
+
patterns: [{include: "#escaped_char"}]},
|
182
|
+
{begin: /'/,
|
183
|
+
captures: {0 => {name: "punctuation.definition.string.perl"}},
|
184
|
+
end: "'",
|
185
|
+
name: "string.regexp.replaceXXX.format.single_quote.perl",
|
186
|
+
patterns:
|
187
|
+
[{match: /\\['\\]/, name: "constant.character.escape.perl.perl"}]},
|
188
|
+
{begin: /([^\s\w\[({<])/,
|
189
|
+
captures: {0 => {name: "punctuation.definition.string.perl"}},
|
190
|
+
end: "\\1",
|
191
|
+
name: "string.regexp.replaceXXX.format.simple_delimiter.perl",
|
192
|
+
patterns: [{include: "#escaped_char"}, {include: "#variable"}]}]},
|
193
|
+
{begin: /\b(?=(?<!\\)s\s*([^\s\w\[({<]))/,
|
194
|
+
comment: "string.regexp.replace.extended",
|
195
|
+
end: "\\2((([egimos]*x[egimos]*)))\\b",
|
196
|
+
endCaptures:
|
197
|
+
{1 => {name: "string.regexp.replace.perl"},
|
198
|
+
2 => {name: "punctuation.definition.string.perl"},
|
199
|
+
3 => {name: "keyword.control.regexp-option.perl"}},
|
200
|
+
patterns:
|
201
|
+
[{begin: /(s)\s*(.)/,
|
202
|
+
captures:
|
203
|
+
{0 => {name: "punctuation.definition.string.perl"},
|
204
|
+
1 => {name: "support.function.perl"}},
|
205
|
+
end: "(?=\\2)",
|
206
|
+
name: "string.regexp.replace.extended.simple_delimiter.perl",
|
207
|
+
patterns: [{include: "#escaped_char"}]},
|
208
|
+
{begin: /'/,
|
209
|
+
captures: {0 => {name: "punctuation.definition.string.perl"}},
|
210
|
+
end: "'(?=[egimos]*x[egimos]*)\\b",
|
211
|
+
name: "string.regexp.replace.extended.simple_delimiter.perl",
|
212
|
+
patterns: [{include: "#escaped_char"}]},
|
213
|
+
{begin: /(.)/,
|
214
|
+
captures: {0 => {name: "punctuation.definition.string.perl"}},
|
215
|
+
end: "\\1(?=[egimos]*x[egimos]*)\\b",
|
216
|
+
name: "string.regexp.replace.extended.simple_delimiter.perl",
|
217
|
+
patterns: [{include: "#escaped_char"}, {include: "#variable"}]}]},
|
218
|
+
{match: /\b\w+\s*(?==>)/, name: "constant.other.key.perl"},
|
219
|
+
{match: /(?<={)\s*\w+\s*(?=})/, name: "constant.other.bareword.perl"},
|
220
|
+
{captures:
|
221
|
+
{1 => {name: "punctuation.definition.string.perl"},
|
222
|
+
5 => {name: "punctuation.definition.string.perl"}},
|
223
|
+
match: /(?<!\\)((~\s*)?\/)(\S.*?)(?<!\\)(\\{2})*(\/)/,
|
224
|
+
name: "string.regexp.find.perl"},
|
225
|
+
{begin: /(?<!\\)(\~\s*\/)/,
|
226
|
+
captures: {0 => {name: "punctuation.definition.string.perl"}},
|
227
|
+
end: "\\/([cgimos]*x[cgimos]*)\\b",
|
228
|
+
endCaptures: {1 => {name: "keyword.control.regexp-option.perl"}},
|
229
|
+
name: "string.regexp.find.extended.perl",
|
230
|
+
patterns: [{include: "#escaped_char"}, {include: "#variable"}]},
|
231
|
+
{captures:
|
232
|
+
{1 => {name: "keyword.control.perl"},
|
233
|
+
2 => {name: "entity.name.type.class.perl"},
|
234
|
+
3 => {name: "comment.line.number-sign.perl"},
|
235
|
+
4 => {name: "punctuation.definition.comment.perl"}},
|
236
|
+
match: /^\s*(package)\s+(\S+)\s*((#).*)?$\n?/,
|
237
|
+
name: "meta.class.perl"},
|
238
|
+
{captures:
|
239
|
+
{1 => {name: "storage.type.sub.perl"},
|
240
|
+
2 => {name: "entity.name.function.perl"},
|
241
|
+
3 => {name: "storage.type.method.perl"}},
|
242
|
+
match: /^\s*(sub)\s+([-a-zA-Z0-9_]+)\s*(\([\$\@\*;]*\))?/,
|
243
|
+
name: "meta.function.perl"},
|
244
|
+
{captures:
|
245
|
+
{1 => {name: "entity.name.function.perl"},
|
246
|
+
2 => {name: "punctuation.definition.parameters.perl"},
|
247
|
+
3 => {name: "variable.parameter.function.perl"}},
|
248
|
+
match: /^\s*(BEGIN|END|DESTROY)\b/,
|
249
|
+
name: "meta.function.perl"},
|
250
|
+
{begin: /^(?=(\t| {4}))/,
|
251
|
+
end: "(?=[^\\t\\s])",
|
252
|
+
name: "meta.leading-tabs",
|
253
|
+
patterns:
|
254
|
+
[{captures: {1 => {name: "meta.odd-tab"}, 2 => {name: "meta.even-tab"}},
|
255
|
+
match: /(\t| {4})(\t| {4})?/}]},
|
256
|
+
{captures:
|
257
|
+
{1 => {name: "support.function.perl"},
|
258
|
+
2 => {name: "punctuation.definition.string.perl"},
|
259
|
+
5 => {name: "punctuation.definition.string.perl"}},
|
260
|
+
match: /\b(m)\s*(?<!\\)([^\[\{\(A-Za-z0-9\s])(.*?)(?<!\\)(\\{2})*(\2)/,
|
261
|
+
name: "string.regexp.find-m.perl"},
|
262
|
+
{begin: /\b(m)\s*(?<!\\)\(/,
|
263
|
+
beginCaptures: {0 => {name: "punctuation.definition.string.begin.perl"}},
|
264
|
+
end: "\\)",
|
265
|
+
endCaptures: {0 => {name: "punctuation.definition.string.end.perl"}},
|
266
|
+
name: "string.regexp.find-m-paren.perl",
|
267
|
+
patterns:
|
268
|
+
[{include: "#escaped_char"},
|
269
|
+
{include: "#nested_parens_interpolated"},
|
270
|
+
{include: "#variable"}]},
|
271
|
+
{begin: /\b(m)\s*(?<!\\)\{/,
|
272
|
+
beginCaptures: {0 => {name: "punctuation.definition.string.begin.perl"}},
|
273
|
+
end: "\\}",
|
274
|
+
endCaptures: {0 => {name: "punctuation.definition.string.end.perl"}},
|
275
|
+
name: "string.regexp.find-m-brace.perl",
|
276
|
+
patterns:
|
277
|
+
[{include: "#escaped_char"},
|
278
|
+
{include: "#nested_braces_interpolated"},
|
279
|
+
{include: "#variable"}]},
|
280
|
+
{begin: /\b(m)\s*(?<!\\)\[/,
|
281
|
+
beginCaptures: {0 => {name: "punctuation.definition.string.begin.perl"}},
|
282
|
+
end: "\\]",
|
283
|
+
endCaptures: {0 => {name: "punctuation.definition.string.end.perl"}},
|
284
|
+
name: "string.regexp.find-m-bracket.perl",
|
285
|
+
patterns:
|
286
|
+
[{include: "#escaped_char"},
|
287
|
+
{include: "#nested_brackets_interpolated"},
|
288
|
+
{include: "#variable"}]},
|
289
|
+
{begin: /\b(m)\s*(?<!\\)\</,
|
290
|
+
beginCaptures: {0 => {name: "punctuation.definition.string.begin.perl"}},
|
291
|
+
end: "\\>",
|
292
|
+
endCaptures: {0 => {name: "punctuation.definition.string.end.perl"}},
|
293
|
+
name: "string.regexp.find-m-ltgt.perl",
|
294
|
+
patterns:
|
295
|
+
[{include: "#escaped_char"},
|
296
|
+
{include: "#nested_ltgt_interpolated"},
|
297
|
+
{include: "#variable"}]},
|
298
|
+
{captures:
|
299
|
+
{1 => {name: "support.function.perl"},
|
300
|
+
2 => {name: "punctuation.definition.string.perl"},
|
301
|
+
5 => {name: "punctuation.definition.string.perl"},
|
302
|
+
8 => {name: "punctuation.definition.string.perl"}},
|
303
|
+
match:
|
304
|
+
/\b(s|tr|y)\s*([^A-Za-z0-9\s])(.*?)(?<!\\)(\\{2})*(\2)(.*?)(?<!\\)(\\{2})*(\2)/,
|
305
|
+
name: "string.regexp.replace.perl"},
|
306
|
+
{match: /\b(__FILE__|__LINE__|__PACKAGE__)\b/,
|
307
|
+
name: "constant.language.perl"},
|
308
|
+
{match:
|
309
|
+
/(?<!->)\b(continue|die|do|else|elsif|exit|for|foreach|goto|if|last|next|redo|return|select|unless|until|wait|while|switch|case|package|require|use|eval)\b/,
|
310
|
+
name: "keyword.control.perl"},
|
311
|
+
{match: /\b(my|our|local)\b/, name: "storage.modifier.perl"},
|
312
|
+
{match: /(?<!\w)\-[rwx0RWXOezsfdlpSbctugkTBMAC]\b/,
|
313
|
+
name: "keyword.operator.filetest.perl"},
|
314
|
+
{match: /\b(and|or|xor|as)\b/, name: "keyword.operator.logical.perl"},
|
315
|
+
{match: /(<=>| =>|->)/, name: "keyword.operator.comparison.perl"},
|
316
|
+
{begin: /((<<) *"HTML").*\n?/,
|
317
|
+
captures:
|
318
|
+
{0 => {name: "punctuation.definition.string.perl"},
|
319
|
+
1 => {name: "string.unquoted.heredoc.doublequote.perl"},
|
320
|
+
2 => {name: "punctuation.definition.heredoc.perl"}},
|
321
|
+
contentName: "text.html.embedded.perl",
|
322
|
+
end: "(^HTML$)",
|
323
|
+
patterns:
|
324
|
+
[{include: "#escaped_char"},
|
325
|
+
{include: "#variable"},
|
326
|
+
{include: "text.html.basic"}]},
|
327
|
+
{begin: /((<<) *"XML").*\n?/,
|
328
|
+
captures:
|
329
|
+
{0 => {name: "punctuation.definition.string.perl"},
|
330
|
+
1 => {name: "string.unquoted.heredoc.doublequote.perl"},
|
331
|
+
2 => {name: "punctuation.definition.heredoc.perl"}},
|
332
|
+
contentName: "text.xml.embedded.perl",
|
333
|
+
end: "(^XML$)",
|
334
|
+
patterns:
|
335
|
+
[{include: "#escaped_char"},
|
336
|
+
{include: "#variable"},
|
337
|
+
{include: "text.xml"}]},
|
338
|
+
{begin: /((<<) *"CSS").*\n?/,
|
339
|
+
captures:
|
340
|
+
{0 => {name: "punctuation.definition.string.perl"},
|
341
|
+
1 => {name: "string.unquoted.heredoc.doublequote.perl"},
|
342
|
+
2 => {name: "punctuation.definition.heredoc.perl"}},
|
343
|
+
contentName: "text.css.embedded.perl",
|
344
|
+
end: "(^CSS$)",
|
345
|
+
patterns:
|
346
|
+
[{include: "#escaped_char"},
|
347
|
+
{include: "#variable"},
|
348
|
+
{include: "source.css"}]},
|
349
|
+
{begin: /((<<) *"JAVASCRIPT").*\n?/,
|
350
|
+
captures:
|
351
|
+
{0 => {name: "punctuation.definition.string.perl"},
|
352
|
+
1 => {name: "string.unquoted.heredoc.doublequote.perl"},
|
353
|
+
2 => {name: "punctuation.definition.heredoc.perl"}},
|
354
|
+
contentName: "text.js.embedded.perl",
|
355
|
+
end: "(^JAVASCRIPT$)",
|
356
|
+
patterns:
|
357
|
+
[{include: "#escaped_char"},
|
358
|
+
{include: "#variable"},
|
359
|
+
{include: "source.js"}]},
|
360
|
+
{begin: /((<<) *"SQL").*\n?/,
|
361
|
+
captures:
|
362
|
+
{0 => {name: "punctuation.definition.string.perl"},
|
363
|
+
1 => {name: "string.unquoted.heredoc.doublequote.perl"},
|
364
|
+
2 => {name: "punctuation.definition.heredoc.perl"}},
|
365
|
+
contentName: "source.sql.embedded.perl",
|
366
|
+
end: "(^SQL$)",
|
367
|
+
patterns:
|
368
|
+
[{include: "#escaped_char"},
|
369
|
+
{include: "#variable"},
|
370
|
+
{include: "source.sql"}]},
|
371
|
+
{begin: /((<<) *"POSTSCRIPT").*\n?/,
|
372
|
+
captures:
|
373
|
+
{0 => {name: "punctuation.definition.string.perl"},
|
374
|
+
1 => {name: "string.unquoted.heredoc.doublequote.perl"},
|
375
|
+
2 => {name: "punctuation.definition.heredoc.perl"}},
|
376
|
+
contentName: "text.postscript.embedded.perl",
|
377
|
+
end: "(^POSTSCRIPT$)",
|
378
|
+
patterns:
|
379
|
+
[{include: "#escaped_char"},
|
380
|
+
{include: "#variable"},
|
381
|
+
{include: "source.postscript"}]},
|
382
|
+
{begin: /((<<) *"([^"]*)").*\n?/,
|
383
|
+
captures:
|
384
|
+
{0 => {name: "punctuation.definition.string.perl"},
|
385
|
+
1 => {name: "string.unquoted.heredoc.doublequote.perl"},
|
386
|
+
2 => {name: "punctuation.definition.heredoc.perl"}},
|
387
|
+
contentName: "string.unquoted.heredoc.doublequote.perl",
|
388
|
+
end: "(^\\3$)",
|
389
|
+
patterns: [{include: "#escaped_char"}, {include: "#variable"}]},
|
390
|
+
{begin: /((<<) *'HTML').*\n?/,
|
391
|
+
captures:
|
392
|
+
{0 => {name: "punctuation.definition.string.perl"},
|
393
|
+
1 => {name: "string.unquoted.heredoc.quote.perl"},
|
394
|
+
2 => {name: "punctuation.definition.heredoc.perl"}},
|
395
|
+
contentName: "text.html.embedded.perl",
|
396
|
+
end: "(^HTML$)",
|
397
|
+
patterns: [{include: "text.html.basic"}]},
|
398
|
+
{begin: /((<<) *'XML').*\n?/,
|
399
|
+
captures:
|
400
|
+
{0 => {name: "punctuation.definition.string.perl"},
|
401
|
+
1 => {name: "string.unquoted.heredoc.quote.perl"},
|
402
|
+
2 => {name: "punctuation.definition.heredoc.perl"}},
|
403
|
+
contentName: "text.xml.embedded.perl",
|
404
|
+
end: "(^XML$)",
|
405
|
+
patterns: [{include: "text.xml"}]},
|
406
|
+
{begin: /((<<) *'CSS').*\n?/,
|
407
|
+
captures:
|
408
|
+
{0 => {name: "punctuation.definition.string.perl"},
|
409
|
+
1 => {name: "string.unquoted.heredoc.quote.perl"},
|
410
|
+
2 => {name: "punctuation.definition.heredoc.perl"}},
|
411
|
+
contentName: "text.css.embedded.perl",
|
412
|
+
end: "(^CSS$)",
|
413
|
+
patterns: [{include: "source.css"}]},
|
414
|
+
{begin: /((<<) *'JAVASCRIPT').*\n?/,
|
415
|
+
captures:
|
416
|
+
{0 => {name: "punctuation.definition.string.perl"},
|
417
|
+
1 => {name: "string.unquoted.heredoc.quote.perl"},
|
418
|
+
2 => {name: "punctuation.definition.heredoc.perl"}},
|
419
|
+
contentName: "text.js.embedded.perl",
|
420
|
+
end: "(^JAVASCRIPT$)",
|
421
|
+
patterns: [{include: "source.js"}]},
|
422
|
+
{begin: /((<<) *'SQL').*\n?/,
|
423
|
+
captures:
|
424
|
+
{0 => {name: "punctuation.definition.string.perl"},
|
425
|
+
1 => {name: "string.unquoted.heredoc.quote.perl"},
|
426
|
+
2 => {name: "punctuation.definition.heredoc.perl"}},
|
427
|
+
contentName: "source.sql.embedded.perl",
|
428
|
+
end: "(^SQL$)",
|
429
|
+
patterns: [{include: "source.sql"}]},
|
430
|
+
{begin: /((<<) *'POSTSCRIPT').*\n?/,
|
431
|
+
captures:
|
432
|
+
{0 => {name: "punctuation.definition.string.perl"},
|
433
|
+
1 => {name: "string.unquoted.heredoc.quote.perl"},
|
434
|
+
2 => {name: "punctuation.definition.heredoc.perl"}},
|
435
|
+
contentName: "source.postscript.embedded.perl",
|
436
|
+
end: "(^POSTSCRIPT)",
|
437
|
+
patterns: [{include: "source.postscript"}]},
|
438
|
+
{begin: /((<<) *'([^']*)').*\n?/,
|
439
|
+
captures:
|
440
|
+
{0 => {name: "punctuation.definition.string.perl"},
|
441
|
+
1 => {name: "string.unquoted.heredoc.quote.perl"},
|
442
|
+
2 => {name: "punctuation.definition.heredoc.perl"}},
|
443
|
+
contentName: "string.unquoted.heredoc.quote.perl",
|
444
|
+
end: "(^\\3$)"},
|
445
|
+
{begin: /((<<) *`([^`]*)`).*\n?/,
|
446
|
+
captures:
|
447
|
+
{0 => {name: "punctuation.definition.string.perl"},
|
448
|
+
1 => {name: "string.unquoted.heredoc.backtick.perl"},
|
449
|
+
2 => {name: "punctuation.definition.heredoc.perl"}},
|
450
|
+
contentName: "string.unquoted.heredoc.backtick.perl",
|
451
|
+
end: "(^\\3$)",
|
452
|
+
patterns: [{include: "#escaped_char"}, {include: "#variable"}]},
|
453
|
+
{begin: /((<<) *HTML\b).*\n?/,
|
454
|
+
captures:
|
455
|
+
{0 => {name: "punctuation.definition.string.perl"},
|
456
|
+
1 => {name: "string.unquoted.heredoc.perl"},
|
457
|
+
2 => {name: "punctuation.definition.heredoc.perl"}},
|
458
|
+
contentName: "text.html.embedded.perl",
|
459
|
+
end: "(^HTML$)",
|
460
|
+
patterns:
|
461
|
+
[{include: "#escaped_char"},
|
462
|
+
{include: "#variable"},
|
463
|
+
{include: "text.html.basic"}]},
|
464
|
+
{begin: /((<<) *XML\b).*\n?/,
|
465
|
+
captures:
|
466
|
+
{0 => {name: "punctuation.definition.string.perl"},
|
467
|
+
1 => {name: "string.unquoted.heredoc.perl"},
|
468
|
+
2 => {name: "punctuation.definition.heredoc.perl"}},
|
469
|
+
contentName: "text.xml.embedded.perl",
|
470
|
+
end: "(^XML$)",
|
471
|
+
patterns:
|
472
|
+
[{include: "#escaped_char"},
|
473
|
+
{include: "#variable"},
|
474
|
+
{include: "text.xml"}]},
|
475
|
+
{begin: /((<<) *SQL\b).*\n?/,
|
476
|
+
captures:
|
477
|
+
{0 => {name: "punctuation.definition.string.perl"},
|
478
|
+
1 => {name: "string.unquoted.heredoc.perl"},
|
479
|
+
2 => {name: "punctuation.definition.heredoc.perl"}},
|
480
|
+
contentName: "source.sql.embedded.perl",
|
481
|
+
end: "(^SQL$)",
|
482
|
+
patterns:
|
483
|
+
[{include: "#escaped_char"},
|
484
|
+
{include: "#variable"},
|
485
|
+
{include: "source.sql"}]},
|
486
|
+
{begin: /((<<) *POSTSCRIPT\b).*\n?/,
|
487
|
+
captures:
|
488
|
+
{0 => {name: "punctuation.definition.string.perl"},
|
489
|
+
1 => {name: "string.unquoted.heredoc.perl"},
|
490
|
+
2 => {name: "punctuation.definition.heredoc.perl"}},
|
491
|
+
contentName: "source.postscript.embedded.perl",
|
492
|
+
end: "(^POSTSCRIPT)",
|
493
|
+
patterns:
|
494
|
+
[{include: "#escaped_char"},
|
495
|
+
{include: "#variable"},
|
496
|
+
{include: "source.postscript"}]},
|
497
|
+
{begin: /((<<) *((?![=\d\$ ])[^;,'"`\s)]*)).*\n?/,
|
498
|
+
captures:
|
499
|
+
{0 => {name: "punctuation.definition.string.perl"},
|
500
|
+
1 => {name: "string.unquoted.heredoc.perl"},
|
501
|
+
2 => {name: "punctuation.definition.heredoc.perl"}},
|
502
|
+
contentName: "string.unquoted.heredoc.perl",
|
503
|
+
end: "(^\\3$)",
|
504
|
+
patterns: [{include: "#escaped_char"}, {include: "#variable"}]},
|
505
|
+
{begin: /\bqq\s*([^\(\{\[\<\w\s])/,
|
506
|
+
beginCaptures: {0 => {name: "punctuation.definition.string.begin.perl"}},
|
507
|
+
end: "\\1",
|
508
|
+
endCaptures: {0 => {name: "punctuation.definition.string.end.perl"}},
|
509
|
+
name: "string.quoted.other.qq.perl",
|
510
|
+
patterns: [{include: "#escaped_char"}, {include: "#variable"}]},
|
511
|
+
{begin: /\bqx\s*([^'\(\{\[\<\w\s])/,
|
512
|
+
beginCaptures: {0 => {name: "punctuation.definition.string.begin.perl"}},
|
513
|
+
end: "\\1",
|
514
|
+
endCaptures: {0 => {name: "punctuation.definition.string.end.perl"}},
|
515
|
+
name: "string.interpolated.qx.perl",
|
516
|
+
patterns: [{include: "#escaped_char"}, {include: "#variable"}]},
|
517
|
+
{begin: /\bqx\s*'/,
|
518
|
+
beginCaptures: {0 => {name: "punctuation.definition.string.begin.perl"}},
|
519
|
+
end: "'",
|
520
|
+
endCaptures: {0 => {name: "punctuation.definition.string.end.perl"}},
|
521
|
+
name: "string.interpolated.qx.single-quote.perl",
|
522
|
+
patterns: [{include: "#escaped_char"}]},
|
523
|
+
{begin: /"/,
|
524
|
+
beginCaptures: {0 => {name: "punctuation.definition.string.begin.perl"}},
|
525
|
+
end: "\"",
|
526
|
+
endCaptures: {0 => {name: "punctuation.definition.string.end.perl"}},
|
527
|
+
name: "string.quoted.double.perl",
|
528
|
+
patterns: [{include: "#escaped_char"}, {include: "#variable"}]},
|
529
|
+
{begin: /\bqw?\s*([^\(\{\[\<\w\s])/,
|
530
|
+
beginCaptures: {0 => {name: "punctuation.definition.string.begin.perl"}},
|
531
|
+
end: "\\1",
|
532
|
+
endCaptures: {0 => {name: "punctuation.definition.string.end.perl"}},
|
533
|
+
name: "string.quoted.other.q.perl",
|
534
|
+
patterns: [{include: "#escaped_char"}]},
|
535
|
+
{begin: /'/,
|
536
|
+
beginCaptures: {0 => {name: "punctuation.definition.string.begin.perl"}},
|
537
|
+
end: "'",
|
538
|
+
endCaptures: {0 => {name: "punctuation.definition.string.end.perl"}},
|
539
|
+
name: "string.quoted.single.perl",
|
540
|
+
patterns: [{match: /\\['\\]/, name: "constant.character.escape.perl"}]},
|
541
|
+
{begin: /`/,
|
542
|
+
beginCaptures: {0 => {name: "punctuation.definition.string.begin.perl"}},
|
543
|
+
end: "`",
|
544
|
+
endCaptures: {0 => {name: "punctuation.definition.string.end.perl"}},
|
545
|
+
name: "string.interpolated.perl",
|
546
|
+
patterns: [{include: "#escaped_char"}, {include: "#variable"}]},
|
547
|
+
{begin: /\bqq\s*\(/,
|
548
|
+
beginCaptures: {0 => {name: "punctuation.definition.string.begin.perl"}},
|
549
|
+
end: "\\)",
|
550
|
+
endCaptures: {0 => {name: "punctuation.definition.string.end.perl"}},
|
551
|
+
name: "string.quoted.other.qq-paren.perl",
|
552
|
+
patterns:
|
553
|
+
[{include: "#escaped_char"},
|
554
|
+
{include: "#nested_parens_interpolated"},
|
555
|
+
{include: "#variable"}]},
|
556
|
+
{begin: /\bqq\s*\{/,
|
557
|
+
beginCaptures: {0 => {name: "punctuation.definition.string.begin.perl"}},
|
558
|
+
end: "\\}",
|
559
|
+
endCaptures: {0 => {name: "punctuation.definition.string.end.perl"}},
|
560
|
+
name: "string.quoted.other.qq-brace.perl",
|
561
|
+
patterns:
|
562
|
+
[{include: "#escaped_char"},
|
563
|
+
{include: "#nested_braces_interpolated"},
|
564
|
+
{include: "#variable"}]},
|
565
|
+
{begin: /\bqq\s*\[/,
|
566
|
+
beginCaptures: {0 => {name: "punctuation.definition.string.begin.perl"}},
|
567
|
+
end: "\\]",
|
568
|
+
endCaptures: {0 => {name: "punctuation.definition.string.end.perl"}},
|
569
|
+
name: "string.quoted.other.qq-bracket.perl",
|
570
|
+
patterns:
|
571
|
+
[{include: "#escaped_char"},
|
572
|
+
{include: "#nested_brackets_interpolated"},
|
573
|
+
{include: "#variable"}]},
|
574
|
+
{begin: /\bqq\s*\</,
|
575
|
+
beginCaptures: {0 => {name: "punctuation.definition.string.begin.perl"}},
|
576
|
+
end: "\\>",
|
577
|
+
endCaptures: {0 => {name: "punctuation.definition.string.end.perl"}},
|
578
|
+
name: "string.quoted.other.qq-ltgt.perl",
|
579
|
+
patterns:
|
580
|
+
[{include: "#escaped_char"},
|
581
|
+
{include: "#nested_ltgt_interpolated"},
|
582
|
+
{include: "#variable"}]},
|
583
|
+
{begin: /\bqx\s*\(/,
|
584
|
+
beginCaptures: {0 => {name: "punctuation.definition.string.begin.perl"}},
|
585
|
+
end: "\\)",
|
586
|
+
endCaptures: {0 => {name: "punctuation.definition.string.end.perl"}},
|
587
|
+
name: "string.interpolated.qx-paren.perl",
|
588
|
+
patterns:
|
589
|
+
[{include: "#escaped_char"},
|
590
|
+
{include: "#nested_parens_interpolated"},
|
591
|
+
{include: "#variable"}]},
|
592
|
+
{begin: /\bqx\s*\{/,
|
593
|
+
beginCaptures: {0 => {name: "punctuation.definition.string.begin.perl"}},
|
594
|
+
end: "\\}",
|
595
|
+
endCaptures: {0 => {name: "punctuation.definition.string.end.perl"}},
|
596
|
+
name: "string.interpolated.qx-brace.perl",
|
597
|
+
patterns:
|
598
|
+
[{include: "#escaped_char"},
|
599
|
+
{include: "#nested_braces_interpolated"},
|
600
|
+
{include: "#variable"}]},
|
601
|
+
{begin: /\bqx\s*\[/,
|
602
|
+
beginCaptures: {0 => {name: "punctuation.definition.string.begin.perl"}},
|
603
|
+
end: "\\]",
|
604
|
+
endCaptures: {0 => {name: "punctuation.definition.string.end.perl"}},
|
605
|
+
name: "string.interpolated.qx-bracket.perl",
|
606
|
+
patterns:
|
607
|
+
[{include: "#escaped_char"},
|
608
|
+
{include: "#nested_brackets_interpolated"},
|
609
|
+
{include: "#variable"}]},
|
610
|
+
{begin: /\bqx\s*\</,
|
611
|
+
beginCaptures: {0 => {name: "punctuation.definition.string.begin.perl"}},
|
612
|
+
end: "\\>",
|
613
|
+
endCaptures: {0 => {name: "punctuation.definition.string.end.perl"}},
|
614
|
+
name: "string.interpolated.qx-ltgt.perl",
|
615
|
+
patterns:
|
616
|
+
[{include: "#escaped_char"},
|
617
|
+
{include: "#nested_ltgt_interpolated"},
|
618
|
+
{include: "#variable"}]},
|
619
|
+
{begin: /\bqw?\s*\(/,
|
620
|
+
beginCaptures: {0 => {name: "punctuation.definition.string.begin.perl"}},
|
621
|
+
end: "\\)",
|
622
|
+
endCaptures: {0 => {name: "punctuation.definition.string.end.perl"}},
|
623
|
+
name: "string.quoted.other.q-paren.perl",
|
624
|
+
patterns: [{include: "#escaped_char"}, {include: "#nested_parens"}]},
|
625
|
+
{begin: /\bqw?\s*\{/,
|
626
|
+
beginCaptures: {0 => {name: "punctuation.definition.string.begin.perl"}},
|
627
|
+
end: "\\}",
|
628
|
+
endCaptures: {0 => {name: "punctuation.definition.string.end.perl"}},
|
629
|
+
name: "string.quoted.other.q-brace.perl",
|
630
|
+
patterns: [{include: "#escaped_char"}, {include: "#nested_braces"}]},
|
631
|
+
{begin: /\bqw?\s*\[/,
|
632
|
+
beginCaptures: {0 => {name: "punctuation.definition.string.begin.perl"}},
|
633
|
+
end: "\\]",
|
634
|
+
endCaptures: {0 => {name: "punctuation.definition.string.end.perl"}},
|
635
|
+
name: "string.quoted.other.q-bracket.perl",
|
636
|
+
patterns: [{include: "#escaped_char"}, {include: "#nested_brackets"}]},
|
637
|
+
{begin: /\bqw?\s*\</,
|
638
|
+
beginCaptures: {0 => {name: "punctuation.definition.string.begin.perl"}},
|
639
|
+
end: "\\>",
|
640
|
+
endCaptures: {0 => {name: "punctuation.definition.string.end.perl"}},
|
641
|
+
name: "string.quoted.other.q-ltgt.perl",
|
642
|
+
patterns: [{include: "#escaped_char"}, {include: "#nested_ltgt"}]},
|
643
|
+
{begin: /^__\w+__/,
|
644
|
+
beginCaptures: {0 => {name: "punctuation.definition.string.begin.perl"}},
|
645
|
+
end: "$",
|
646
|
+
endCaptures: {0 => {name: "punctuation.definition.string.end.perl"}},
|
647
|
+
name: "string.unquoted.program-block.perl"},
|
648
|
+
{begin: /\b(format)\s+([A-Za-z]+)\s*=/,
|
649
|
+
beginCaptures:
|
650
|
+
{1 => {name: "support.function.perl"},
|
651
|
+
2 => {name: "entity.name.function.format.perl"}},
|
652
|
+
end: "^\\.\\s*$",
|
653
|
+
name: "meta.format.perl",
|
654
|
+
patterns: [{include: "#line_comment"}, {include: "#variable"}]},
|
655
|
+
{match:
|
656
|
+
/\b(ARGV|DATA|ENV|SIG|STDERR|STDIN|STDOUT|atan2|bind|binmode|bless|caller|chdir|chmod|chomp|chop|chown|chr|chroot|close|closedir|cmp|connect|cos|crypt|dbmclose|dbmopen|defined|delete|dump|each|endgrent|endhostent|endnetent|endprotoent|endpwent|endservent|eof|eq|eval|exec|exists|exp|fcntl|fileno|flock|fork|format|formline|ge|getc|getgrent|getgrgid|getgrnam|gethostbyaddr|gethostbyname|gethostent|getlogin|getnetbyaddr|getnetbyname|getnetent|getpeername|getpgrp|getppid|getpriority|getprotobyname|getprotobynumber|getprotoent|getpwent|getpwnam|getpwuid|getservbyname|getservbyport|getservent|getsockname|getsockopt|glob|gmtime|grep|gt|hex|import|index|int|ioctl|join|keys|kill|lc|lcfirst|le|length|link|listen|local|localtime|log|lstat|lt|m|map|mkdir|msgctl|msgget|msgrcv|msgsnd|ne|no|oct|open|opendir|ord|pack|pipe|pop|pos|print|printf|push|q|qq|quotemeta|qw|qx|rand|read|readdir|readlink|recv|ref|rename|reset|reverse|rewinddir|rindex|rmdir|s|scalar|seek|seekdir|semctl|semget|semop|send|setgrent|sethostent|setnetent|setpgrp|setpriority|setprotoent|setpwent|setservent|setsockopt|shift|shmctl|shmget|shmread|shmwrite|shutdown|sin|sleep|socket|socketpair|sort|splice|split|sprintf|sqrt|srand|stat|study|substr|symlink|syscall|sysopen|sysread|system|syswrite|tell|telldir|tie|tied|time|times|tr|truncate|uc|ucfirst|umask|undef|unlink|unpack|unshift|untie|utime|values|vec|waitpid|wantarray|warn|write|y|q|qw|qq|qx)\b/,
|
657
|
+
name: "support.function.perl"}],
|
658
|
+
repository:
|
659
|
+
{escaped_char: {match: /\\./, name: "constant.character.escape.perl"},
|
660
|
+
line_comment:
|
661
|
+
{patterns:
|
662
|
+
[{captures:
|
663
|
+
{1 => {name: "comment.line.number-sign.perl"},
|
664
|
+
2 => {name: "punctuation.definition.comment.perl"}},
|
665
|
+
match: /^((#).*$\n?)/,
|
666
|
+
name: "meta.comment.full-line.perl"},
|
667
|
+
{captures: {1 => {name: "punctuation.definition.comment.perl"}},
|
668
|
+
match: /(#).*$\n?/,
|
669
|
+
name: "comment.line.number-sign.perl"}]},
|
670
|
+
nested_braces:
|
671
|
+
{begin: /\{/,
|
672
|
+
captures: {1 => {name: "punctuation.section.scope.perl"}},
|
673
|
+
end: "\\}",
|
674
|
+
patterns: [{include: "#escaped_char"}, {include: "#nested_braces"}]},
|
675
|
+
nested_braces_interpolated:
|
676
|
+
{begin: /\{/,
|
677
|
+
captures: {1 => {name: "punctuation.section.scope.perl"}},
|
678
|
+
end: "\\}",
|
679
|
+
patterns:
|
680
|
+
[{include: "#escaped_char"},
|
681
|
+
{include: "#variable"},
|
682
|
+
{include: "#nested_braces_interpolated"}]},
|
683
|
+
nested_brackets:
|
684
|
+
{begin: /\[/,
|
685
|
+
captures: {1 => {name: "punctuation.section.scope.perl"}},
|
686
|
+
end: "\\]",
|
687
|
+
patterns: [{include: "#escaped_char"}, {include: "#nested_brackets"}]},
|
688
|
+
nested_brackets_interpolated:
|
689
|
+
{begin: /\[/,
|
690
|
+
captures: {1 => {name: "punctuation.section.scope.perl"}},
|
691
|
+
end: "\\]",
|
692
|
+
patterns:
|
693
|
+
[{include: "#escaped_char"},
|
694
|
+
{include: "#variable"},
|
695
|
+
{include: "#nested_brackets_interpolated"}]},
|
696
|
+
nested_ltgt:
|
697
|
+
{begin: /</,
|
698
|
+
captures: {1 => {name: "punctuation.section.scope.perl"}},
|
699
|
+
end: ">",
|
700
|
+
patterns: [{include: "#nested_ltgt"}]},
|
701
|
+
nested_ltgt_interpolated:
|
702
|
+
{begin: /</,
|
703
|
+
captures: {1 => {name: "punctuation.section.scope.perl"}},
|
704
|
+
end: ">",
|
705
|
+
patterns:
|
706
|
+
[{include: "#variable"}, {include: "#nested_ltgt_interpolated"}]},
|
707
|
+
nested_parens:
|
708
|
+
{begin: /\(/,
|
709
|
+
captures: {1 => {name: "punctuation.section.scope.perl"}},
|
710
|
+
end: "\\)",
|
711
|
+
patterns: [{include: "#escaped_char"}, {include: "#nested_parens"}]},
|
712
|
+
nested_parens_interpolated:
|
713
|
+
{begin: /\(/,
|
714
|
+
captures: {1 => {name: "punctuation.section.scope.perl"}},
|
715
|
+
end: "\\)",
|
716
|
+
patterns:
|
717
|
+
[{comment:
|
718
|
+
"This is to prevent thinks like qr/foo$/ to treat $/ as a variable",
|
719
|
+
match: /\$(?=[^\s\w\'\{\[\(\<])/,
|
720
|
+
name: "keyword.control.anchor.perl"},
|
721
|
+
{include: "#escaped_char"},
|
722
|
+
{include: "#variable"},
|
723
|
+
{include: "#nested_parens_interpolated"}]},
|
724
|
+
variable:
|
725
|
+
{patterns:
|
726
|
+
[{captures: {1 => {name: "punctuation.definition.variable.perl"}},
|
727
|
+
match: /(\$)&(?![A-Za-z0-9_])/,
|
728
|
+
name: "variable.other.regexp.match.perl"},
|
729
|
+
{captures: {1 => {name: "punctuation.definition.variable.perl"}},
|
730
|
+
match: /(\$)`(?![A-Za-z0-9_])/,
|
731
|
+
name: "variable.other.regexp.pre-match.perl"},
|
732
|
+
{captures: {1 => {name: "punctuation.definition.variable.perl"}},
|
733
|
+
match: /(\$)'(?![A-Za-z0-9_])/,
|
734
|
+
name: "variable.other.regexp.post-match.perl"},
|
735
|
+
{captures: {1 => {name: "punctuation.definition.variable.perl"}},
|
736
|
+
match: /(\$)\+(?![A-Za-z0-9_])/,
|
737
|
+
name: "variable.other.regexp.last-paren-match.perl"},
|
738
|
+
{captures: {1 => {name: "punctuation.definition.variable.perl"}},
|
739
|
+
match: /(\$)"(?![A-Za-z0-9_])/,
|
740
|
+
name: "variable.other.readwrite.list-separator.perl"},
|
741
|
+
{captures: {1 => {name: "punctuation.definition.variable.perl"}},
|
742
|
+
match: /(\$)0(?![A-Za-z0-9_])/,
|
743
|
+
name: "variable.other.predefined.program-name.perl"},
|
744
|
+
{captures: {1 => {name: "punctuation.definition.variable.perl"}},
|
745
|
+
match: /(\$)[_ab\*\.\/\|,\\;#%=\-~^:?!\$<>\(\)\[\]@](?![A-Za-z0-9_])/,
|
746
|
+
name: "variable.other.predefined.perl"},
|
747
|
+
{captures: {1 => {name: "punctuation.definition.variable.perl"}},
|
748
|
+
match: /(\$)[0-9]+(?![A-Za-z0-9_])/,
|
749
|
+
name: "variable.other.subpattern.perl"},
|
750
|
+
{captures: {1 => {name: "punctuation.definition.variable.perl"}},
|
751
|
+
match:
|
752
|
+
/([\$\@\%](#)?)([a-zA-Zx7f-xff\$]|::)([a-zA-Z0-9_x7f-xff\$]|::)*\b/,
|
753
|
+
name: "variable.other.readwrite.global.perl"},
|
754
|
+
{captures:
|
755
|
+
{1 => {name: "punctuation.definition.variable.perl"},
|
756
|
+
2 => {name: "punctuation.definition.variable.perl"}},
|
757
|
+
match:
|
758
|
+
/(\$\{)(?:[a-zA-Zx7f-xff\$]|::)(?:[a-zA-Z0-9_x7f-xff\$]|::)*(\})/,
|
759
|
+
name: "variable.other.readwrite.global.perl"},
|
760
|
+
{captures: {1 => {name: "punctuation.definition.variable.perl"}},
|
761
|
+
match: /([\$\@\%](#)?)[0-9_]\b/,
|
762
|
+
name: "variable.other.readwrite.global.special.perl"}]}},
|
763
|
+
scopeName: "source.perl",
|
764
|
+
uuid: "EDBFE125-6B1C-11D9-9189-000D93589AF6"}
|