ver 2010.02 → 2010.08
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +1 -0
- data/.yardopts +1 -1
- data/AUTHORS +2 -2
- data/CHANGELOG +1160 -0
- data/MANIFEST +212 -62
- data/README.textile +68 -9
- data/Rakefile +2 -2
- data/bin/ver +33 -8
- data/config/commands/ANTLR.rb +11 -0
- data/config/commands/ActionScript.rb +102 -0
- data/config/commands/Active4D.rb +30 -0
- data/config/commands/Ada.rb +11 -0
- data/config/commands/Ant.rb +90 -0
- data/config/commands/Apache.rb +98 -0
- data/config/commands/AppleScript.rb +169 -0
- data/config/commands/Blogging.rb +72 -0
- data/config/commands/Bulletin Board.rb +10 -0
- data/config/commands/Bundle Development.rb +83 -0
- data/config/commands/C++ Qt.rb +158 -0
- data/config/commands/C.rb +82 -0
- data/config/commands/CMake.rb +32 -0
- data/config/commands/CSS.rb +76 -0
- data/config/commands/CTags.rb +29 -0
- data/config/commands/CVS.rb +114 -0
- data/config/commands/CoffeeScript.rb +58 -0
- data/config/commands/Context Free.rb +20 -0
- data/config/commands/Cucumber.rb +94 -0
- data/config/commands/D.rb +47 -0
- data/config/commands/Darcs.rb +72 -0
- data/config/commands/Diff.rb +76 -0
- data/config/commands/Doxygen.rb +9 -0
- data/config/commands/Experimental Wiki.rb +9 -0
- data/config/commands/Experimental.rb +172 -0
- data/config/commands/F-Script.rb +13 -0
- data/config/commands/FXScript.rb +11 -0
- data/config/commands/FileMerge.rb +42 -0
- data/config/commands/Fortran.rb +58 -0
- data/config/commands/GTD2.rb +134 -0
- data/config/commands/GTDAlt.rb +225 -0
- data/config/commands/GetBundle.rb +41 -0
- data/config/commands/Go.rb +29 -0
- data/config/commands/Graphviz.rb +11 -0
- data/config/commands/Greasemonkey.rb +158 -0
- data/config/commands/Gri.rb +11 -0
- data/config/commands/Groovy Grails.rb +174 -0
- data/config/commands/Groovy.rb +66 -0
- data/config/commands/HTML.rb +206 -0
- data/config/commands/Haskell.rb +48 -0
- data/config/commands/Hotkey.rb +50 -0
- data/config/commands/Hyperlink Helper.rb +81 -0
- data/config/commands/ImageBrowser.rb +10 -0
- data/config/commands/Io.rb +11 -0
- data/config/commands/JSFL.rb +29 -0
- data/config/commands/JSON.rb +11 -0
- data/config/commands/Java.rb +45 -0
- data/config/commands/JavaDoc.rb +12 -0
- data/config/commands/JavaScript Prototype & Script.aculo.us.rb +51 -0
- data/config/commands/JavaScript YUI.rb +12 -0
- data/config/commands/JavaScript jQuery.rb +12 -0
- data/config/commands/JavaScript.rb +50 -0
- data/config/commands/LaTeX.rb +423 -0
- data/config/commands/Lisp.rb +20 -0
- data/config/commands/Logo.rb +10 -0
- data/config/commands/Logtalk.rb +34 -0
- data/config/commands/Lua.rb +29 -0
- data/config/commands/MEL.rb +20 -0
- data/config/commands/Mail.rb +73 -0
- data/config/commands/Make.rb +20 -0
- data/config/commands/Man Pages.rb +20 -0
- data/config/commands/Markdown.rb +194 -0
- data/config/commands/Math.rb +79 -0
- data/config/commands/Matlab.rb +188 -0
- data/config/commands/Maven.rb +162 -0
- data/config/commands/Mediawiki.rb +12 -0
- data/config/commands/Mercurial.rb +185 -0
- data/config/commands/MoinMoin.rb +74 -0
- data/config/commands/Movable Type.rb +68 -0
- data/config/commands/Nemerle.rb +29 -0
- data/config/commands/OCaml Experimental Completions.rb +22 -0
- data/config/commands/OCaml.rb +99 -0
- data/config/commands/Objective-C.rb +181 -0
- data/config/commands/Outlines.rb +54 -0
- data/config/commands/PHP Smarty.rb +10 -0
- data/config/commands/Pascal.rb +11 -0
- data/config/commands/Perforce.rb +102 -0
- data/config/commands/Perl.rb +78 -0
- data/config/commands/Processing.rb +11 -0
- data/config/commands/Prolog.rb +11 -0
- data/config/commands/Property List.rb +38 -0
- data/config/commands/Python Django.rb +11 -0
- data/config/commands/Python.rb +131 -0
- data/config/commands/R Console (R.app).rb +80 -0
- data/config/commands/R Console (Rdaemon).rb +414 -0
- data/config/commands/R.rb +337 -0
- data/config/commands/Ragel.rb +10 -0
- data/config/commands/Regular Expressions.rb +18 -0
- data/config/commands/Remind.rb +44 -0
- data/config/commands/Ruby RSpec.rb +40 -0
- data/config/commands/Ruby on Rails.rb +331 -0
- data/config/commands/Ruby.rb +220 -0
- data/config/commands/S5 Slide Show.rb +37 -0
- data/config/commands/SCons.rb +24 -0
- data/config/commands/SQL.rb +60 -0
- data/config/commands/SVK.rb +83 -0
- data/config/commands/SWeave.rb +63 -0
- data/config/commands/Scheme.rb +30 -0
- data/config/commands/Scilab.rb +28 -0
- data/config/commands/Setext.rb +20 -0
- data/config/commands/Shell Script.rb +59 -0
- data/config/commands/Slate.rb +9 -0
- data/config/commands/Source.rb +84 -0
- data/config/commands/Standard ML.rb +38 -0
- data/config/commands/Subversion.rb +181 -0
- data/config/commands/TODO.rb +32 -0
- data/config/commands/Tcl.rb +21 -0
- data/config/commands/TerminalMate.rb +30 -0
- data/config/commands/Text.rb +137 -0
- data/config/commands/TextMate.rb +100 -0
- data/config/commands/Textile.rb +58 -0
- data/config/commands/Thrift.rb +20 -0
- data/config/commands/Transmit.rb +34 -0
- data/config/commands/Txt2tags.rb +213 -0
- data/config/commands/Vectorscript.rb +19 -0
- data/config/commands/Widget Creator.rb +23 -0
- data/config/commands/XML.rb +29 -0
- data/config/commands/Xcode.rb +106 -0
- data/config/commands/YAML.rb +39 -0
- data/config/commands/YARD.rb +12 -0
- data/config/commands/iTerm.rb +26 -0
- data/config/commands/reStructuredText.rb +126 -0
- data/config/detect.rb +13 -1
- data/config/keymap/diakonos.rb +113 -115
- data/config/keymap/emacs.rb +6 -2
- data/config/keymap/nano.rb +104 -112
- data/config/keymap/vim.rb +329 -258
- data/config/plugin/autosave.rb +3 -6
- data/config/plugin/git.rb +18 -12
- data/config/plugin/soma.rb +1 -1
- data/config/preferences/Apache.rb +17 -17
- data/config/preferences/AppleScript.rb +5 -5
- data/config/preferences/Bundle Development.rb +10 -10
- data/config/preferences/C.rb +38 -30
- data/config/preferences/CoffeeScript.rb +28 -0
- data/config/preferences/ColdFusion.rb +6 -6
- data/config/preferences/Cucumber.rb +40 -0
- data/config/preferences/Diff.rb +4 -4
- data/config/preferences/Eiffel.rb +6 -6
- data/config/preferences/Erlang.rb +16 -16
- data/config/preferences/F-Script.rb +12 -12
- data/config/preferences/FXScript.rb +5 -5
- data/config/preferences/Fortran.rb +17 -17
- data/config/preferences/Go.rb +23 -0
- data/config/preferences/Groovy.rb +29 -0
- data/config/preferences/HTML.rb +44 -44
- data/config/preferences/Haskell.rb +14 -14
- data/config/preferences/Io.rb +11 -11
- data/config/preferences/Java.rb +8 -8
- data/config/preferences/LaTeX.rb +24 -24
- data/config/preferences/Logo.rb +6 -6
- data/config/preferences/Logtalk.rb +5 -5
- data/config/preferences/Markdown.rb +43 -0
- data/config/preferences/Maven.rb +42 -42
- data/config/preferences/Mediawiki.rb +8 -8
- data/config/preferences/Movable Type.rb +14 -14
- data/config/preferences/OCaml.rb +15 -15
- data/config/preferences/Objective-C.rb +5 -5
- data/config/preferences/PHP.rb +2564 -0
- data/config/preferences/Property List.rb +8 -8
- data/config/preferences/R.rb +5 -5
- data/config/preferences/Ruby.rb +24 -24
- data/config/preferences/Source.rb +13 -13
- data/config/preferences/Standard ML.rb +9 -9
- data/config/preferences/Tcl.rb +5 -5
- data/config/preferences/Text.rb +14 -14
- data/config/preferences/TextMate.rb +5 -5
- data/config/preferences/Textile.rb +8 -8
- data/config/preferences/YARD.rb +9 -0
- data/config/preferences/iTerm.rb +9 -9
- data/config/rc.rb +5 -2
- data/config/snippets/ASP vb.NET.rb +203 -54
- data/config/snippets/ASP.rb +51 -36
- data/config/snippets/ActionScript.rb +332 -205
- data/config/snippets/Active4D.rb +325 -256
- data/config/snippets/Ada.rb +106 -60
- data/config/snippets/Ant.rb +7 -5
- data/config/snippets/Apache.rb +24 -20
- data/config/snippets/AppleScript.rb +213 -82
- data/config/snippets/Blogging.rb +41 -18
- data/config/snippets/Bulletin Board.rb +56 -21
- data/config/snippets/Bundle Development.rb +108 -63
- data/config/snippets/C++ Qt.rb +72 -57
- data/config/snippets/C.rb +128 -100
- data/config/snippets/CMake.rb +42 -32
- data/config/snippets/CSS.rb +515 -115
- data/config/snippets/CoffeeScript.rb +85 -0
- data/config/snippets/ColdFusion.rb +2228 -1547
- data/config/snippets/Context Free.rb +35 -28
- data/config/snippets/Cucumber.rb +55 -0
- data/config/snippets/D.rb +164 -111
- data/config/snippets/DokuWiki.rb +103 -54
- data/config/snippets/Doxygen.rb +87 -40
- data/config/snippets/Eiffel.rb +121 -18
- data/config/snippets/Erlang.rb +109 -68
- data/config/snippets/F-Script.rb +30 -24
- data/config/snippets/FXScript.rb +364 -210
- data/config/snippets/Fortran.rb +462 -280
- data/config/snippets/GTDAlt.rb +10 -4
- data/config/snippets/Gettext.rb +10 -8
- data/config/snippets/Go.rb +52 -0
- data/config/snippets/Greasemonkey.rb +52 -42
- data/config/snippets/Gri.rb +12 -10
- data/config/snippets/Groovy Grails.rb +313 -0
- data/config/snippets/Groovy.rb +685 -0
- data/config/snippets/HTML.rb +325 -126
- data/config/snippets/Haskell.rb +32 -24
- data/config/snippets/Io.rb +53 -42
- data/config/snippets/Java.rb +204 -92
- data/config/snippets/JavaDoc.rb +105 -56
- data/config/snippets/JavaScript MooTools.rb +208 -13
- data/config/snippets/JavaScript Objective-J.rb +18 -15
- data/config/snippets/JavaScript Prototype & Script.aculo.us.rb +362 -107
- data/config/snippets/JavaScript YUI.rb +1245 -186
- data/config/snippets/JavaScript jQuery.rb +693 -375
- data/config/snippets/JavaScript.rb +71 -53
- data/config/snippets/LaTeX.rb +188 -0
- data/config/snippets/Lisp.rb +59 -40
- data/config/snippets/Logo.rb +12 -6
- data/config/snippets/Logtalk.rb +131 -60
- data/config/snippets/Lua.rb +43 -33
- data/config/snippets/MIPS Assembler.rb +7 -5
- data/config/snippets/Mail.rb +10 -1
- data/config/snippets/Markdown.rb +7 -0
- data/config/snippets/Matlab.rb +232 -178
- data/config/snippets/Maven.rb +6 -5
- data/config/snippets/Mediawiki.rb +43 -12
- data/config/snippets/MoinMoin.rb +50 -10
- data/config/snippets/Movable Type.rb +368 -53
- data/config/snippets/Nemerle.rb +127 -79
- data/config/snippets/OCaml Code Completion Misc.rb +1716 -72
- data/config/snippets/OCaml Code Completion Unix.rb +2128 -203
- data/config/snippets/OCaml.rb +107 -73
- data/config/snippets/ODCompletion.rb +169 -118
- data/config/snippets/Objective-C.rb +281 -193
- data/config/snippets/PHP Smarty.rb +149 -79
- data/config/snippets/PHP.rb +186 -0
- data/config/snippets/Pascal.rb +47 -33
- data/config/snippets/Perl HTML-Template.rb +33 -0
- data/config/snippets/Perl Mason.rb +50 -30
- data/config/snippets/Perl Template Toolkit.rb +25 -20
- data/config/snippets/Perl.rb +91 -72
- data/config/snippets/Processing.rb +55 -33
- data/config/snippets/Propel.rb +36 -30
- data/config/snippets/Property List.rb +57 -24
- data/config/snippets/Python Django Templates.rb +381 -95
- data/config/snippets/Python Django.rb +159 -132
- data/config/snippets/Python.rb +88 -0
- data/config/snippets/R Console (Rdaemon).rb +11 -9
- data/config/snippets/R.rb +96 -77
- data/config/snippets/Remind.rb +18 -15
- data/config/snippets/Ruby RSpec.rb +343 -238
- data/config/snippets/Ruby on Rails.rb +1116 -765
- data/config/snippets/Ruby.rb +770 -545
- data/config/snippets/S5 Slide Show.rb +32 -24
- data/config/snippets/SSH Config.rb +21 -17
- data/config/snippets/SWIG.rb +30 -18
- data/config/snippets/Scilab.rb +98 -79
- data/config/snippets/Setext.rb +10 -8
- data/config/snippets/Shell Script.rb +52 -42
- data/config/snippets/Slate.rb +62 -48
- data/config/snippets/Source.rb +24 -1
- data/config/snippets/Standard ML.rb +37 -27
- data/config/snippets/Tcl.rb +32 -26
- data/config/snippets/Text.rb +28 -15
- data/config/snippets/Textile.rb +130 -45
- data/config/snippets/Thrift.rb +22 -18
- data/config/snippets/Twiki.rb +158 -105
- data/config/snippets/Txt2tags.rb +166 -79
- data/config/snippets/Vectorscript.rb +47 -38
- data/config/snippets/Widget Creator.rb +5 -5
- data/config/snippets/XML.rb +30 -18
- data/config/snippets/YAML.rb +5 -4
- data/config/snippets/YARD.rb +93 -0
- data/config/snippets/reStructuredText.rb +25 -20
- data/config/syntax/ANTLR.rb +17 -15
- data/config/syntax/ASP vb.NET.rb +27 -24
- data/config/syntax/ASP.rb +21 -19
- data/config/syntax/ActionScript.rb +16 -16
- data/config/syntax/Active4D Config.rb +5 -5
- data/config/syntax/Active4D Library.rb +2 -2
- data/config/syntax/Active4D.rb +32 -30
- data/config/syntax/Ada.rb +13 -10
- data/config/syntax/Ant.rb +9 -7
- data/config/syntax/Apache.rb +22 -18
- data/config/syntax/AppleScript.rb +486 -192
- data/config/syntax/AsciiDoc.rb +21 -0
- data/config/syntax/BibTeX.rb +7 -7
- data/config/syntax/Blog - HTML.rb +7 -7
- data/config/syntax/Blog - Markdown.rb +6 -6
- data/config/syntax/Blog - Text.rb +2 -2
- data/config/syntax/Blog - Textile.rb +2 -2
- data/config/syntax/Bulletin Board.rb +33 -32
- data/config/syntax/C++ Qt.rb +7 -6
- data/config/syntax/C++.rb +31 -28
- data/config/syntax/C.rb +55 -51
- data/config/syntax/CMake Listfile.rb +12 -11
- data/config/syntax/CSS.rb +24 -23
- data/config/syntax/CSV.rb +3 -3
- data/config/syntax/CoffeeScript.rb +161 -0
- data/config/syntax/ColdFusion.rb +8 -8
- data/config/syntax/Context Free.rb +18 -16
- data/config/syntax/Cucumber Steps.rb +108 -0
- data/config/syntax/D.rb +70 -69
- data/config/syntax/Diff.rb +13 -10
- data/config/syntax/DokuWiki.rb +22 -18
- data/config/syntax/Doxygen.rb +1 -1
- data/config/syntax/Dylan.rb +8 -8
- data/config/syntax/Eiffel.rb +12 -12
- data/config/syntax/Erlang.rb +96 -89
- data/config/syntax/F-Script.rb +11 -9
- data/config/syntax/FXScript.rb +16 -14
- data/config/syntax/Fortran - Modern.rb +25 -24
- data/config/syntax/Fortran - Punchcard.rb +43 -40
- data/config/syntax/GTD.rb +1 -1
- data/config/syntax/GTDalt.rb +14 -11
- data/config/syntax/Gettext.rb +10 -9
- data/config/syntax/Gherkin.rb +65 -0
- data/config/syntax/Go.rb +256 -0
- data/config/syntax/Grails Server Page.rb +108 -0
- data/config/syntax/Graphviz (DOT).rb +6 -6
- data/config/syntax/Greasemonkey.rb +3 -3
- data/config/syntax/Gri.rb +12 -12
- data/config/syntax/Groovy.rb +502 -0
- data/config/syntax/HTML (ASP).rb +3 -3
- data/config/syntax/HTML (ASP.net).rb +31 -31
- data/config/syntax/HTML (Active4D).rb +19 -19
- data/config/syntax/HTML (Django).rb +6 -6
- data/config/syntax/HTML (Erlang).rb +4 -4
- data/config/syntax/HTML (Mason).rb +13 -13
- data/config/syntax/HTML (Rails).rb +5 -5
- data/config/syntax/HTML (Tcl).rb +3 -3
- data/config/syntax/HTML (Template Toolkit).rb +9 -9
- data/config/syntax/HTML.rb +27 -27
- data/config/syntax/Haskell.rb +31 -28
- data/config/syntax/Inform.rb +5 -5
- data/config/syntax/Ini.rb +4 -4
- data/config/syntax/Installer Distribution Script.rb +19 -18
- data/config/syntax/Io.rb +17 -15
- data/config/syntax/JSFL.rb +7 -6
- data/config/syntax/Java Properties.rb +3 -3
- data/config/syntax/Java Server Page (JSP).rb +5 -4
- data/config/syntax/Java.rb +40 -33
- data/config/syntax/JavaDoc.rb +24 -22
- data/config/syntax/JavaScript (Rails).rb +1 -1
- data/config/syntax/JavaScript.rb +41 -34
- data/config/syntax/Javascript YUI.rb +109 -101
- data/config/syntax/LaTeX Beamer.rb +3 -3
- data/config/syntax/LaTeX Log.rb +3 -3
- data/config/syntax/LaTeX Memoir.rb +7 -5
- data/config/syntax/LaTeX Rdaemon.rb +1 -1
- data/config/syntax/LaTeX.rb +52 -47
- data/config/syntax/Language Grammar.rb +58 -55
- data/config/syntax/Lex-Flex.rb +13 -13
- data/config/syntax/Lighttpd.rb +7 -7
- data/config/syntax/Lisp.rb +6 -5
- data/config/syntax/Literate Haskell.rb +2 -2
- data/config/syntax/Logo.rb +4 -4
- data/config/syntax/Logtalk.rb +64 -49
- data/config/syntax/Lua.rb +12 -12
- data/config/syntax/MATLAB.rb +71 -70
- data/config/syntax/MEL.rb +16 -15
- data/config/syntax/MIPS Assembler.rb +11 -11
- data/config/syntax/MacPorts Portfile.rb +16 -15
- data/config/syntax/Mail.rb +5 -4
- data/config/syntax/Makefile.rb +3 -3
- data/config/syntax/Man.rb +2 -2
- data/config/syntax/Markdown.rb +440 -0
- data/config/syntax/Maven POM.rb +17 -16
- data/config/syntax/Mediawiki.rb +46 -46
- data/config/syntax/Modula-3.rb +7 -6
- data/config/syntax/MoinMoin.rb +16 -16
- data/config/syntax/MooTools.rb +75 -65
- data/config/syntax/Movable Type (MT only).rb +18 -18
- data/config/syntax/Movable Type.rb +20 -20
- data/config/syntax/MultiMarkdown.rb +35 -0
- data/config/syntax/Nemerle.rb +12 -12
- data/config/syntax/OCaml.rb +79 -71
- data/config/syntax/OCamllex.rb +14 -14
- data/config/syntax/OCamlyacc.rb +14 -12
- data/config/syntax/Objective-C++.rb +2 -2
- data/config/syntax/Objective-C.rb +76 -70
- data/config/syntax/Objective-J.rb +30 -29
- data/config/syntax/Octave.rb +27 -27
- data/config/syntax/OpenGL.rb +4 -4
- data/config/syntax/PHP.rb +1154 -0
- data/config/syntax/Pascal.rb +8 -8
- data/config/syntax/Perl HTML-Template.rb +5 -5
- data/config/syntax/Perl.rb +80 -76
- data/config/syntax/Plain Text.rb +5 -5
- data/config/syntax/Postscript.rb +6 -6
- data/config/syntax/Processing.rb +20 -20
- data/config/syntax/Prolog.rb +2 -2
- data/config/syntax/Property List.rb +50 -47
- data/config/syntax/Prototype & Script.aculo.us (JavaScript) Bracketed.rb +15 -13
- data/config/syntax/Prototype & Script.aculo.us (JavaScript).rb +9 -8
- data/config/syntax/Python Django.rb +6 -6
- data/config/syntax/Python.rb +94 -87
- data/config/syntax/Quake Style .cfg.rb +4 -4
- data/config/syntax/R Console (Rdaemon) Plain.rb +2 -2
- data/config/syntax/R Console (Rdaemon).rb +2 -2
- data/config/syntax/R.rb +21 -20
- data/config/syntax/RSpec.rb +15 -15
- data/config/syntax/Ragel.rb +14 -13
- data/config/syntax/Rd (R Documentation).rb +4 -4
- data/config/syntax/Regular Expressions (Oniguruma).rb +11 -10
- data/config/syntax/Regular Expressions (Python).rb +9 -9
- data/config/syntax/Release Notes.rb +7 -6
- data/config/syntax/Remind.rb +19 -17
- data/config/syntax/Rez.rb +10 -9
- data/config/syntax/Ruby Haml.rb +11 -11
- data/config/syntax/Ruby on Rails.rb +26 -24
- data/config/syntax/Ruby.rb +73 -71
- data/config/syntax/S5 Slide Show.rb +9 -9
- data/config/syntax/SQL.rb +29 -27
- data/config/syntax/SSH Config.rb +4 -4
- data/config/syntax/SWIG.rb +12 -11
- data/config/syntax/SWeave.rb +8 -7
- data/config/syntax/Scheme.rb +56 -54
- data/config/syntax/Scilab.rb +7 -6
- data/config/syntax/Setext.rb +14 -13
- data/config/syntax/Shell Script (Bash).rb +42 -42
- data/config/syntax/Slate.rb +24 -19
- data/config/syntax/Smarty.rb +11 -10
- data/config/syntax/Standard ML - CM.rb +2 -2
- data/config/syntax/Standard ML.rb +26 -23
- data/config/syntax/Strings File.rb +6 -6
- data/config/syntax/TSV.rb +2 -2
- data/config/syntax/Tcl.rb +10 -9
- data/config/syntax/TeX Math.rb +7 -6
- data/config/syntax/TeX.rb +7 -7
- data/config/syntax/Textile.rb +33 -27
- data/config/syntax/Thrift.rb +37 -29
- data/config/syntax/Twiki.rb +19 -18
- data/config/syntax/Txt2tags.rb +26 -23
- data/config/syntax/Vectorscript.rb +9 -7
- data/config/syntax/XML strict.rb +6 -4
- data/config/syntax/XML.rb +55 -30
- data/config/syntax/XSL.rb +5 -5
- data/config/syntax/YAML.rb +14 -12
- data/config/syntax/camlp4.rb +5 -5
- data/config/syntax/iCalendar.rb +3 -3
- data/config/syntax/jQuery (JavaScript).rb +9 -9
- data/config/syntax/mod_perl.rb +6 -6
- data/config/syntax/qmake Project file.rb +16 -15
- data/config/syntax/reStructuredText.rb +23 -21
- data/config/syntax/svn-commit.tmp.rb +5 -5
- data/lib/ver.rb +169 -85
- data/lib/ver/action.rb +39 -30
- data/lib/ver/buffer.rb +962 -144
- data/lib/ver/buffer/frame.rb +23 -0
- data/lib/ver/buffer/invalid_trailing_whitespace.rb +17 -0
- data/lib/ver/buffer/markup_underline_link.rb +30 -0
- data/lib/ver/buffer/matching_brace.rb +22 -0
- data/lib/ver/buffer/term.rb +1 -1
- data/lib/ver/clipboard.rb +107 -0
- data/lib/ver/digraphs.rb +1373 -0
- data/lib/ver/entry.rb +54 -43
- data/lib/ver/event.rb +335 -0
- data/lib/ver/exception_view.rb +3 -1
- data/lib/ver/executor.rb +7 -7
- data/lib/ver/executor/buffer.rb +4 -4
- data/lib/ver/executor/encoding.rb +19 -0
- data/lib/ver/executor/entry.rb +9 -9
- data/lib/ver/executor/fuzzy_file_finder.rb +1 -1
- data/lib/ver/executor/label.rb +2 -0
- data/lib/ver/executor/method.rb +2 -3
- data/lib/ver/help/describe_key.rb +44 -44
- data/lib/ver/hover_completion.rb +11 -6
- data/lib/ver/keymap.rb +68 -39
- data/lib/ver/layout/paned.rb +56 -44
- data/lib/ver/layout/toplevel.rb +68 -0
- data/lib/ver/layout/vim.rb +919 -0
- data/lib/ver/major_mode.rb +49 -49
- data/lib/ver/methods.rb +22 -25
- data/lib/ver/methods/basic.rb +49 -20
- data/lib/ver/methods/bookmark.rb +33 -33
- data/lib/ver/methods/clipboard.rb +186 -49
- data/lib/ver/methods/completion.rb +5 -5
- data/lib/ver/methods/control.rb +47 -66
- data/lib/ver/methods/delete.rb +5 -122
- data/lib/ver/methods/help.rb +2 -2
- data/lib/ver/methods/insert.rb +101 -29
- data/lib/ver/methods/layout.rb +62 -64
- data/lib/ver/methods/macro.rb +45 -0
- data/lib/ver/methods/move.rb +63 -349
- data/lib/ver/methods/nano.rb +99 -71
- data/lib/ver/methods/open.rb +8 -7
- data/lib/ver/methods/preview.rb +34 -14
- data/lib/ver/methods/save.rb +194 -163
- data/lib/ver/methods/search.rb +169 -81
- data/lib/ver/methods/search_and_replace.rb +62 -49
- data/lib/ver/methods/selection.rb +26 -54
- data/lib/ver/methods/snippet.rb +79 -54
- data/lib/ver/methods/undo.rb +12 -16
- data/lib/ver/minibuffer.rb +283 -134
- data/lib/ver/minor_mode.rb +36 -47
- data/lib/ver/mode_resolving.rb +71 -0
- data/lib/ver/platform.rb +41 -0
- data/lib/ver/plist.rb +16 -4
- data/lib/ver/register.rb +86 -0
- data/lib/ver/status.rb +44 -6
- data/lib/ver/status/battery.rb +1 -1
- data/lib/ver/status/buffer_position.rb +2 -2
- data/lib/ver/status/diakonos_position.rb +3 -3
- data/lib/ver/status/encoding.rb +1 -1
- data/lib/ver/status/filename.rb +1 -1
- data/lib/ver/status/label.rb +20 -20
- data/lib/ver/status/mode.rb +1 -1
- data/lib/ver/status/nano_help.rb +3 -14
- data/lib/ver/status/nano_position.rb +6 -6
- data/lib/ver/status/percent.rb +2 -2
- data/lib/ver/status/position.rb +2 -2
- data/lib/ver/status/short_filename.rb +1 -1
- data/lib/ver/status/syntax.rb +1 -1
- data/lib/ver/struct.rb +28 -0
- data/lib/ver/syntax/processor.rb +2 -1
- data/lib/ver/text.rb +48 -520
- data/lib/ver/text/end.rb +14 -0
- data/lib/ver/text/index.rb +16 -101
- data/lib/ver/text/insert.rb +138 -0
- data/lib/ver/text/mark.rb +559 -0
- data/lib/ver/text/position.rb +240 -0
- data/lib/ver/text/range.rb +74 -0
- data/lib/ver/text/selection.rb +402 -0
- data/lib/ver/text/selection/block.rb +69 -0
- data/lib/ver/text/selection/char.rb +93 -0
- data/lib/ver/text/selection/line.rb +64 -0
- data/lib/ver/text/tag.rb +322 -0
- data/lib/ver/undo.rb +109 -34
- data/lib/ver/vendor/eval_completer.rb +184 -0
- data/lib/ver/vendor/json_store.rb +23 -0
- data/lib/ver/vendor/open3.rb +729 -0
- data/lib/ver/vendor/pathname.rb +73 -0
- data/lib/ver/vendor/textpow.rb +1 -1
- data/lib/ver/version.rb +1 -1
- data/lib/ver/widget_event.rb +9 -5
- data/lib/ver/widget_major_mode.rb +69 -23
- data/spec/helper.rb +124 -8
- data/spec/ver/action.rb +160 -46
- data/spec/ver/buffer.rb +23 -0
- data/spec/ver/clipboard.rb +92 -0
- data/spec/ver/keymap.rb +63 -61
- data/spec/ver/keymap/diakonos.rb +88 -0
- data/spec/ver/keymap/emacs.rb +65 -0
- data/spec/ver/keymap/general.rb +98 -0
- data/spec/ver/keymap/nano.rb +84 -0
- data/spec/ver/keymap/vim.rb +205 -0
- data/spec/ver/keymap/vim/changing_text.rb +489 -0
- data/spec/ver/keymap/vim/complex_changes.rb +53 -0
- data/spec/ver/keymap/vim/copying_and_moving_text.rb +258 -0
- data/spec/ver/keymap/vim/deleting_text.rb +188 -0
- data/spec/ver/keymap/vim/digraphs.rb +52 -0
- data/spec/ver/keymap/vim/external_commands.rb +21 -0
- data/spec/ver/keymap/vim/inserting_mode_keys.rb +115 -0
- data/spec/ver/keymap/vim/inserting_mode_special.rb +168 -0
- data/spec/ver/keymap/vim/inserting_text.rb +108 -0
- data/spec/ver/keymap/vim/left_right_motion.rb +120 -0
- data/spec/ver/keymap/vim/mark_motion.rb +73 -0
- data/spec/ver/keymap/vim/repeating_commands.rb +64 -0
- data/spec/ver/keymap/vim/text_object_motion.rb +137 -0
- data/spec/ver/keymap/vim/text_objects.rb +101 -0
- data/spec/ver/keymap/vim/undo_redo.rb +21 -0
- data/spec/ver/keymap/vim/up_down_motion.rb +94 -0
- data/spec/ver/keymap/vim/various_motion.rb +33 -0
- data/spec/ver/keysyms.rb +13 -0
- data/spec/ver/major_mode.rb +37 -37
- data/spec/ver/minor_mode.rb +21 -20
- data/spec/ver/plugin/smart_autoindent.rb +2 -2
- data/spec/ver/text/index.rb +122 -0
- data/spec/ver/text/insert.rb +299 -0
- data/spec/ver/text/mark.rb +94 -0
- data/spec/ver/text/range.rb +71 -0
- data/spec/ver/text/selection.rb +315 -0
- data/spec/ver/text/tag.rb +93 -0
- data/spec/ver/undo.rb +133 -0
- data/spec/ver/undo/record_sanitize.rb +85 -0
- data/spec/ver/vendor/eval_completer.rb +91 -0
- data/spec/ver/widget_major_mode.rb +4 -3
- data/ver.gemspec +8 -8
- metadata +234 -72
- data/.todo +0 -102
- data/ROADMAP.textile +0 -187
- data/config/snippets/ANTLR.rb +0 -3
- data/config/snippets/Bison.rb +0 -3
- data/config/snippets/CTags.rb +0 -3
- data/config/snippets/CVS.rb +0 -3
- data/config/snippets/Darcs.rb +0 -3
- data/config/snippets/Diff.rb +0 -3
- data/config/snippets/Dylan.rb +0 -3
- data/config/snippets/Experimental Wiki.rb +0 -3
- data/config/snippets/Experimental.rb +0 -3
- data/config/snippets/FileMerge.rb +0 -3
- data/config/snippets/GTD2.rb +0 -3
- data/config/snippets/GetBundle.rb +0 -3
- data/config/snippets/Graphviz.rb +0 -3
- data/config/snippets/Hotkey.rb +0 -3
- data/config/snippets/Hyperlink Helper.rb +0 -3
- data/config/snippets/ImageBrowser.rb +0 -3
- data/config/snippets/Inform.rb +0 -3
- data/config/snippets/Ini.rb +0 -3
- data/config/snippets/Installer.rb +0 -3
- data/config/snippets/JSFL.rb +0 -3
- data/config/snippets/JSON.rb +0 -3
- data/config/snippets/Lex-Flex.rb +0 -3
- data/config/snippets/Lighttpd.rb +0 -3
- data/config/snippets/MEL.rb +0 -3
- data/config/snippets/MacPorts.rb +0 -3
- data/config/snippets/Make.rb +0 -3
- data/config/snippets/Man Pages.rb +0 -3
- data/config/snippets/Math.rb +0 -3
- data/config/snippets/Mercurial.rb +0 -3
- data/config/snippets/Modula.rb +0 -3
- data/config/snippets/Navigation.rb +0 -3
- data/config/snippets/OCaml Experimental Completions.rb +0 -3
- data/config/snippets/OpenGL.rb +0 -3
- data/config/snippets/Outlines.rb +0 -3
- data/config/snippets/Perforce.rb +0 -3
- data/config/snippets/Perl HTML::Template.rb +0 -27
- data/config/snippets/Postscript.rb +0 -3
- data/config/snippets/Prolog.rb +0 -3
- data/config/snippets/Quake.rb +0 -3
- data/config/snippets/R Console (R.app).rb +0 -3
- data/config/snippets/Ragel.rb +0 -3
- data/config/snippets/Regular Expressions.rb +0 -3
- data/config/snippets/Rez.rb +0 -3
- data/config/snippets/Ruby Haml.rb +0 -3
- data/config/snippets/SCons.rb +0 -3
- data/config/snippets/SQL.rb +0 -3
- data/config/snippets/SVK.rb +0 -3
- data/config/snippets/SWeave.rb +0 -3
- data/config/snippets/Scheme.rb +0 -3
- data/config/snippets/Subversion.rb +0 -3
- data/config/snippets/TODO.rb +0 -3
- data/config/snippets/Tabular.rb +0 -3
- data/config/snippets/TerminalMate.rb +0 -3
- data/config/snippets/TextMate.rb +0 -3
- data/config/snippets/Transmit.rb +0 -3
- data/config/snippets/Xcode.rb +0 -3
- data/config/snippets/iCalendar.rb +0 -3
- data/config/snippets/iTerm.rb +0 -3
- data/lib/ver/keysyms.rb +0 -104
- data/spec/ver/methods/move.rb +0 -150
data/config/syntax/Inform.rb
CHANGED
@@ -8,13 +8,13 @@
|
|
8
8
|
name: "Inform",
|
9
9
|
patterns:
|
10
10
|
[{captures: {1 => {name: "punctuation.definition.comment.inform"}},
|
11
|
-
match: /(
|
11
|
+
match: /(?<_1>!)(?<_2>.*)$\n?/,
|
12
12
|
name: "comment.line.exclamation.inform"},
|
13
13
|
{captures: {1 => {name: "entity.name.function.inform"}},
|
14
|
-
match: /(?:\s*)\[(?:\s*)(
|
14
|
+
match: /(?:\s*)\[(?:\s*)(?<_1>.*)(?:\s*);/,
|
15
15
|
name: "meta.function.inform"},
|
16
16
|
{match:
|
17
|
-
/\b((
|
17
|
+
/\b(?<_1>(?<_2>\$[0-9a-fA-F]*)|(?<_3>(?<_4>[0-9]+\.?[0-9]*)|(?<_5>\.[0-9]+))(?<_6>(?<_7>e|E)(?<_8>\+|-)?[0-9]+)?)(?<_9>L|l|UL|ul|u|U|F|f)?\b/,
|
18
18
|
name: "constant.numeric.inform"},
|
19
19
|
{begin: /'/,
|
20
20
|
beginCaptures: {0 => {name: "punctuation.definition.string.begin.inform"}},
|
@@ -28,10 +28,10 @@
|
|
28
28
|
endCaptures: {0 => {name: "punctuation.definition.string.end.inform"}},
|
29
29
|
name: "string.quoted.double.inform"},
|
30
30
|
{match:
|
31
|
-
/\b(box|break|continue|do|else|font(
|
31
|
+
/\b(?<_1>box|break|continue|do|else|font(?<_2>\s+)(?<_3>on|off)|for|give|if|jump|new_line|objectloop|print|print_ret|remove|return|rfalse|rtrue|spaces|string|style(?<_4>\s+)(?<_5>roman|bold|underline|reverse|fixed)|switch|until|while|has|hasnt|in|notin|ofclass|provides|or)\b/,
|
32
32
|
name: "keyword.control.inform"},
|
33
33
|
{match:
|
34
|
-
/\b(Abbreviate|Array|Attribute|Class|Constant|Default|End|Endif|Extend|Global|Ifdef|Ifndef|Ifnot|Iftrue|Iffalse|Import|Include|Link|Lowstring|Message|Object|Property|Release|Replace|Serial|Switches|Statusline(
|
34
|
+
/\b(?<_1>Abbreviate|Array|Attribute|Class|Constant|Default|End|Endif|Extend|Global|Ifdef|Ifndef|Ifnot|Iftrue|Iffalse|Import|Include|Link|Lowstring|Message|Object|Property|Release|Replace|Serial|Switches|Statusline(?<_2>\s+)(?<_3>score|time)|System_file|Verb|Zcharacter)\b/,
|
35
35
|
name: "keyword.other.directive.inform"}],
|
36
36
|
scopeName: "source.inform",
|
37
37
|
uuid: "1510B8C7-6B1D-11D9-B82B-000D93589AF6"}
|
data/config/syntax/Ini.rb
CHANGED
@@ -7,19 +7,19 @@
|
|
7
7
|
name: "Ini",
|
8
8
|
patterns:
|
9
9
|
[{captures: {1 => {name: "punctuation.definition.comment.ini"}},
|
10
|
-
match: /(
|
10
|
+
match: /(?<_1>#).*$\n?/,
|
11
11
|
name: "comment.line.number-sign.ini"},
|
12
12
|
{captures: {1 => {name: "punctuation.definition.comment.ini"}},
|
13
|
-
match: /(
|
13
|
+
match: /(?<_1>;).*$\n?/,
|
14
14
|
name: "comment.line.semicolon.ini"},
|
15
15
|
{captures:
|
16
16
|
{1 => {name: "keyword.other.definition.ini"},
|
17
17
|
2 => {name: "punctuation.separator.key-value.ini"}},
|
18
|
-
match: /\b([a-zA-Z0-9_.-]+)\b\s*(
|
18
|
+
match: /\b(?<_1>[a-zA-Z0-9_.-]+)\b\s*(?<_2>=)/},
|
19
19
|
{captures:
|
20
20
|
{1 => {name: "punctuation.definition.entity.ini"},
|
21
21
|
3 => {name: "punctuation.definition.entity.ini"}},
|
22
|
-
match: /^(
|
22
|
+
match: /^(?<_1>\[)(?<_2>.*?)(?<_3>\])/,
|
23
23
|
name: "entity.name.section.group-title.ini"},
|
24
24
|
{begin: /'/,
|
25
25
|
beginCaptures: {0 => {name: "punctuation.definition.string.begin.ini"}},
|
@@ -2,12 +2,12 @@
|
|
2
2
|
|
3
3
|
{fileTypes: ["dist"],
|
4
4
|
foldingStartMarker:
|
5
|
-
/^\s*(
|
6
|
-
foldingStopMarker: /^\s*(
|
5
|
+
/^\s*(?<_1><[^!?%\/](?!.+?(?<_2>\/>|<\/.+?>))|<[!%]--(?!.+?--%?>)|<%[!]?(?!.+?%>))/,
|
6
|
+
foldingStopMarker: /^\s*(?<_1><\/[^>]+>|[\/%]>|-->)\s*$/,
|
7
7
|
keyEquivalent: "^~I",
|
8
8
|
name: "Installer Distribution Script",
|
9
9
|
patterns:
|
10
|
-
[{begin: /((
|
10
|
+
[{begin: /(?<_1>(?<_2><)(?<_3>script)(?<_4>>))/,
|
11
11
|
captures:
|
12
12
|
{1 => {name: "meta.tag.xml"},
|
13
13
|
2 => {name: "punctuation.definition.tag.xml"},
|
@@ -21,56 +21,57 @@
|
|
21
21
|
name: "support.class.apple-dist",
|
22
22
|
patterns:
|
23
23
|
[{match:
|
24
|
-
/\b(compareVersions|defaults|gestalt|localizedString(WithFormat)?|localizedStandardString(WithFormat)?|log|propertiesOf|run(Once)?|sysctl|users\.desktopSessionsCount|version)\b/,
|
24
|
+
/\b(?<_1>compareVersions|defaults|gestalt|localizedString(?<_2>WithFormat)?|localizedStandardString(?<_3>WithFormat)?|log|propertiesOf|run(?<_4>Once)?|sysctl|users\.desktopSessionsCount|version)\b/,
|
25
25
|
name: "support.function.apple-dist"},
|
26
|
-
{begin: /\b(applications)\b/,
|
26
|
+
{begin: /\b(?<_1>applications)\b/,
|
27
27
|
end: "(?=(\\(|\\s))|$",
|
28
28
|
name: "support.function.apple-dist",
|
29
29
|
patterns:
|
30
|
-
[{match: /\b(fromPID|fromIdentifier|all)\b/,
|
30
|
+
[{match: /\b(?<_1>fromPID|fromIdentifier|all)\b/,
|
31
31
|
name: "support.variable.apple-dist"}]},
|
32
|
-
{begin: /\b(files)\b/,
|
32
|
+
{begin: /\b(?<_1>files)\b/,
|
33
33
|
end: "(?=(\\(|\\s))|$",
|
34
34
|
name: "support.function.apple-dist",
|
35
35
|
patterns:
|
36
|
-
[{match: /\b(fileExistsAtPath|plistAtPath|bundleAtPath)\b/,
|
36
|
+
[{match: /\b(?<_1>fileExistsAtPath|plistAtPath|bundleAtPath)\b/,
|
37
37
|
name: "support.variable.apple-dist"}]},
|
38
|
-
{begin: /\b(ioregistry)\b/,
|
38
|
+
{begin: /\b(?<_1>ioregistry)\b/,
|
39
39
|
end: "(?=(\\(|\\s))|$",
|
40
40
|
name: "support.function.apple-dist",
|
41
41
|
patterns:
|
42
|
-
[{match:
|
42
|
+
[{match:
|
43
|
+
/\b(?<_1>fromPath|matching(?<_2>Class|Name)|(?<_3>children|parents)Of)\b/,
|
43
44
|
name: "support.variable.apple-dist"}]}]},
|
44
|
-
{begin: /\b(choices)\b/,
|
45
|
+
{begin: /\b(?<_1>choices)\b/,
|
45
46
|
end: "(?=(\\(|\\s))|$",
|
46
47
|
name: "support.class.apple-dist",
|
47
48
|
patterns:
|
48
49
|
[{match:
|
49
|
-
/\b(
|
50
|
+
/\b(?<_1>.*)\.(?<_2>bundle|customLocation(?<_3>AllowAlternateVolumes)?|description(?<_4>-mime-type)?|(?<_5>start_)?enabled|id|(?<_6>start_)?selected|tooltip|(?<_7>start_)?visible|title|packages|packageUpgradeAction)\b/,
|
50
51
|
name: "support.variable.apple-dist"}]},
|
51
52
|
{begin: /\bmy\b/,
|
52
53
|
end: "(?=(\\(|\\s))|$",
|
53
54
|
name: "support.class.apple-dist",
|
54
55
|
patterns:
|
55
|
-
[{begin: /\b(choice)\b/,
|
56
|
+
[{begin: /\b(?<_1>choice)\b/,
|
56
57
|
end: "(?=(\\(|\\s))|$",
|
57
58
|
name: "support.function.apple-dist",
|
58
59
|
patterns:
|
59
60
|
[{match:
|
60
|
-
/\b(bundle|customLocation(AllowAlternateVolumes)?|description(
|
61
|
+
/\b(?<_1>bundle|customLocation(?<_2>AllowAlternateVolumes)?|description(?<_3>-mime-type)?|(?<_4>start_)?enabled|id|(?<_5>start_)?selected|tooltip|(?<_6>start_)?visible|title|packages|packageUpgradeAction)\b/,
|
61
62
|
name: "support.variable.apple-dist"}]},
|
62
|
-
{begin: /\b(result)\b/,
|
63
|
+
{begin: /\b(?<_1>result)\b/,
|
63
64
|
end: "(?=(\\(|\\s))|$",
|
64
65
|
name: "support.function.apple-dist",
|
65
66
|
patterns:
|
66
|
-
[{match: /\b(type|title|message)\b/,
|
67
|
+
[{match: /\b(?<_1>type|title|message)\b/,
|
67
68
|
name: "support.variable.apple-dist"}]},
|
68
|
-
{begin: /\b(target)\b/,
|
69
|
+
{begin: /\b(?<_1>target)\b/,
|
69
70
|
end: "(?=(\\(|\\s))|$",
|
70
71
|
name: "support.function.apple-dist",
|
71
72
|
patterns:
|
72
73
|
[{match:
|
73
|
-
/\b(mountpoint|availableKilobytes|systemVersion|receiptForIdentifier)\b/,
|
74
|
+
/\b(?<_1>mountpoint|availableKilobytes|systemVersion|receiptForIdentifier)\b/,
|
74
75
|
name: "support.variable.apple-dist"}]}]},
|
75
76
|
{include: "source.js"}]},
|
76
77
|
{include: "text.xml"}],
|
data/config/syntax/Io.rb
CHANGED
@@ -1,42 +1,44 @@
|
|
1
1
|
# Encoding: UTF-8
|
2
2
|
|
3
3
|
{fileTypes: ["io"],
|
4
|
-
foldingStartMarker: /(
|
5
|
-
foldingStopMarker: /(
|
4
|
+
foldingStartMarker: /(?<_1>\/\*\*|\([^\)]*$|if\()/,
|
5
|
+
foldingStopMarker: /(?<_1>\*\*\/|^\s*\))/,
|
6
6
|
keyEquivalent: "^~I",
|
7
7
|
name: "Io",
|
8
8
|
patterns:
|
9
9
|
[{captures: {1 => {name: "meta.empty-parenthesis.io"}},
|
10
10
|
comment:
|
11
11
|
"we match this to overload return inside () --Allan; scoping rules for what gets the scope have changed, so we now group the ) instead of the ( -- Rob",
|
12
|
-
match: /\((
|
12
|
+
match: /\((?<_1>\))/},
|
13
13
|
{captures: {1 => {name: "meta.comma-parenthesis.io"}},
|
14
14
|
comment: "We want to do the same for ,) -- Seckar; same as above -- Rob",
|
15
|
-
match: /\,(
|
15
|
+
match: /\,(?<_1>\))/},
|
16
16
|
{match:
|
17
|
-
/\b(if|ifTrue|ifFalse|ifTrueIfFalse|for|loop|reverseForeach|foreach|map|continue|break|while|do|return)\b/,
|
17
|
+
/\b(?<_1>if|ifTrue|ifFalse|ifTrueIfFalse|for|loop|reverseForeach|foreach|map|continue|break|while|do|return)\b/,
|
18
18
|
name: "keyword.control.io"},
|
19
19
|
{begin: /\/\*/,
|
20
20
|
captures: {0 => {name: "punctuation.definition.comment.io"}},
|
21
21
|
end: "\\*/",
|
22
22
|
name: "comment.block.io"},
|
23
23
|
{captures: {1 => {name: "punctuation.definition.comment.io"}},
|
24
|
-
match: /(
|
24
|
+
match: /(?<_1>\/\/).*$\n?/,
|
25
25
|
name: "comment.line.double-slash.io"},
|
26
26
|
{captures: {1 => {name: "punctuation.definition.comment.io"}},
|
27
|
-
match: /(
|
27
|
+
match: /(?<_1>#).*$\n?/,
|
28
28
|
name: "comment.line.number-sign.io"},
|
29
29
|
{comment:
|
30
30
|
"I wonder if some of this isn't variable.other.language? --Allan; scoping this as variable.language to match Objective-C's handling of 'self', which is inconsistent with C++'s handling of 'this' but perhaps intentionally so -- Rob",
|
31
|
-
match: /\b(self|sender|target|proto|protos|parent)\b/,
|
31
|
+
match: /\b(?<_1>self|sender|target|proto|protos|parent)\b/,
|
32
32
|
name: "variable.language.io"},
|
33
|
-
{match: /<=|>=|=|:=|\*|\||\|\||\+|-|\/|&|&&|>|<|\?|@|@@|\b(and|or)\b/,
|
33
|
+
{match: /<=|>=|=|:=|\*|\||\|\||\+|-|\/|&|&&|>|<|\?|@|@@|\b(?<_1>and|or)\b/,
|
34
34
|
name: "keyword.operator.io"},
|
35
35
|
{match: /\bGL[\w_]+\b/, name: "constant.other.io"},
|
36
|
-
{match: /\b([A-Z](
|
37
|
-
{match:
|
36
|
+
{match: /\b(?<_1>[A-Z](?<_2>\w+)?)\b/, name: "support.class.io"},
|
37
|
+
{match:
|
38
|
+
/\b(?<_1>clone|call|init|method|list|vector|block|(?<_2>\w+(?=\s*\()))\b/,
|
38
39
|
name: "support.function.io"},
|
39
|
-
{match: /\b(gl(u|ut)?[A-Z]\w+)\b/,
|
40
|
+
{match: /\b(?<_1>gl(?<_2>u|ut)?[A-Z]\w+)\b/,
|
41
|
+
name: "support.function.open-gl.io"},
|
40
42
|
{begin: /"""/,
|
41
43
|
beginCaptures: {0 => {name: "punctuation.definition.string.begin.io"}},
|
42
44
|
end: "\"\"\"",
|
@@ -50,10 +52,10 @@
|
|
50
52
|
name: "string.quoted.double.io",
|
51
53
|
patterns: [{match: /\\./, name: "constant.character.escape.io"}]},
|
52
54
|
{match:
|
53
|
-
/\b((0(x|X)[0-9a-fA-F]*)|(([0-9]+\.?[0-9]*)|(
|
55
|
+
/\b(?<_1>(?<_2>0(?<_3>x|X)[0-9a-fA-F]*)|(?<_4>(?<_5>[0-9]+\.?[0-9]*)|(?<_6>\.[0-9]+))(?<_7>(?<_8>e|E)(?<_9>\+|-)?[0-9]+)?)(?<_10>L|l|UL|ul|u|U|F|f)?\b/,
|
54
56
|
name: "constant.numeric.io"},
|
55
|
-
{match: /(Lobby)\b/, name: "variable.other.global.io"},
|
56
|
-
{match: /\b(TRUE|true|FALSE|false|NULL|null|Null|Nil|nil|YES|NO)\b/,
|
57
|
+
{match: /(?<_1>Lobby)\b/, name: "variable.other.global.io"},
|
58
|
+
{match: /\b(?<_1>TRUE|true|FALSE|false|NULL|null|Null|Nil|nil|YES|NO)\b/,
|
57
59
|
name: "constant.language.io"}],
|
58
60
|
scopeName: "source.io",
|
59
61
|
uuid: "BD798537-3548-47F3-A6AB-7FB95C45DB83"}
|
data/config/syntax/JSFL.rb
CHANGED
@@ -2,22 +2,23 @@
|
|
2
2
|
|
3
3
|
{comment: "Flash JavaScript Syntax: Version 1.0",
|
4
4
|
fileTypes: ["jsfl"],
|
5
|
-
foldingStartMarker:
|
5
|
+
foldingStartMarker:
|
6
|
+
/^.*\bfunction\s*(?<_1>\w+\s*)?\([^\)]*\)(?<_2>\s*\{[^\}]*)?\s*$/,
|
6
7
|
foldingStopMarker: /^\s*\}/,
|
7
|
-
keyEquivalent:
|
8
|
+
keyEquivalent: "^~J",
|
8
9
|
name: "JSFL",
|
9
10
|
patterns:
|
10
11
|
[{match:
|
11
|
-
/\b(alert|confirm|prompt|configureEffect|executeEffect|removeEffect|activate|configureTool|deactivate|keyDown|keyUp|mouseDoubleClick|mouseDown|mouseMove|mouseUp|notifySettingsChanged|setCursor)\b/,
|
12
|
+
/\b(?<_1>alert|confirm|prompt|configureEffect|executeEffect|removeEffect|activate|configureTool|deactivate|keyDown|keyUp|mouseDoubleClick|mouseDown|mouseMove|mouseUp|notifySettingsChanged|setCursor)\b/,
|
12
13
|
name: "support.function.global.jsfl"},
|
13
14
|
{match:
|
14
|
-
/\b(Rectangle|XMLUI|Mat(h|rix)|comp(ilerErrors|onentsPanel)|BitmapI(nstance|tem)|S(hape|ymbolI(nstance|tem)|creen(Outline)?|troke|oundItem)|HalfEdge|outputPanel|drawingLayer|Co(ntour|mp(iledClipInstance|onentInstance))|T(imeline|ool(s|Obj)|ext(Run|Attrs)?)|I(nstance|tem)|Oval|Document|P(a(th|rameter)|roject(Item)?)|f(o(ntItem|lderItem)|l)|E(dge|ffect|lement)|V(ideoItem|ertex)|library|actionsPanel|F(il(ter|l)|rame|Lfile)|Layer)\b/,
|
15
|
+
/\b(?<_1>Rectangle|XMLUI|Mat(?<_2>h|rix)|comp(?<_3>ilerErrors|onentsPanel)|BitmapI(?<_4>nstance|tem)|S(?<_5>hape|ymbolI(?<_6>nstance|tem)|creen(?<_7>Outline)?|troke|oundItem)|HalfEdge|outputPanel|drawingLayer|Co(?<_8>ntour|mp(?<_9>iledClipInstance|onentInstance))|T(?<_10>imeline|ool(?<_11>s|Obj)|ext(?<_12>Run|Attrs)?)|I(?<_13>nstance|tem)|Oval|Document|P(?<_14>a(?<_15>th|rameter)|roject(?<_16>Item)?)|f(?<_17>o(?<_18>ntItem|lderItem)|l)|E(?<_19>dge|ffect|lement)|V(?<_20>ideoItem|ertex)|library|actionsPanel|F(?<_21>il(?<_22>ter|l)|rame|Lfile)|Layer)\b/,
|
15
16
|
name: "support.object.jsfl"},
|
16
17
|
{match:
|
17
|
-
/\b(s(h(iftIsDown|ortcut|a(dowColor|pe(TweenBlend|Fill)))|ymbolType|c(al(ingGrid(Rect)?|e(X|Y|Type))|r(iptURI|ollable|een(s|Outline)))|t(yle|art(Frame|Angle)|r(okeHinting|ength))|i(ze|lent)|ou(nd(Sync|Name|Effect|L(ibraryItem|oop(Mode)?))|rce(File(Path)?|LibraryName|AutoUpdate))|pace|elect(ion(Start|End)?|ed|able)|kew(X|Y)|a(turation|mpleRate))|h(i(d(den|eObject)|ghlightColor)|ue|eight|Pixels|a(sCustomEase|tchThickness))|n(extScreen|Pts|ame)|Math|c(h(ildScreens|aracter(s|Spacing|Position))|tlIsDown|o(n(t(ours|actSensitiveSelection|rast)|vertStereoToMono|fig(Directory|URI))|lor(Red(Percent|Amount)|Green(Percent|Amount)|Mode|Blue(Percent|Amount)|A(lpha(Percent|Amount)|rray))?|mp(ilerErrors|onentsPanel|ressionType))|ur(ve|rent(Screen|Timeline|PublishProfile|Frame|Layer))|losePath|a(cheAsBitmap|tegory|pType)|reateNew(TemplateList|DocList(Type)?))|t(hickness|y(pe)?|imeline(s)?|o(ol(s|Objs)|p(RightRadius|LeftRadius)?)|ext(Runs|Type|Attrs)|ween(Type|Easing)|a(rget|bIndex)|ransform(X|Y)|x)|i(s(RectangleObject|Group|Missing|OvalObject|DrawingObject|Line)|n(stance(Name|Type)|ner(Radius)?|terior|de(nt|x))|conID|t(em(s|Type|URI)|alic)|d)|zoomFactor|o(ut(putPanel|line)|verflow|rientation|bjectDrawingMode)|d(is(tance|playName)|o(c(Class|uments)|tS(ize|pace))|uration|e(scription|nsity|pth|faultItem)|ash(1|2)|rawingLayer)|u(se(XMLToUI|SingleEaseCurve|Imported(MP3Quality|JPEGQuality)|DeviceFonts)|rl)|j(iggle|oinType)|p(os(ition|Array)|ublishProfile(s)?|en(DownLoc|Loc)|a(ckagePaths|t(h|tern)|r(ent(Screen|Layer)|ameters))|r(ojectURI|evScreen))|e(n(dAngle|abled)|dges|ffect(s|Name)|lement(s|Type)|mbed(Ranges|dedCharacters))|v(i(sible|deoType|ewMatrix)|er(sion|tices|bose)|Pixels|a(lue(Type)?|ria(tion|bleName)))|knockout|quality|f(i(l(ters|lColor)|rstFrame)|o(ntRenderingMode|calPoint|rceSimple)|ace|rame(s|Rate|Count))|w(idth|ave(Height|Length))|l(i(stIndex|n(e(Spacing|Type|arRGB)|kage(BaseClass|ClassName|I(dentifier|mportForRS)|URL|Export(InFirstFrame|For(RS|AS))))|vePreview|brary(Item)?)|o(ck(ed|Flag)|op)|e(ngth|tterSpacing|ft(Margin)?)|a(yer(s|Count|Type)?|belType))|a(s(3(StrictMode|Dialect|PackagePaths|ExportFrame|WarningsMode|AutoDeclare)|Version)|n(tiAlias(Sharpness|Thickness)|gle)|c(cName|ti(on(sPanel|Script)|ve(Tool|Effect)))|uto(Expand|Kern|Label)|l(tIsDown|i(asText|gnment)|lowSmoothing))|r(ightMargin|o(tat(ion|e)|otScreen)|enderAsHTML)|groupName|xmlui|m(iterLimit|o(tionTween(Rotate(Times)?|S(ync|nap|cale)|OrientToPath)|useIsDown)|a(trix|xCharacters)|ruRecentFileList(Type)?)|b(it(s|Rate)|o(ttom(RightRadius|LeftRadius)|ld|rder)|uttonTracking|l(ur(X|Y)|endMode)|ackgroundColor|r(ightness|eakAtCorners)))\b/,
|
18
|
+
/\b(?<_1>s(?<_2>h(?<_3>iftIsDown|ortcut|a(?<_4>dowColor|pe(?<_5>TweenBlend|Fill)))|ymbolType|c(?<_6>al(?<_7>ingGrid(?<_8>Rect)?|e(?<_9>X|Y|Type))|r(?<_10>iptURI|ollable|een(?<_11>s|Outline)))|t(?<_12>yle|art(?<_13>Frame|Angle)|r(?<_14>okeHinting|ength))|i(?<_15>ze|lent)|ou(?<_16>nd(?<_17>Sync|Name|Effect|L(?<_18>ibraryItem|oop(?<_19>Mode)?))|rce(?<_20>File(?<_21>Path)?|LibraryName|AutoUpdate))|pace|elect(?<_22>ion(?<_23>Start|End)?|ed|able)|kew(?<_24>X|Y)|a(?<_25>turation|mpleRate))|h(?<_26>i(?<_27>d(?<_28>den|eObject)|ghlightColor)|ue|eight|Pixels|a(?<_29>sCustomEase|tchThickness))|n(?<_30>extScreen|Pts|ame)|Math|c(?<_31>h(?<_32>ildScreens|aracter(?<_33>s|Spacing|Position))|tlIsDown|o(?<_34>n(?<_35>t(?<_36>ours|actSensitiveSelection|rast)|vertStereoToMono|fig(?<_37>Directory|URI))|lor(?<_38>Red(?<_39>Percent|Amount)|Green(?<_40>Percent|Amount)|Mode|Blue(?<_41>Percent|Amount)|A(?<_42>lpha(?<_43>Percent|Amount)|rray))?|mp(?<_44>ilerErrors|onentsPanel|ressionType))|ur(?<_45>ve|rent(?<_46>Screen|Timeline|PublishProfile|Frame|Layer))|losePath|a(?<_47>cheAsBitmap|tegory|pType)|reateNew(?<_48>TemplateList|DocList(?<_49>Type)?))|t(?<_50>hickness|y(?<_51>pe)?|imeline(?<_52>s)?|o(?<_53>ol(?<_54>s|Objs)|p(?<_55>RightRadius|LeftRadius)?)|ext(?<_56>Runs|Type|Attrs)|ween(?<_57>Type|Easing)|a(?<_58>rget|bIndex)|ransform(?<_59>X|Y)|x)|i(?<_60>s(?<_61>RectangleObject|Group|Missing|OvalObject|DrawingObject|Line)|n(?<_62>stance(?<_63>Name|Type)|ner(?<_64>Radius)?|terior|de(?<_65>nt|x))|conID|t(?<_66>em(?<_67>s|Type|URI)|alic)|d)|zoomFactor|o(?<_68>ut(?<_69>putPanel|line)|verflow|rientation|bjectDrawingMode)|d(?<_70>is(?<_71>tance|playName)|o(?<_72>c(?<_73>Class|uments)|tS(?<_74>ize|pace))|uration|e(?<_75>scription|nsity|pth|faultItem)|ash(?<_76>1|2)|rawingLayer)|u(?<_77>se(?<_78>XMLToUI|SingleEaseCurve|Imported(?<_79>MP3Quality|JPEGQuality)|DeviceFonts)|rl)|j(?<_80>iggle|oinType)|p(?<_81>os(?<_82>ition|Array)|ublishProfile(?<_83>s)?|en(?<_84>DownLoc|Loc)|a(?<_85>ckagePaths|t(?<_86>h|tern)|r(?<_87>ent(?<_88>Screen|Layer)|ameters))|r(?<_89>ojectURI|evScreen))|e(?<_90>n(?<_91>dAngle|abled)|dges|ffect(?<_92>s|Name)|lement(?<_93>s|Type)|mbed(?<_94>Ranges|dedCharacters))|v(?<_95>i(?<_96>sible|deoType|ewMatrix)|er(?<_97>sion|tices|bose)|Pixels|a(?<_98>lue(?<_99>Type)?|ria(?<_100>tion|bleName)))|knockout|quality|f(?<_101>i(?<_102>l(?<_103>ters|lColor)|rstFrame)|o(?<_104>ntRenderingMode|calPoint|rceSimple)|ace|rame(?<_105>s|Rate|Count))|w(?<_106>idth|ave(?<_107>Height|Length))|l(?<_108>i(?<_109>stIndex|n(?<_110>e(?<_111>Spacing|Type|arRGB)|kage(?<_112>BaseClass|ClassName|I(?<_113>dentifier|mportForRS)|URL|Export(?<_114>InFirstFrame|For(?<_115>RS|AS))))|vePreview|brary(?<_116>Item)?)|o(?<_117>ck(?<_118>ed|Flag)|op)|e(?<_119>ngth|tterSpacing|ft(?<_120>Margin)?)|a(?<_121>yer(?<_122>s|Count|Type)?|belType))|a(?<_123>s(?<_124>3(?<_125>StrictMode|Dialect|PackagePaths|ExportFrame|WarningsMode|AutoDeclare)|Version)|n(?<_126>tiAlias(?<_127>Sharpness|Thickness)|gle)|c(?<_128>cName|ti(?<_129>on(?<_130>sPanel|Script)|ve(?<_131>Tool|Effect)))|uto(?<_132>Expand|Kern|Label)|l(?<_133>tIsDown|i(?<_134>asText|gnment)|lowSmoothing))|r(?<_135>ightMargin|o(?<_136>tat(?<_137>ion|e)|otScreen)|enderAsHTML)|groupName|xmlui|m(?<_138>iterLimit|o(?<_139>tionTween(?<_140>Rotate(?<_141>Times)?|S(?<_142>ync|nap|cale)|OrientToPath)|useIsDown)|a(?<_143>trix|xCharacters)|ruRecentFileList(?<_144>Type)?)|b(?<_145>it(?<_146>s|Rate)|o(?<_147>ttom(?<_148>RightRadius|LeftRadius)|ld|rder)|uttonTracking|l(?<_149>ur(?<_150>X|Y)|endMode)|ackgroundColor|r(?<_151>ightness|eakAtCorners)))\b/,
|
18
19
|
name: "support.property.jsfl"},
|
19
20
|
{match:
|
20
|
-
/\b(s(how(TransformHandles|IdleMessage|PIControl|LayerMasking)|ynchronize(DocumentWithHeadVersion|WithHeadVersion)|napPoint|caleSelection|traightenSelection|p(litEdge|ace)|e(t(RectangleObjectProperty|M(obileSettings|e(nuString|tadata))|B(its|lendMode)|S(cr(iptAssistMode|eenProperty)|troke(S(tyle|ize)|Color)?|elect(ion(Rect|Bounds)?|ed(Screens|Frames|Layers)))|C(o(ntrol(ItemElement(s)?)?|lor)|u(stom(Stroke|Ease|Fill)|r(sor|rentScreen)))|T(ool(Name|Tip)|ext(Rectangle|S(tring|election)|Attr)?|ransformationPoint)|I(nstance(Brightness|Tint|Alpha)|con|temProperty)|O(ptionsFile|valObjectProperty)|P(I|ersistentData|layerVersion)|E(nabled|lement(TextAttr|Property))|Visible|F(il(ter(s|Property)|lColor)|rameProperty)|L(ocation|ayerProperty)|A(ctiveWindow|ttributes|lignToDocument))?|lect(None|Tool|Item|Element|All(Frames)?))|kewSelection|wap(StrokeAndFill|Element)|ave(Document(As)?|A(ndCompact|Version(OfDocument)?|ll))?|moothSelection)|has(Selection|Data|PersistentData)|n(otifySettingsChanged|ew(Contour|Path|Folder))|c(hangeFilterOrder|o(n(strainPoint|catMatrix|vert(To(BlankKeyframes|Symbol|CompiledClip|Keyframes)|LinesToFills)|fi(rm|gure(Tool|Effect)))|py(Motion(AsAS3)?|ScreenFromFile|Frames)?)|u(tFrames|rveTo|bicCurveTo)|l(ip(C(opy(String)?|ut)|Paste)|ose(Document|Project|All(PlayerDocuments)?)?|ear(Keyframes|Frames)?)|an(Revert|cel|SaveAVersion|Test(Movie|Scene|Project)?|Publish(Project)?|EditSymbol)|r(op|eate(MotionTween|Document|Project|Folder)))|t(est(Movie|Scene|Project)?|ra(nsformSelection|ce(Bitmap)?))|i(n(sert(BlankKeyframe|Screen|NestedScreen|Item|Keyframe|Frames)|tersect|vertMatrix)|temExists|mport(SWF|PublishProfile|EmbeddedSWF|File))|op(timizeCurves|en(Script|Document|Project))|d(is(tribute(ToLayers)?|able(OtherFilters|Filter|AllFilters))|o(cumentHasData|wnloadLatestVersion)|uplicate(S(c(ene|reen)|election)|Item|PublishProfile)|e(lete(S(c(ene|reen)|election)|Item|PublishProfile|E(nvelope|dge)|Layer)|activate)|rawPath)|u(n(Group|ion|lockAllElements)|pdateItem)|p(ointDistance|u(nch|blish(Project)?)|aste(Motion|Frames)|rompt)|e(n(terEditMode|d(Draw|Edit|Frame)|able(ImmediateUpdates|PIControl|Filter|AllFilters))|dit(Scene|Item)|x(i(sts|tEditMode)|p(ort(SW(C|F)|P(NG|ublishProfile))|andFolder)|ecuteEffect))|key(Down|Up)|quit|fi(nd(ItemIndex|ObjectInDocBy(Name|Type)|Document(Index|DOM)|ProjectItem|LayerIndex)|leExists)|write|li(stFolder|neTo)|a(c(cept|tivate)|dd(MotionGuide|New(Rectangle|Scene|Text|Item|Oval|PublishProfile|L(ine|ayer))|Cu(rve|bicCurve)|Item(ToDocument)?|Data(To(Selection|Document))?|Point|EventListener|Fil(ter|e))|l(ign|ert|lowScreens)|rrange)|r(otateSelection|unScript|e(set(RectangleObject|Transformation|OvalObject|PackagePaths|AS3PackagePaths)|name(Sc(ene|reen)|Item|PublishProfile)|order(Scene|Layer)|placeSelectedText|ver(seFrames|t(ToLastVersion|Document(ToLastVersion)?)?)|load(Tools|Effects)?|ad|move(Item|Data(From(Selection|Document))?|PersistentData|E(ventListener|ffect)|F(ilter|rames)|AllFilters)?))|g(et(M(o(dificationDate(Obj)?|bileSettings)|etadata)|B(its|lendMode)|S(criptAssistMode|ize|elect(ionRect|ed(Screens|Text|Items|Frames|Layers)))|HalfEdge|Next|C(ontrol(ItemElement)?|ustom(Stroke|Ease|Fill)|lassForObject|reationDate(Obj)?)|T(imeline|ext(String|Attr)?|ransformationPoint)|Item(Type|Property)|OppositeHalfEdge|D(ocumentDOM|ata(FromDocument)?)|P(ersistentData|layerVersion|r(oject|ev))|E(nabled|dge|lement(TextAttr|Property))|V(isible|ertex)|KeyDown|F(ilters|rameProperty)|LayerProperty|A(ttributes|ppMemoryInfo|lignToDocument))?|roup)|xmlPanel|m(o(use(Move|Click|D(o(ubleClick|wn)|blClk)|Up)|ve(S(creen|elect(ionBy|edBezierPointsBy))|To(Folder)?))|a(tch|pPlayerURL|keShape))|b(egin(Draw|Edit|Frame)|r(owseForF(ileURL|olderURL)|eakApart)))\b/,
|
21
|
+
/\b(?<_1>s(?<_2>how(?<_3>TransformHandles|IdleMessage|PIControl|LayerMasking)|ynchronize(?<_4>DocumentWithHeadVersion|WithHeadVersion)|napPoint|caleSelection|traightenSelection|p(?<_5>litEdge|ace)|e(?<_6>t(?<_7>RectangleObjectProperty|M(?<_8>obileSettings|e(?<_9>nuString|tadata))|B(?<_10>its|lendMode)|S(?<_11>cr(?<_12>iptAssistMode|eenProperty)|troke(?<_13>S(?<_14>tyle|ize)|Color)?|elect(?<_15>ion(?<_16>Rect|Bounds)?|ed(?<_17>Screens|Frames|Layers)))|C(?<_18>o(?<_19>ntrol(?<_20>ItemElement(?<_21>s)?)?|lor)|u(?<_22>stom(?<_23>Stroke|Ease|Fill)|r(?<_24>sor|rentScreen)))|T(?<_25>ool(?<_26>Name|Tip)|ext(?<_27>Rectangle|S(?<_28>tring|election)|Attr)?|ransformationPoint)|I(?<_29>nstance(?<_30>Brightness|Tint|Alpha)|con|temProperty)|O(?<_31>ptionsFile|valObjectProperty)|P(?<_32>I|ersistentData|layerVersion)|E(?<_33>nabled|lement(?<_34>TextAttr|Property))|Visible|F(?<_35>il(?<_36>ter(?<_37>s|Property)|lColor)|rameProperty)|L(?<_38>ocation|ayerProperty)|A(?<_39>ctiveWindow|ttributes|lignToDocument))?|lect(?<_40>None|Tool|Item|Element|All(?<_41>Frames)?))|kewSelection|wap(?<_42>StrokeAndFill|Element)|ave(?<_43>Document(?<_44>As)?|A(?<_45>ndCompact|Version(?<_46>OfDocument)?|ll))?|moothSelection)|has(?<_47>Selection|Data|PersistentData)|n(?<_48>otifySettingsChanged|ew(?<_49>Contour|Path|Folder))|c(?<_50>hangeFilterOrder|o(?<_51>n(?<_52>strainPoint|catMatrix|vert(?<_53>To(?<_54>BlankKeyframes|Symbol|CompiledClip|Keyframes)|LinesToFills)|fi(?<_55>rm|gure(?<_56>Tool|Effect)))|py(?<_57>Motion(?<_58>AsAS3)?|ScreenFromFile|Frames)?)|u(?<_59>tFrames|rveTo|bicCurveTo)|l(?<_60>ip(?<_61>C(?<_62>opy(?<_63>String)?|ut)|Paste)|ose(?<_64>Document|Project|All(?<_65>PlayerDocuments)?)?|ear(?<_66>Keyframes|Frames)?)|an(?<_67>Revert|cel|SaveAVersion|Test(?<_68>Movie|Scene|Project)?|Publish(?<_69>Project)?|EditSymbol)|r(?<_70>op|eate(?<_71>MotionTween|Document|Project|Folder)))|t(?<_72>est(?<_73>Movie|Scene|Project)?|ra(?<_74>nsformSelection|ce(?<_75>Bitmap)?))|i(?<_76>n(?<_77>sert(?<_78>BlankKeyframe|Screen|NestedScreen|Item|Keyframe|Frames)|tersect|vertMatrix)|temExists|mport(?<_79>SWF|PublishProfile|EmbeddedSWF|File))|op(?<_80>timizeCurves|en(?<_81>Script|Document|Project))|d(?<_82>is(?<_83>tribute(?<_84>ToLayers)?|able(?<_85>OtherFilters|Filter|AllFilters))|o(?<_86>cumentHasData|wnloadLatestVersion)|uplicate(?<_87>S(?<_88>c(?<_89>ene|reen)|election)|Item|PublishProfile)|e(?<_90>lete(?<_91>S(?<_92>c(?<_93>ene|reen)|election)|Item|PublishProfile|E(?<_94>nvelope|dge)|Layer)|activate)|rawPath)|u(?<_95>n(?<_96>Group|ion|lockAllElements)|pdateItem)|p(?<_97>ointDistance|u(?<_98>nch|blish(?<_99>Project)?)|aste(?<_100>Motion|Frames)|rompt)|e(?<_101>n(?<_102>terEditMode|d(?<_103>Draw|Edit|Frame)|able(?<_104>ImmediateUpdates|PIControl|Filter|AllFilters))|dit(?<_105>Scene|Item)|x(?<_106>i(?<_107>sts|tEditMode)|p(?<_108>ort(?<_109>SW(?<_110>C|F)|P(?<_111>NG|ublishProfile))|andFolder)|ecuteEffect))|key(?<_112>Down|Up)|quit|fi(?<_113>nd(?<_114>ItemIndex|ObjectInDocBy(?<_115>Name|Type)|Document(?<_116>Index|DOM)|ProjectItem|LayerIndex)|leExists)|write|li(?<_117>stFolder|neTo)|a(?<_118>c(?<_119>cept|tivate)|dd(?<_120>MotionGuide|New(?<_121>Rectangle|Scene|Text|Item|Oval|PublishProfile|L(?<_122>ine|ayer))|Cu(?<_123>rve|bicCurve)|Item(?<_124>ToDocument)?|Data(?<_125>To(?<_126>Selection|Document))?|Point|EventListener|Fil(?<_127>ter|e))|l(?<_128>ign|ert|lowScreens)|rrange)|r(?<_129>otateSelection|unScript|e(?<_130>set(?<_131>RectangleObject|Transformation|OvalObject|PackagePaths|AS3PackagePaths)|name(?<_132>Sc(?<_133>ene|reen)|Item|PublishProfile)|order(?<_134>Scene|Layer)|placeSelectedText|ver(?<_135>seFrames|t(?<_136>ToLastVersion|Document(?<_137>ToLastVersion)?)?)|load(?<_138>Tools|Effects)?|ad|move(?<_139>Item|Data(?<_140>From(?<_141>Selection|Document))?|PersistentData|E(?<_142>ventListener|ffect)|F(?<_143>ilter|rames)|AllFilters)?))|g(?<_144>et(?<_145>M(?<_146>o(?<_147>dificationDate(?<_148>Obj)?|bileSettings)|etadata)|B(?<_149>its|lendMode)|S(?<_150>criptAssistMode|ize|elect(?<_151>ionRect|ed(?<_152>Screens|Text|Items|Frames|Layers)))|HalfEdge|Next|C(?<_153>ontrol(?<_154>ItemElement)?|ustom(?<_155>Stroke|Ease|Fill)|lassForObject|reationDate(?<_156>Obj)?)|T(?<_157>imeline|ext(?<_158>String|Attr)?|ransformationPoint)|Item(?<_159>Type|Property)|OppositeHalfEdge|D(?<_160>ocumentDOM|ata(?<_161>FromDocument)?)|P(?<_162>ersistentData|layerVersion|r(?<_163>oject|ev))|E(?<_164>nabled|dge|lement(?<_165>TextAttr|Property))|V(?<_166>isible|ertex)|KeyDown|F(?<_167>ilters|rameProperty)|LayerProperty|A(?<_168>ttributes|ppMemoryInfo|lignToDocument))?|roup)|xmlPanel|m(?<_169>o(?<_170>use(?<_171>Move|Click|D(?<_172>o(?<_173>ubleClick|wn)|blClk)|Up)|ve(?<_174>S(?<_175>creen|elect(?<_176>ionBy|edBezierPointsBy))|To(?<_177>Folder)?))|a(?<_178>tch|pPlayerURL|keShape))|b(?<_179>egin(?<_180>Draw|Edit|Frame)|r(?<_181>owseForF(?<_182>ileURL|olderURL)|eakApart)))\b/,
|
21
22
|
name: "support.function.jsfl"},
|
22
23
|
{include: "source.js"}],
|
23
24
|
scopeName: "source.js.jsfl",
|
@@ -1,11 +1,11 @@
|
|
1
1
|
# Encoding: UTF-8
|
2
2
|
|
3
3
|
{fileTypes: ["properties"],
|
4
|
-
keyEquivalent:
|
4
|
+
keyEquivalent: "^~J",
|
5
5
|
name: "Java Properties",
|
6
6
|
patterns:
|
7
7
|
[{captures: {1 => {name: "punctuation.definition.comment.java-props"}},
|
8
|
-
match: /([#!])(
|
8
|
+
match: /(?<_1>[#!])(?<_2>.+)?$\n?/,
|
9
9
|
name: "comment.line.number-sign.java-props"},
|
10
10
|
{begin: /\/\*/,
|
11
11
|
captures: {0 => {name: "punctuation.definition.comment.java-props"}},
|
@@ -16,6 +16,6 @@
|
|
16
16
|
2 => {name: "punctuation.separator.key-value.java-props"}},
|
17
17
|
comment:
|
18
18
|
"Not compliant with the properties file spec, but this works for me, and I'm the one who counts around here.",
|
19
|
-
match: /^([^:=]+)([:=])(
|
19
|
+
match: /^(?<_1>[^:=]+)(?<_2>[:=])(?<_3>.*)$/}],
|
20
20
|
scopeName: "source.java-props",
|
21
21
|
uuid: "2A28E50A-6B1D-11D9-8689-000D93589AF6"}
|
@@ -3,7 +3,7 @@
|
|
3
3
|
{fileTypes: ["jsp"],
|
4
4
|
foldingStartMarker: /\/\*\*|\{\s*$/,
|
5
5
|
foldingStopMarker: /\*\*\/|^\s*\}/,
|
6
|
-
keyEquivalent:
|
6
|
+
keyEquivalent: "^~J",
|
7
7
|
name: "Java Server Page (JSP)",
|
8
8
|
patterns:
|
9
9
|
[{begin: /<%--/,
|
@@ -36,7 +36,8 @@
|
|
36
36
|
name: "string.quoted.single.jsp",
|
37
37
|
patterns:
|
38
38
|
[{match: /\\./, name: "constant.character.escape.jsp"}]}]}]},
|
39
|
-
{begin:
|
39
|
+
{begin:
|
40
|
+
/(?<_1><%[!=]?)|(?<_2><jsp:scriptlet>|<jsp:expression>|<jsp:declaration>)/,
|
40
41
|
beginCaptures:
|
41
42
|
{1 => {name: "punctuation.section.embedded.jsp"},
|
42
43
|
2 => {name: "meta.tag.block.jsp"}},
|
@@ -46,7 +47,7 @@
|
|
46
47
|
{1 => {name: "meta.tag.block.jsp"},
|
47
48
|
2 => {name: "punctuation.section.embedded.jsp"}},
|
48
49
|
match:
|
49
|
-
/(
|
50
|
+
/(?<_1><\/jsp:scriptlet>|<\/jsp:expression>|<\/jsp:declaration>)|(?<_2>%>)/},
|
50
51
|
{begin:
|
51
52
|
/(?<!\n)(?!<\/jsp:scriptlet>|<\/jsp:expression>|<\/jsp:declaration>|%>|\{|\})/,
|
52
53
|
end:
|
@@ -57,7 +58,7 @@
|
|
57
58
|
end: "}",
|
58
59
|
patterns:
|
59
60
|
[{begin:
|
60
|
-
/(
|
61
|
+
/(?<_1><\/jsp:scriptlet>|<\/jsp:expression>|<\/jsp:declaration>)|(?<_2>%>)/,
|
61
62
|
captures:
|
62
63
|
{1 => {name: "meta.tag.block.jsp"},
|
63
64
|
2 => {name: "punctuation.section.embedded.jsp"}},
|
data/config/syntax/Java.rb
CHANGED
@@ -1,22 +1,28 @@
|
|
1
1
|
# Encoding: UTF-8
|
2
2
|
|
3
3
|
{fileTypes: ["java", "bsh"],
|
4
|
-
foldingStartMarker: /(
|
5
|
-
foldingStopMarker: /^\s*(
|
6
|
-
keyEquivalent:
|
4
|
+
foldingStartMarker: /(?<_1>\{\s*(?<_2>\/\/.*)?$|^\s*\/\/ \{\{\{)/,
|
5
|
+
foldingStopMarker: /^\s*(?<_1>\}|\/\/ \}\}\}$)/,
|
6
|
+
keyEquivalent: "^~J",
|
7
7
|
name: "Java",
|
8
8
|
patterns:
|
9
9
|
[{captures:
|
10
10
|
{1 => {name: "keyword.other.package.java"},
|
11
11
|
2 => {name: "storage.modifier.package.java"},
|
12
12
|
3 => {name: "punctuation.terminator.java"}},
|
13
|
-
match: /^\s*(package)\b(?:\s*([^ ;$]+)\s*(
|
13
|
+
match: /^\s*(?<_1>package)\b(?:\s*(?<_2>[^ ;$]+)\s*(?<_3>;)?)?/,
|
14
14
|
name: "meta.package.java"},
|
15
|
+
{captures:
|
16
|
+
{1 => {name: "keyword.other.import.static.java"},
|
17
|
+
2 => {name: "storage.modifier.import.java"},
|
18
|
+
3 => {name: "punctuation.terminator.java"}},
|
19
|
+
match: /^\s*(?<_1>import static)\b(?:\s*(?<_2>[^ ;$]+)\s*(?<_3>;)?)?/,
|
20
|
+
name: "meta.import.static.java"},
|
15
21
|
{captures:
|
16
22
|
{1 => {name: "keyword.other.import.java"},
|
17
23
|
2 => {name: "storage.modifier.import.java"},
|
18
24
|
3 => {name: "punctuation.terminator.java"}},
|
19
|
-
match: /^\s*(import)\b(?:\s*([^ ;$]+)\s*(
|
25
|
+
match: /^\s*(?<_1>import)\b(?:\s*(?<_2>[^ ;$]+)\s*(?<_3>;)?)?/,
|
20
26
|
name: "meta.import.java"},
|
21
27
|
{include: "#code"}],
|
22
28
|
repository:
|
@@ -27,7 +33,7 @@
|
|
27
33
|
{include: "#object-types"}]},
|
28
34
|
annotations:
|
29
35
|
{patterns:
|
30
|
-
[{begin: /(
|
36
|
+
[{begin: /(?<_1>@[^ (?<_2>]+)(?<_3>\()/,
|
31
37
|
beginCaptures:
|
32
38
|
{1 => {name: "storage.type.annotation.java"},
|
33
39
|
2 =>
|
@@ -40,7 +46,7 @@
|
|
40
46
|
[{captures:
|
41
47
|
{1 => {name: "constant.other.key.java"},
|
42
48
|
2 => {name: "keyword.operator.assignment.java"}},
|
43
|
-
match: /(
|
49
|
+
match: /(?<_1>\w*)\s*(?<_2>=)/},
|
44
50
|
{include: "#code"},
|
45
51
|
{match: /,/, name: "punctuation.seperator.property.java"}]},
|
46
52
|
{match: /@\w*/, name: "storage.type.annotation.java"}]},
|
@@ -49,7 +55,7 @@
|
|
49
55
|
beginCaptures: {0 => {name: "keyword.control.new.java"}},
|
50
56
|
end: "(?<=\\)|\\])(?!\\s*{)|(?<=})|(?=;)",
|
51
57
|
patterns:
|
52
|
-
[{begin: /(
|
58
|
+
[{begin: /(?<_1>\w+)\s*(?=\[)/,
|
53
59
|
beginCaptures: {1 => {name: "storage.type.java"}},
|
54
60
|
end: "}|(?=;|\\))",
|
55
61
|
patterns:
|
@@ -69,7 +75,7 @@
|
|
69
75
|
patterns: [{include: "#class-body"}]}]},
|
70
76
|
assertions:
|
71
77
|
{patterns:
|
72
|
-
[{begin: /\b(assert)\s/,
|
78
|
+
[{begin: /\b(?<_1>assert)\s/,
|
73
79
|
beginCaptures: {1 => {name: "keyword.control.assert.java"}},
|
74
80
|
end: "$",
|
75
81
|
name: "meta.declaration.assertion.java",
|
@@ -88,7 +94,7 @@
|
|
88
94
|
{captures:
|
89
95
|
{1 => {name: "storage.modifier.java"},
|
90
96
|
2 => {name: "entity.name.type.class.java"}},
|
91
|
-
match: /(class|(?:@)?interface|enum)\s+(
|
97
|
+
match: /(?<_1>class|(?:@)?interface|enum)\s+(?<_2>\w+)/,
|
92
98
|
name: "meta.class.identifier.java"},
|
93
99
|
{begin: /extends/,
|
94
100
|
beginCaptures: {0 => {name: "storage.modifier.extends.java"}},
|
@@ -96,7 +102,7 @@
|
|
96
102
|
name: "meta.definition.class.inherited.classes.java",
|
97
103
|
patterns:
|
98
104
|
[{include: "#object-types-inherited"}, {include: "#comments"}]},
|
99
|
-
{begin: /(implements)\s/,
|
105
|
+
{begin: /(?<_1>implements)\s/,
|
100
106
|
beginCaptures: {1 => {name: "storage.modifier.implements.java"}},
|
101
107
|
end: "(?=\\s*extends|\\{)",
|
102
108
|
name: "meta.definition.class.implemented.interfaces.java",
|
@@ -144,19 +150,19 @@
|
|
144
150
|
{captures:
|
145
151
|
{1 => {name: "comment.line.double-slash.java"},
|
146
152
|
2 => {name: "punctuation.definition.comment.java"}},
|
147
|
-
match: /\s*((
|
153
|
+
match: /\s*(?<_1>(?<_2>\/\/).*$\n?)/}]},
|
148
154
|
:"constants-and-special-vars" =>
|
149
155
|
{patterns:
|
150
|
-
[{match: /\b(true|false|null)\b/, name: "constant.language.java"},
|
151
|
-
{match: /\b(this|super)\b/, name: "variable.language.java"},
|
156
|
+
[{match: /\b(?<_1>true|false|null)\b/, name: "constant.language.java"},
|
157
|
+
{match: /\b(?<_1>this|super)\b/, name: "variable.language.java"},
|
152
158
|
{match:
|
153
|
-
/\b((0(x|X)[0-9a-fA-F]*)|(([0-9]+\.?[0-9]*)|(
|
159
|
+
/\b(?<_1>(?<_2>0(?<_3>x|X)[0-9a-fA-F]*)|(?<_4>(?<_5>[0-9]+\.?[0-9]*)|(?<_6>\.[0-9]+))(?<_7>(?<_8>e|E)(?<_9>\+|-)?[0-9]+)?)(?<_10>[LlFfUuDd]|UL|ul)?\b/,
|
154
160
|
name: "constant.numeric.java"},
|
155
161
|
{captures: {1 => {name: "keyword.operator.dereference.java"}},
|
156
|
-
match: /(
|
162
|
+
match: /(?<_1>\.)?\b(?<_2>[A-Z][A-Z0-9_]+)(?!<|\.class|\s*\w+\s*=)\b/,
|
157
163
|
name: "constant.other.java"}]},
|
158
164
|
enums:
|
159
|
-
{begin: /^(?=\s*[A-Z0-9_]+\s*({|\(|,))/,
|
165
|
+
{begin: /^(?=\s*[A-Z0-9_]+\s*(?<_1>{|\(|,))/,
|
160
166
|
end: "(?=;|})",
|
161
167
|
patterns:
|
162
168
|
[{begin: /\w+/,
|
@@ -168,20 +174,21 @@
|
|
168
174
|
{begin: /{/, end: "}", patterns: [{include: "#class-body"}]}]}]},
|
169
175
|
keywords:
|
170
176
|
{patterns:
|
171
|
-
[{match: /\b(try|catch|finally|throw)\b/,
|
177
|
+
[{match: /\b(?<_1>try|catch|finally|throw)\b/,
|
172
178
|
name: "keyword.control.catch-exception.java"},
|
173
179
|
{match: /\?|:/, name: "keyword.control.java"},
|
174
180
|
{match:
|
175
|
-
/\b(return|break|case|continue|default|do|while|for|switch|if|else)\b/,
|
181
|
+
/\b(?<_1>return|break|case|continue|default|do|while|for|switch|if|else)\b/,
|
176
182
|
name: "keyword.control.java"},
|
177
|
-
{match: /\b(instanceof)\b/, name: "keyword.operator.java"},
|
178
|
-
{match: /(
|
183
|
+
{match: /\b(?<_1>instanceof)\b/, name: "keyword.operator.java"},
|
184
|
+
{match: /(?<_1>==|!=|<=|>=|<>|<|>)/,
|
179
185
|
name: "keyword.operator.comparison.java"},
|
180
|
-
{match: /(
|
181
|
-
{match: /(
|
186
|
+
{match: /(?<_1>=)/, name: "keyword.operator.assignment.java"},
|
187
|
+
{match: /(?<_1>\-\-|\+\+)/,
|
182
188
|
name: "keyword.operator.increment-decrement.java"},
|
183
|
-
{match: /(
|
184
|
-
|
189
|
+
{match: /(?<_1>\-|\+|\*|\/|%)/,
|
190
|
+
name: "keyword.operator.arithmetic.java"},
|
191
|
+
{match: /(?<_1>!|&&|\|\|)/, name: "keyword.operator.logical.java"},
|
185
192
|
{match: /(?<=\S)\.(?=\S)/, name: "keyword.operator.dereference.java"},
|
186
193
|
{match: /;/, name: "punctuation.terminator.java"}]},
|
187
194
|
methods:
|
@@ -190,7 +197,7 @@
|
|
190
197
|
name: "meta.method.java",
|
191
198
|
patterns:
|
192
199
|
[{include: "#storage-modifiers"},
|
193
|
-
{begin: /(
|
200
|
+
{begin: /(?<_1>\w+)\s*\(/,
|
194
201
|
beginCaptures: {1 => {name: "entity.name.function.java"}},
|
195
202
|
end: "\\)",
|
196
203
|
name: "meta.method.identifier.java",
|
@@ -206,7 +213,7 @@
|
|
206
213
|
patterns: [{include: "#code"}]}]},
|
207
214
|
:"object-types" =>
|
208
215
|
{patterns:
|
209
|
-
[{begin: /\b((?:[a-z]\w*\.)*[A-Z]+\w*)</,
|
216
|
+
[{begin: /\b(?<_1>(?:[a-z]\w*\.)*[A-Z]+\w*)</,
|
210
217
|
end: ">|[^\\w\\s,\\?<\\[\\]]",
|
211
218
|
name: "storage.type.generic.java",
|
212
219
|
patterns:
|
@@ -215,16 +222,16 @@
|
|
215
222
|
comment: "This is just to support <>'s with no actual type prefix",
|
216
223
|
end: ">|[^\\w\\s,\\[\\]<]",
|
217
224
|
name: "storage.type.generic.java"}]},
|
218
|
-
{begin: /\b((?:[a-z]\w*\.)*[A-Z]+\w*)(?=\[)/,
|
225
|
+
{begin: /\b(?<_1>(?:[a-z]\w*\.)*[A-Z]+\w*)(?=\[)/,
|
219
226
|
end: "(?=[^\\]\\s])",
|
220
227
|
name: "storage.type.object.array.java",
|
221
228
|
patterns: [{begin: /\[/, end: "\\]", patterns: [{include: "#code"}]}]},
|
222
229
|
{captures: {1 => {name: "keyword.operator.dereference.java"}},
|
223
|
-
match: /\b(?:[a-z]\w*(
|
230
|
+
match: /\b(?:[a-z]\w*(?<_1>\.))*[A-Z]+\w*\b/,
|
224
231
|
name: "storage.type.java"}]},
|
225
232
|
:"object-types-inherited" =>
|
226
233
|
{patterns:
|
227
|
-
[{begin: /\b((?:[a-z]\w*\.)*[A-Z]+\w*)</,
|
234
|
+
[{begin: /\b(?<_1>(?:[a-z]\w*\.)*[A-Z]+\w*)</,
|
228
235
|
end: ">|[^\\w\\s,<]",
|
229
236
|
name: "entity.other.inherited-class.java",
|
230
237
|
patterns:
|
@@ -234,7 +241,7 @@
|
|
234
241
|
end: ">|[^\\w\\s,<]",
|
235
242
|
name: "storage.type.generic.java"}]},
|
236
243
|
{captures: {1 => {name: "keyword.operator.dereference.java"}},
|
237
|
-
match: /\b(?:[a-z]\w*(
|
244
|
+
match: /\b(?:[a-z]\w*(?<_1>\.))*[A-Z]+\w*/,
|
238
245
|
name: "entity.other.inherited-class.java"}]},
|
239
246
|
parameters:
|
240
247
|
{patterns:
|
@@ -247,7 +254,7 @@
|
|
247
254
|
:"primitive-arrays" =>
|
248
255
|
{patterns:
|
249
256
|
[{match:
|
250
|
-
/\b(?:void|boolean|byte|char|short|int|float|long|double)(
|
257
|
+
/\b(?:void|boolean|byte|char|short|int|float|long|double)(?<_1>\[\])*\b/,
|
251
258
|
name: "storage.type.primitive.array.java"}]},
|
252
259
|
:"primitive-types" =>
|
253
260
|
{patterns:
|
@@ -256,7 +263,7 @@
|
|
256
263
|
:"storage-modifiers" =>
|
257
264
|
{captures: {1 => {name: "storage.modifier.java"}},
|
258
265
|
match:
|
259
|
-
/\b(public|private|protected|static|final|native|synchronized|abstract|threadsafe|transient)\b/},
|
266
|
+
/\b(?<_1>public|private|protected|static|final|native|synchronized|abstract|threadsafe|transient)\b/},
|
260
267
|
strings:
|
261
268
|
{patterns:
|
262
269
|
[{begin: /"/,
|