kitabu 0.4.7 → 1.0.0.rc1
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +3 -0
- data/.gitmodules +3 -0
- data/.rspec +1 -0
- data/Gemfile +2 -0
- data/Gemfile.lock +62 -0
- data/README.rdoc +187 -0
- data/Rakefile +4 -36
- data/bin/kitabu +2 -5
- data/examples/RailsGuides/config/helper.rb +29 -0
- data/examples/RailsGuides/config/kitabu.yml +48 -0
- data/examples/RailsGuides/images/challenge.png +0 -0
- data/examples/RailsGuides/images/posts_index.png +0 -0
- data/examples/RailsGuides/images/rails_welcome.png +0 -0
- data/examples/RailsGuides/output/RailsGuides.epub +0 -0
- data/examples/RailsGuides/output/RailsGuides.html +1556 -0
- data/examples/RailsGuides/output/RailsGuides.pdf +4930 -7
- data/examples/RailsGuides/templates/cover.erb +16 -0
- data/examples/RailsGuides/templates/layout.css +352 -0
- data/examples/RailsGuides/templates/layout.erb +43 -0
- data/{lib/kitabu/vendor/ruby1.8/uv/render/xhtml/files/css/idle.css → examples/RailsGuides/templates/syntax.css} +0 -0
- data/examples/RailsGuides/templates/user.css +19 -0
- data/examples/RailsGuides/text/01_Guide_Assumptions.mkdn +13 -0
- data/examples/RailsGuides/text/02_What_is_Rails.mkdn +106 -0
- data/examples/RailsGuides/text/03_Creating_a_new_Rails_project.mkdn +200 -0
- data/examples/RailsGuides/text/04_Hello_Rails.mkdn +62 -0
- data/examples/RailsGuides/text/05_Getting_Up_and_Running_Quickly_with_Scaffolding.mkdn +4 -0
- data/examples/RailsGuides/text/06_Creating_a_resource.mkdn +503 -0
- data/examples/RailsGuides/text/07_Adding_a_second_model.mkdn +232 -0
- data/examples/RailsGuides/text/08_Refactoring.mkdn +123 -0
- data/examples/RailsGuides/text/09_Deleting_comments.mkdn +57 -0
- data/examples/RailsGuides/text/09_Security.mkdn +56 -0
- data/examples/RailsGuides/text/10_Building_a_multi_model_form.mkdn +130 -0
- data/examples/RailsGuides/text/11_View_helpers.mkdn +50 -0
- data/examples/RailsGuides/text/12_Whats_next.mkdn +14 -0
- data/examples/RailsGuides/text/13_Configuration_gotchas.mkdn +10 -0
- data/kitabu.gemspec +28 -491
- data/lib/kitabu.rb +54 -46
- data/lib/kitabu/cli.rb +88 -0
- data/lib/kitabu/errors.rb +3 -0
- data/lib/kitabu/exporter.rb +81 -0
- data/lib/kitabu/extensions/redcloth.rb +65 -0
- data/lib/kitabu/extensions/string.rb +11 -0
- data/lib/kitabu/generator.rb +74 -0
- data/lib/kitabu/parser.rb +34 -0
- data/lib/kitabu/parser/epub.rb +131 -0
- data/lib/kitabu/parser/html.rb +174 -0
- data/lib/kitabu/parser/mobi.rb +17 -0
- data/lib/kitabu/parser/pdf.rb +41 -0
- data/lib/kitabu/parser/txt.rb +22 -0
- data/lib/kitabu/stream.rb +27 -0
- data/lib/kitabu/syntax.rb +109 -107
- data/lib/kitabu/toc.rb +62 -33
- data/lib/kitabu/version.rb +8 -0
- data/spec/kitabu/cli/export_spec.rb +17 -0
- data/spec/kitabu/cli/new_spec.rb +21 -0
- data/spec/kitabu/cli/permalinks_spec.rb +12 -0
- data/spec/kitabu/cli/version_spec.rb +12 -0
- data/spec/kitabu/extensions/redcloth_spec.rb +52 -0
- data/spec/kitabu/extensions/string_spec.rb +21 -0
- data/spec/kitabu/generator_spec.rb +10 -0
- data/spec/kitabu/parser/epub_spec.rb +10 -0
- data/spec/kitabu/parser/html_spec.rb +75 -0
- data/spec/kitabu/parser/pdf_spec.rb +14 -0
- data/spec/kitabu/syntax_spec.rb +80 -76
- data/spec/kitabu/toc_spec.rb +42 -68
- data/spec/kitabu_spec.rb +4 -0
- data/spec/spec_helper.rb +20 -24
- data/spec/support/exit_with_code.rb +26 -0
- data/spec/support/have_tag.rb +115 -0
- data/spec/support/helper.rb +18 -0
- data/spec/support/mybook/.gitignore +1 -0
- data/spec/support/mybook/code/.gitkeep +0 -0
- data/spec/support/mybook/code/code.rb +13 -0
- data/spec/support/mybook/config/helper.rb +29 -0
- data/spec/support/mybook/config/kitabu.yml +59 -0
- data/spec/support/mybook/images/.gitkeep +0 -0
- data/spec/support/mybook/images/logo.gif +0 -0
- data/spec/support/mybook/output/.gitkeep +0 -0
- data/spec/support/mybook/templates/cover.erb +16 -0
- data/spec/support/mybook/templates/epub.css +1 -0
- data/spec/support/mybook/templates/epub.erb +15 -0
- data/spec/support/mybook/templates/layout.css +137 -0
- data/{templates/layouts/boom/layout.html → spec/support/mybook/templates/layout.erb} +26 -17
- data/{templates/themes/mac_classic.css → spec/support/mybook/templates/syntax.css} +63 -0
- data/spec/support/mybook/templates/user.css +1 -0
- data/spec/support/mybook/text/.gitkeep +0 -0
- data/spec/support/mybook/text/01_Markdown_Chapter.markdown +8 -0
- data/spec/support/mybook/text/02_Textile_Chapter.textile +3 -0
- data/spec/support/mybook/text/03_HTML_Chapter.html +3 -0
- data/spec/support/mybook/text/04_With_Directory/Some_Chapter.mkdn +3 -0
- data/spec/support/mybook/text/CHANGELOG.textile +6 -0
- data/spec/support/mybook/text/TOC.textile +0 -0
- data/spec/support/mybook/text/_00_Introduction.markdown +3 -0
- data/spec/support/shared.rb +16 -0
- data/templates/config.erb +48 -0
- data/templates/cover.erb +16 -0
- data/templates/ebook.png +0 -0
- data/templates/epub.css +0 -0
- data/templates/epub.erb +15 -0
- data/templates/helper.rb +29 -0
- data/templates/layout.css +353 -0
- data/templates/layout.erb +44 -0
- data/{lib/kitabu/vendor/ruby1.8/uv/render/xhtml/files/css → templates/styles}/active4d.css +0 -0
- data/{lib/kitabu/vendor/ruby1.8/uv/render/xhtml/files/css → templates/styles}/all_hallows_eve.css +0 -0
- data/{lib/kitabu/vendor/ruby1.8/uv/render/xhtml/files/css → templates/styles}/amy.css +0 -0
- data/{lib/kitabu/vendor/ruby1.8/uv/render/xhtml/files/css → templates/styles}/blackboard.css +0 -0
- data/{lib/kitabu/vendor/ruby1.8/uv/render/xhtml/files/css → templates/styles}/brilliance_black.css +0 -0
- data/{lib/kitabu/vendor/ruby1.8/uv/render/xhtml/files/css → templates/styles}/brilliance_dull.css +0 -0
- data/{lib/kitabu/vendor/ruby1.8/uv/render/xhtml/files/css → templates/styles}/cobalt.css +0 -0
- data/{lib/kitabu/vendor/ruby1.9/uv/render/xhtml/files/css → templates/styles}/dawn.css +0 -0
- data/{lib/kitabu/vendor/ruby1.8/uv/render/xhtml/files/css → templates/styles}/eiffel.css +0 -0
- data/{lib/kitabu/vendor/ruby1.8/uv/render/xhtml/files/css → templates/styles}/espresso_libre.css +0 -0
- data/{lib/kitabu/vendor/ruby1.9/uv/render/xhtml/files/css → templates/styles}/idle.css +0 -0
- data/{lib/kitabu/vendor/ruby1.8/uv/render/xhtml/files/css → templates/styles}/iplastic.css +0 -0
- data/{lib/kitabu/vendor/ruby1.8/uv/render/xhtml/files/css → templates/styles}/lazy.css +0 -0
- data/{lib/kitabu/vendor/ruby1.8/uv/render/xhtml/files/css → templates/styles}/mac_classic.css +0 -0
- data/{lib/kitabu/vendor/ruby1.8/uv/render/xhtml/files/css → templates/styles}/magicwb_amiga.css +0 -0
- data/{lib/kitabu/vendor/ruby1.8/uv/render/xhtml/files/css → templates/styles}/pastels_on_dark.css +0 -0
- data/{lib/kitabu/vendor/ruby1.8/uv/render/xhtml/files/css → templates/styles}/slush_poppies.css +0 -0
- data/{lib/kitabu/vendor/ruby1.8/uv/render/xhtml/files/css → templates/styles}/spacecadet.css +0 -0
- data/{lib/kitabu/vendor/ruby1.8/uv/render/xhtml/files/css → templates/styles}/sunburst.css +0 -0
- data/{lib/kitabu/vendor/ruby1.8/uv/render/xhtml/files/css → templates/styles}/twilight.css +0 -0
- data/{lib/kitabu/vendor/ruby1.8/uv/render/xhtml/files/css → templates/styles}/zenburnesque.css +0 -0
- data/templates/user.css +1 -1
- metadata +395 -501
- data/README.markdown +0 -60
- data/VERSION +0 -1
- data/lib/kitabu/base.rb +0 -271
- data/lib/kitabu/blackcloth.rb +0 -184
- data/lib/kitabu/command.rb +0 -94
- data/lib/kitabu/redcloth.rb +0 -964
- data/lib/kitabu/tasks.rb +0 -113
- data/lib/kitabu/templates.rb +0 -54
- data/lib/kitabu/vendor/colorize/colorize.rb +0 -81
- data/lib/kitabu/vendor/ruby1.8/plist/plist.rb +0 -22
- data/lib/kitabu/vendor/ruby1.8/plist/plist/generator.rb +0 -224
- data/lib/kitabu/vendor/ruby1.8/plist/plist/parser.rb +0 -224
- data/lib/kitabu/vendor/ruby1.8/textpow/textpow.rb +0 -10
- data/lib/kitabu/vendor/ruby1.8/textpow/textpow/debug_processor.rb +0 -36
- data/lib/kitabu/vendor/ruby1.8/textpow/textpow/score_manager.rb +0 -65
- data/lib/kitabu/vendor/ruby1.8/textpow/textpow/syntax.rb +0 -284
- data/lib/kitabu/vendor/ruby1.8/uv/render/xhtml/active4d.render +0 -140
- data/lib/kitabu/vendor/ruby1.8/uv/render/xhtml/all_hallows_eve.render +0 -104
- data/lib/kitabu/vendor/ruby1.8/uv/render/xhtml/amy.render +0 -179
- data/lib/kitabu/vendor/ruby1.8/uv/render/xhtml/blackboard.render +0 -119
- data/lib/kitabu/vendor/ruby1.8/uv/render/xhtml/brilliance_black.render +0 -560
- data/lib/kitabu/vendor/ruby1.8/uv/render/xhtml/brilliance_dull.render +0 -569
- data/lib/kitabu/vendor/ruby1.8/uv/render/xhtml/cobalt.render +0 -170
- data/lib/kitabu/vendor/ruby1.8/uv/render/xhtml/dawn.render +0 -134
- data/lib/kitabu/vendor/ruby1.8/uv/render/xhtml/eiffel.render +0 -140
- data/lib/kitabu/vendor/ruby1.8/uv/render/xhtml/espresso_libre.render +0 -131
- data/lib/kitabu/vendor/ruby1.8/uv/render/xhtml/files/css/dawn.css +0 -121
- data/lib/kitabu/vendor/ruby1.8/uv/render/xhtml/idle.render +0 -101
- data/lib/kitabu/vendor/ruby1.8/uv/render/xhtml/iplastic.render +0 -107
- data/lib/kitabu/vendor/ruby1.8/uv/render/xhtml/lazy.render +0 -104
- data/lib/kitabu/vendor/ruby1.8/uv/render/xhtml/mac_classic.render +0 -143
- data/lib/kitabu/vendor/ruby1.8/uv/render/xhtml/magicwb_amiga.render +0 -125
- data/lib/kitabu/vendor/ruby1.8/uv/render/xhtml/pastels_on_dark.render +0 -212
- data/lib/kitabu/vendor/ruby1.8/uv/render/xhtml/slush_poppies.render +0 -131
- data/lib/kitabu/vendor/ruby1.8/uv/render/xhtml/spacecadet.render +0 -89
- data/lib/kitabu/vendor/ruby1.8/uv/render/xhtml/sunburst.render +0 -194
- data/lib/kitabu/vendor/ruby1.8/uv/render/xhtml/twilight.render +0 -161
- data/lib/kitabu/vendor/ruby1.8/uv/render/xhtml/zenburnesque.render +0 -134
- data/lib/kitabu/vendor/ruby1.8/uv/syntax/actionscript.syntax +0 -97
- data/lib/kitabu/vendor/ruby1.8/uv/syntax/active4d.syntax +0 -276
- data/lib/kitabu/vendor/ruby1.8/uv/syntax/active4d_html.syntax +0 -311
- data/lib/kitabu/vendor/ruby1.8/uv/syntax/active4d_ini.syntax +0 -50
- data/lib/kitabu/vendor/ruby1.8/uv/syntax/active4d_library.syntax +0 -21
- data/lib/kitabu/vendor/ruby1.8/uv/syntax/ada.syntax +0 -33
- data/lib/kitabu/vendor/ruby1.8/uv/syntax/antlr.syntax +0 -151
- data/lib/kitabu/vendor/ruby1.8/uv/syntax/apache.syntax +0 -191
- data/lib/kitabu/vendor/ruby1.8/uv/syntax/applescript.syntax +0 -384
- data/lib/kitabu/vendor/ruby1.8/uv/syntax/asp.syntax +0 -70
- data/lib/kitabu/vendor/ruby1.8/uv/syntax/asp_vb.net.syntax +0 -129
- data/lib/kitabu/vendor/ruby1.8/uv/syntax/bibtex.syntax +0 -151
- data/lib/kitabu/vendor/ruby1.8/uv/syntax/blog_html.syntax +0 -41
- data/lib/kitabu/vendor/ruby1.8/uv/syntax/blog_markdown.syntax +0 -42
- data/lib/kitabu/vendor/ruby1.8/uv/syntax/blog_text.syntax +0 -27
- data/lib/kitabu/vendor/ruby1.8/uv/syntax/blog_textile.syntax +0 -27
- data/lib/kitabu/vendor/ruby1.8/uv/syntax/buggy/nemerle.syntax +0 -74
- data/lib/kitabu/vendor/ruby1.8/uv/syntax/build.syntax +0 -53
- data/lib/kitabu/vendor/ruby1.8/uv/syntax/bulletin_board.syntax +0 -287
- data/lib/kitabu/vendor/ruby1.8/uv/syntax/c++.syntax +0 -109
- data/lib/kitabu/vendor/ruby1.8/uv/syntax/c.syntax +0 -326
- data/lib/kitabu/vendor/ruby1.8/uv/syntax/cake.syntax +0 -55
- data/lib/kitabu/vendor/ruby1.8/uv/syntax/camlp4.syntax +0 -36
- data/lib/kitabu/vendor/ruby1.8/uv/syntax/cm.syntax +0 -32
- data/lib/kitabu/vendor/ruby1.8/uv/syntax/coldfusion.syntax +0 -119
- data/lib/kitabu/vendor/ruby1.8/uv/syntax/context_free.syntax +0 -176
- data/lib/kitabu/vendor/ruby1.8/uv/syntax/cs.syntax +0 -59
- data/lib/kitabu/vendor/ruby1.8/uv/syntax/css.syntax +0 -195
- data/lib/kitabu/vendor/ruby1.8/uv/syntax/css_experimental.syntax +0 -1925
- data/lib/kitabu/vendor/ruby1.8/uv/syntax/csv.syntax +0 -68
- data/lib/kitabu/vendor/ruby1.8/uv/syntax/d.syntax +0 -142
- data/lib/kitabu/vendor/ruby1.8/uv/syntax/diff.syntax +0 -81
- data/lib/kitabu/vendor/ruby1.8/uv/syntax/dokuwiki.syntax +0 -204
- data/lib/kitabu/vendor/ruby1.8/uv/syntax/dot.syntax +0 -47
- data/lib/kitabu/vendor/ruby1.8/uv/syntax/doxygen.syntax +0 -43
- data/lib/kitabu/vendor/ruby1.8/uv/syntax/dylan.syntax +0 -62
- data/lib/kitabu/vendor/ruby1.8/uv/syntax/eiffel.syntax +0 -78
- data/lib/kitabu/vendor/ruby1.8/uv/syntax/erlang.syntax +0 -922
- data/lib/kitabu/vendor/ruby1.8/uv/syntax/f-script.syntax +0 -80
- data/lib/kitabu/vendor/ruby1.8/uv/syntax/fortran.syntax +0 -141
- data/lib/kitabu/vendor/ruby1.8/uv/syntax/fxscript.syntax +0 -142
- data/lib/kitabu/vendor/ruby1.8/uv/syntax/greasemonkey.syntax +0 -34
- data/lib/kitabu/vendor/ruby1.8/uv/syntax/gri.syntax +0 -83
- data/lib/kitabu/vendor/ruby1.8/uv/syntax/groovy.syntax +0 -191
- data/lib/kitabu/vendor/ruby1.8/uv/syntax/gtd.syntax +0 -22
- data/lib/kitabu/vendor/ruby1.8/uv/syntax/gtdalt.syntax +0 -143
- data/lib/kitabu/vendor/ruby1.8/uv/syntax/haml.syntax +0 -88
- data/lib/kitabu/vendor/ruby1.8/uv/syntax/haskell.syntax +0 -88
- data/lib/kitabu/vendor/ruby1.8/uv/syntax/html-asp.syntax +0 -27
- data/lib/kitabu/vendor/ruby1.8/uv/syntax/html.syntax +0 -362
- data/lib/kitabu/vendor/ruby1.8/uv/syntax/html_django.syntax +0 -36
- data/lib/kitabu/vendor/ruby1.8/uv/syntax/html_for_asp.net.syntax +0 -424
- data/lib/kitabu/vendor/ruby1.8/uv/syntax/html_mason.syntax +0 -119
- data/lib/kitabu/vendor/ruby1.8/uv/syntax/html_rails.syntax +0 -40
- data/lib/kitabu/vendor/ruby1.8/uv/syntax/html_tcl.syntax +0 -26
- data/lib/kitabu/vendor/ruby1.8/uv/syntax/icalendar.syntax +0 -32
- data/lib/kitabu/vendor/ruby1.8/uv/syntax/inform.syntax +0 -48
- data/lib/kitabu/vendor/ruby1.8/uv/syntax/ini.syntax +0 -55
- data/lib/kitabu/vendor/ruby1.8/uv/syntax/installer_distribution_script.syntax +0 -77
- data/lib/kitabu/vendor/ruby1.8/uv/syntax/io.syntax +0 -81
- data/lib/kitabu/vendor/ruby1.8/uv/syntax/java.syntax +0 -211
- data/lib/kitabu/vendor/ruby1.8/uv/syntax/javaproperties.syntax +0 -20
- data/lib/kitabu/vendor/ruby1.8/uv/syntax/javascript.syntax +0 -256
- data/lib/kitabu/vendor/ruby1.8/uv/syntax/javascript_+_prototype.syntax +0 -72
- data/lib/kitabu/vendor/ruby1.8/uv/syntax/javascript_+_prototype_bracketed.syntax +0 -140
- data/lib/kitabu/vendor/ruby1.8/uv/syntax/jquery_javascript.syntax +0 -114
- data/lib/kitabu/vendor/ruby1.8/uv/syntax/json.syntax +0 -136
- data/lib/kitabu/vendor/ruby1.8/uv/syntax/languagedefinition.syntax +0 -708
- data/lib/kitabu/vendor/ruby1.8/uv/syntax/latex.syntax +0 -566
- data/lib/kitabu/vendor/ruby1.8/uv/syntax/latex_beamer.syntax +0 -41
- data/lib/kitabu/vendor/ruby1.8/uv/syntax/latex_log.syntax +0 -50
- data/lib/kitabu/vendor/ruby1.8/uv/syntax/latex_memoir.syntax +0 -64
- data/lib/kitabu/vendor/ruby1.8/uv/syntax/lexflex.syntax +0 -219
- data/lib/kitabu/vendor/ruby1.8/uv/syntax/lighttpd.syntax +0 -54
- data/lib/kitabu/vendor/ruby1.8/uv/syntax/lilypond.syntax +0 -492
- data/lib/kitabu/vendor/ruby1.8/uv/syntax/lisp.syntax +0 -61
- data/lib/kitabu/vendor/ruby1.8/uv/syntax/literate_haskell.syntax +0 -24
- data/lib/kitabu/vendor/ruby1.8/uv/syntax/logo.syntax +0 -29
- data/lib/kitabu/vendor/ruby1.8/uv/syntax/logtalk.syntax +0 -152
- data/lib/kitabu/vendor/ruby1.8/uv/syntax/lua.syntax +0 -86
- data/lib/kitabu/vendor/ruby1.8/uv/syntax/m.syntax +0 -142
- data/lib/kitabu/vendor/ruby1.8/uv/syntax/macports_portfile.syntax +0 -163
- data/lib/kitabu/vendor/ruby1.8/uv/syntax/mail.syntax +0 -118
- data/lib/kitabu/vendor/ruby1.8/uv/syntax/makefile.syntax +0 -36
- data/lib/kitabu/vendor/ruby1.8/uv/syntax/man.syntax +0 -17
- data/lib/kitabu/vendor/ruby1.8/uv/syntax/markdown.syntax +0 -543
- data/lib/kitabu/vendor/ruby1.8/uv/syntax/mediawiki.syntax +0 -567
- data/lib/kitabu/vendor/ruby1.8/uv/syntax/mel.syntax +0 -92
- data/lib/kitabu/vendor/ruby1.8/uv/syntax/mips.syntax +0 -66
- data/lib/kitabu/vendor/ruby1.8/uv/syntax/mod_perl.syntax +0 -50
- data/lib/kitabu/vendor/ruby1.8/uv/syntax/modula-3.syntax +0 -47
- data/lib/kitabu/vendor/ruby1.8/uv/syntax/moinmoin.syntax +0 -189
- data/lib/kitabu/vendor/ruby1.8/uv/syntax/mootools.syntax +0 -572
- data/lib/kitabu/vendor/ruby1.8/uv/syntax/movable_type.syntax +0 -162
- data/lib/kitabu/vendor/ruby1.8/uv/syntax/multimarkdown.syntax +0 -39
- data/lib/kitabu/vendor/ruby1.8/uv/syntax/objective-c++.syntax +0 -18
- data/lib/kitabu/vendor/ruby1.8/uv/syntax/objective-c.syntax +0 -233
- data/lib/kitabu/vendor/ruby1.8/uv/syntax/ocaml.syntax +0 -764
- data/lib/kitabu/vendor/ruby1.8/uv/syntax/ocamllex.syntax +0 -167
- data/lib/kitabu/vendor/ruby1.8/uv/syntax/ocamlyacc.syntax +0 -184
- data/lib/kitabu/vendor/ruby1.8/uv/syntax/old/YAML.yaml +0 -160
- data/lib/kitabu/vendor/ruby1.8/uv/syntax/old/txt2tags.yaml +0 -139
- data/lib/kitabu/vendor/ruby1.8/uv/syntax/opengl.syntax +0 -14
- data/lib/kitabu/vendor/ruby1.8/uv/syntax/pascal.syntax +0 -77
- data/lib/kitabu/vendor/ruby1.8/uv/syntax/perl.syntax +0 -1115
- data/lib/kitabu/vendor/ruby1.8/uv/syntax/php.syntax +0 -1253
- data/lib/kitabu/vendor/ruby1.8/uv/syntax/plain_text.syntax +0 -32
- data/lib/kitabu/vendor/ruby1.8/uv/syntax/pmwiki.syntax +0 -113
- data/lib/kitabu/vendor/ruby1.8/uv/syntax/postscript.syntax +0 -114
- data/lib/kitabu/vendor/ruby1.8/uv/syntax/processing.syntax +0 -106
- data/lib/kitabu/vendor/ruby1.8/uv/syntax/prolog.syntax +0 -40
- data/lib/kitabu/vendor/ruby1.8/uv/syntax/property_list.syntax +0 -635
- data/lib/kitabu/vendor/ruby1.8/uv/syntax/python.syntax +0 -868
- data/lib/kitabu/vendor/ruby1.8/uv/syntax/python_django.syntax +0 -21
- data/lib/kitabu/vendor/ruby1.8/uv/syntax/qmake_project.syntax +0 -114
- data/lib/kitabu/vendor/ruby1.8/uv/syntax/qt_c++.syntax +0 -26
- data/lib/kitabu/vendor/ruby1.8/uv/syntax/quake3_config.syntax +0 -32
- data/lib/kitabu/vendor/ruby1.8/uv/syntax/r.syntax +0 -81
- data/lib/kitabu/vendor/ruby1.8/uv/syntax/r_console.syntax +0 -16
- data/lib/kitabu/vendor/ruby1.8/uv/syntax/ragel.syntax +0 -201
- data/lib/kitabu/vendor/ruby1.8/uv/syntax/rd_r_documentation.syntax +0 -91
- data/lib/kitabu/vendor/ruby1.8/uv/syntax/regexp.syntax +0 -50
- data/lib/kitabu/vendor/ruby1.8/uv/syntax/regular_expressions_oniguruma.syntax +0 -107
- data/lib/kitabu/vendor/ruby1.8/uv/syntax/regular_expressions_python.syntax +0 -109
- data/lib/kitabu/vendor/ruby1.8/uv/syntax/release_notes.syntax +0 -46
- data/lib/kitabu/vendor/ruby1.8/uv/syntax/remind.syntax +0 -253
- data/lib/kitabu/vendor/ruby1.8/uv/syntax/restructuredtext.syntax +0 -250
- data/lib/kitabu/vendor/ruby1.8/uv/syntax/rez.syntax +0 -80
- data/lib/kitabu/vendor/ruby1.8/uv/syntax/ruby.syntax +0 -1035
- data/lib/kitabu/vendor/ruby1.8/uv/syntax/ruby_experimental.syntax +0 -145
- data/lib/kitabu/vendor/ruby1.8/uv/syntax/ruby_on_rails.syntax +0 -88
- data/lib/kitabu/vendor/ruby1.8/uv/syntax/s5.syntax +0 -69
- data/lib/kitabu/vendor/ruby1.8/uv/syntax/scheme.syntax +0 -347
- data/lib/kitabu/vendor/ruby1.8/uv/syntax/scilab.syntax +0 -41
- data/lib/kitabu/vendor/ruby1.8/uv/syntax/setext.syntax +0 -147
- data/lib/kitabu/vendor/ruby1.8/uv/syntax/shell-unix-generic.syntax +0 -384
- data/lib/kitabu/vendor/ruby1.8/uv/syntax/slate.syntax +0 -149
- data/lib/kitabu/vendor/ruby1.8/uv/syntax/smarty.syntax +0 -63
- data/lib/kitabu/vendor/ruby1.8/uv/syntax/sql.syntax +0 -237
- data/lib/kitabu/vendor/ruby1.8/uv/syntax/sql_rails.syntax +0 -18
- data/lib/kitabu/vendor/ruby1.8/uv/syntax/ssh-config.syntax +0 -33
- data/lib/kitabu/vendor/ruby1.8/uv/syntax/standard_ml.syntax +0 -121
- data/lib/kitabu/vendor/ruby1.8/uv/syntax/strings_file.syntax +0 -39
- data/lib/kitabu/vendor/ruby1.8/uv/syntax/subversion_commit_message.syntax +0 -36
- data/lib/kitabu/vendor/ruby1.8/uv/syntax/sweave.syntax +0 -84
- data/lib/kitabu/vendor/ruby1.8/uv/syntax/swig.syntax +0 -57
- data/lib/kitabu/vendor/ruby1.8/uv/syntax/tcl.syntax +0 -152
- data/lib/kitabu/vendor/ruby1.8/uv/syntax/template_toolkit.syntax +0 -121
- data/lib/kitabu/vendor/ruby1.8/uv/syntax/tex.syntax +0 -86
- data/lib/kitabu/vendor/ruby1.8/uv/syntax/tex_math.syntax +0 -49
- data/lib/kitabu/vendor/ruby1.8/uv/syntax/textile.syntax +0 -215
- data/lib/kitabu/vendor/ruby1.8/uv/syntax/tsv.syntax +0 -50
- data/lib/kitabu/vendor/ruby1.8/uv/syntax/twiki.syntax +0 -241
- data/lib/kitabu/vendor/ruby1.8/uv/syntax/txt2tags.syntax +0 -79
- data/lib/kitabu/vendor/ruby1.8/uv/syntax/vectorscript.syntax +0 -57
- data/lib/kitabu/vendor/ruby1.8/uv/syntax/xhtml_1.0.syntax +0 -4027
- data/lib/kitabu/vendor/ruby1.8/uv/syntax/xml.syntax +0 -180
- data/lib/kitabu/vendor/ruby1.8/uv/syntax/xml_strict.syntax +0 -92
- data/lib/kitabu/vendor/ruby1.8/uv/syntax/xsl.syntax +0 -60
- data/lib/kitabu/vendor/ruby1.8/uv/syntax/yaml.syntax +0 -160
- data/lib/kitabu/vendor/ruby1.8/uv/syntax/yui_javascript.syntax +0 -176
- data/lib/kitabu/vendor/ruby1.8/uv/uv.rb +0 -88
- data/lib/kitabu/vendor/ruby1.8/uv/uv/render_processor.rb +0 -131
- data/lib/kitabu/vendor/ruby1.8/uv/uv/utility.rb +0 -67
- data/lib/kitabu/vendor/ruby1.9/plist/plist.rb +0 -23
- data/lib/kitabu/vendor/ruby1.9/plist/plist/generator.rb +0 -228
- data/lib/kitabu/vendor/ruby1.9/plist/plist/parser.rb +0 -225
- data/lib/kitabu/vendor/ruby1.9/textpow/textpow.rb +0 -10
- data/lib/kitabu/vendor/ruby1.9/textpow/textpow/debug_processor.rb +0 -37
- data/lib/kitabu/vendor/ruby1.9/textpow/textpow/score_manager.rb +0 -66
- data/lib/kitabu/vendor/ruby1.9/textpow/textpow/syntax.rb +0 -286
- data/lib/kitabu/vendor/ruby1.9/uv/render/xhtml/active4d.render +0 -140
- data/lib/kitabu/vendor/ruby1.9/uv/render/xhtml/all_hallows_eve.render +0 -104
- data/lib/kitabu/vendor/ruby1.9/uv/render/xhtml/amy.render +0 -179
- data/lib/kitabu/vendor/ruby1.9/uv/render/xhtml/blackboard.render +0 -119
- data/lib/kitabu/vendor/ruby1.9/uv/render/xhtml/brilliance_black.render +0 -560
- data/lib/kitabu/vendor/ruby1.9/uv/render/xhtml/brilliance_dull.render +0 -569
- data/lib/kitabu/vendor/ruby1.9/uv/render/xhtml/cobalt.render +0 -170
- data/lib/kitabu/vendor/ruby1.9/uv/render/xhtml/dawn.render +0 -134
- data/lib/kitabu/vendor/ruby1.9/uv/render/xhtml/eiffel.render +0 -140
- data/lib/kitabu/vendor/ruby1.9/uv/render/xhtml/espresso_libre.render +0 -131
- data/lib/kitabu/vendor/ruby1.9/uv/render/xhtml/files/css/active4d.css +0 -114
- data/lib/kitabu/vendor/ruby1.9/uv/render/xhtml/files/css/all_hallows_eve.css +0 -72
- data/lib/kitabu/vendor/ruby1.9/uv/render/xhtml/files/css/amy.css +0 -147
- data/lib/kitabu/vendor/ruby1.9/uv/render/xhtml/files/css/blackboard.css +0 -88
- data/lib/kitabu/vendor/ruby1.9/uv/render/xhtml/files/css/brilliance_black.css +0 -605
- data/lib/kitabu/vendor/ruby1.9/uv/render/xhtml/files/css/brilliance_dull.css +0 -599
- data/lib/kitabu/vendor/ruby1.9/uv/render/xhtml/files/css/cobalt.css +0 -149
- data/lib/kitabu/vendor/ruby1.9/uv/render/xhtml/files/css/eiffel.css +0 -121
- data/lib/kitabu/vendor/ruby1.9/uv/render/xhtml/files/css/espresso_libre.css +0 -109
- data/lib/kitabu/vendor/ruby1.9/uv/render/xhtml/files/css/iplastic.css +0 -80
- data/lib/kitabu/vendor/ruby1.9/uv/render/xhtml/files/css/lazy.css +0 -73
- data/lib/kitabu/vendor/ruby1.9/uv/render/xhtml/files/css/mac_classic.css +0 -123
- data/lib/kitabu/vendor/ruby1.9/uv/render/xhtml/files/css/magicwb_amiga.css +0 -104
- data/lib/kitabu/vendor/ruby1.9/uv/render/xhtml/files/css/pastels_on_dark.css +0 -188
- data/lib/kitabu/vendor/ruby1.9/uv/render/xhtml/files/css/slush_poppies.css +0 -85
- data/lib/kitabu/vendor/ruby1.9/uv/render/xhtml/files/css/spacecadet.css +0 -51
- data/lib/kitabu/vendor/ruby1.9/uv/render/xhtml/files/css/sunburst.css +0 -180
- data/lib/kitabu/vendor/ruby1.9/uv/render/xhtml/files/css/twilight.css +0 -137
- data/lib/kitabu/vendor/ruby1.9/uv/render/xhtml/files/css/zenburnesque.css +0 -91
- data/lib/kitabu/vendor/ruby1.9/uv/render/xhtml/idle.render +0 -101
- data/lib/kitabu/vendor/ruby1.9/uv/render/xhtml/iplastic.render +0 -107
- data/lib/kitabu/vendor/ruby1.9/uv/render/xhtml/lazy.render +0 -104
- data/lib/kitabu/vendor/ruby1.9/uv/render/xhtml/mac_classic.render +0 -143
- data/lib/kitabu/vendor/ruby1.9/uv/render/xhtml/magicwb_amiga.render +0 -125
- data/lib/kitabu/vendor/ruby1.9/uv/render/xhtml/pastels_on_dark.render +0 -212
- data/lib/kitabu/vendor/ruby1.9/uv/render/xhtml/slush_poppies.render +0 -131
- data/lib/kitabu/vendor/ruby1.9/uv/render/xhtml/spacecadet.render +0 -89
- data/lib/kitabu/vendor/ruby1.9/uv/render/xhtml/sunburst.render +0 -194
- data/lib/kitabu/vendor/ruby1.9/uv/render/xhtml/twilight.render +0 -161
- data/lib/kitabu/vendor/ruby1.9/uv/render/xhtml/zenburnesque.render +0 -134
- data/lib/kitabu/vendor/ruby1.9/uv/syntax/actionscript.syntax +0 -97
- data/lib/kitabu/vendor/ruby1.9/uv/syntax/active4d.syntax +0 -276
- data/lib/kitabu/vendor/ruby1.9/uv/syntax/active4d_html.syntax +0 -311
- data/lib/kitabu/vendor/ruby1.9/uv/syntax/active4d_ini.syntax +0 -50
- data/lib/kitabu/vendor/ruby1.9/uv/syntax/active4d_library.syntax +0 -21
- data/lib/kitabu/vendor/ruby1.9/uv/syntax/ada.syntax +0 -33
- data/lib/kitabu/vendor/ruby1.9/uv/syntax/antlr.syntax +0 -151
- data/lib/kitabu/vendor/ruby1.9/uv/syntax/apache.syntax +0 -191
- data/lib/kitabu/vendor/ruby1.9/uv/syntax/applescript.syntax +0 -384
- data/lib/kitabu/vendor/ruby1.9/uv/syntax/asp.syntax +0 -70
- data/lib/kitabu/vendor/ruby1.9/uv/syntax/asp_vb.net.syntax +0 -129
- data/lib/kitabu/vendor/ruby1.9/uv/syntax/bibtex.syntax +0 -151
- data/lib/kitabu/vendor/ruby1.9/uv/syntax/blog_html.syntax +0 -41
- data/lib/kitabu/vendor/ruby1.9/uv/syntax/blog_markdown.syntax +0 -42
- data/lib/kitabu/vendor/ruby1.9/uv/syntax/blog_text.syntax +0 -27
- data/lib/kitabu/vendor/ruby1.9/uv/syntax/blog_textile.syntax +0 -27
- data/lib/kitabu/vendor/ruby1.9/uv/syntax/build.syntax +0 -53
- data/lib/kitabu/vendor/ruby1.9/uv/syntax/bulletin_board.syntax +0 -287
- data/lib/kitabu/vendor/ruby1.9/uv/syntax/cake.syntax +0 -55
- data/lib/kitabu/vendor/ruby1.9/uv/syntax/camlp4.syntax +0 -36
- data/lib/kitabu/vendor/ruby1.9/uv/syntax/cm.syntax +0 -32
- data/lib/kitabu/vendor/ruby1.9/uv/syntax/coldfusion.syntax +0 -119
- data/lib/kitabu/vendor/ruby1.9/uv/syntax/context_free.syntax +0 -176
- data/lib/kitabu/vendor/ruby1.9/uv/syntax/cs.syntax +0 -59
- data/lib/kitabu/vendor/ruby1.9/uv/syntax/css.syntax +0 -195
- data/lib/kitabu/vendor/ruby1.9/uv/syntax/css_experimental.syntax +0 -1925
- data/lib/kitabu/vendor/ruby1.9/uv/syntax/csv.syntax +0 -68
- data/lib/kitabu/vendor/ruby1.9/uv/syntax/d.syntax +0 -142
- data/lib/kitabu/vendor/ruby1.9/uv/syntax/diff.syntax +0 -81
- data/lib/kitabu/vendor/ruby1.9/uv/syntax/dokuwiki.syntax +0 -204
- data/lib/kitabu/vendor/ruby1.9/uv/syntax/dot.syntax +0 -47
- data/lib/kitabu/vendor/ruby1.9/uv/syntax/doxygen.syntax +0 -43
- data/lib/kitabu/vendor/ruby1.9/uv/syntax/dylan.syntax +0 -62
- data/lib/kitabu/vendor/ruby1.9/uv/syntax/eiffel.syntax +0 -78
- data/lib/kitabu/vendor/ruby1.9/uv/syntax/erlang.syntax +0 -922
- data/lib/kitabu/vendor/ruby1.9/uv/syntax/f-script.syntax +0 -80
- data/lib/kitabu/vendor/ruby1.9/uv/syntax/fortran.syntax +0 -141
- data/lib/kitabu/vendor/ruby1.9/uv/syntax/fxscript.syntax +0 -142
- data/lib/kitabu/vendor/ruby1.9/uv/syntax/greasemonkey.syntax +0 -34
- data/lib/kitabu/vendor/ruby1.9/uv/syntax/gri.syntax +0 -83
- data/lib/kitabu/vendor/ruby1.9/uv/syntax/groovy.syntax +0 -191
- data/lib/kitabu/vendor/ruby1.9/uv/syntax/gtd.syntax +0 -22
- data/lib/kitabu/vendor/ruby1.9/uv/syntax/gtdalt.syntax +0 -143
- data/lib/kitabu/vendor/ruby1.9/uv/syntax/haml.syntax +0 -88
- data/lib/kitabu/vendor/ruby1.9/uv/syntax/haskell.syntax +0 -88
- data/lib/kitabu/vendor/ruby1.9/uv/syntax/html-asp.syntax +0 -27
- data/lib/kitabu/vendor/ruby1.9/uv/syntax/html.syntax +0 -362
- data/lib/kitabu/vendor/ruby1.9/uv/syntax/html_django.syntax +0 -36
- data/lib/kitabu/vendor/ruby1.9/uv/syntax/html_for_asp.net.syntax +0 -424
- data/lib/kitabu/vendor/ruby1.9/uv/syntax/html_mason.syntax +0 -119
- data/lib/kitabu/vendor/ruby1.9/uv/syntax/html_rails.syntax +0 -40
- data/lib/kitabu/vendor/ruby1.9/uv/syntax/html_tcl.syntax +0 -26
- data/lib/kitabu/vendor/ruby1.9/uv/syntax/icalendar.syntax +0 -32
- data/lib/kitabu/vendor/ruby1.9/uv/syntax/inform.syntax +0 -48
- data/lib/kitabu/vendor/ruby1.9/uv/syntax/ini.syntax +0 -55
- data/lib/kitabu/vendor/ruby1.9/uv/syntax/installer_distribution_script.syntax +0 -77
- data/lib/kitabu/vendor/ruby1.9/uv/syntax/io.syntax +0 -81
- data/lib/kitabu/vendor/ruby1.9/uv/syntax/java.syntax +0 -211
- data/lib/kitabu/vendor/ruby1.9/uv/syntax/javaproperties.syntax +0 -20
- data/lib/kitabu/vendor/ruby1.9/uv/syntax/javascript.syntax +0 -256
- data/lib/kitabu/vendor/ruby1.9/uv/syntax/javascript_+_prototype.syntax +0 -72
- data/lib/kitabu/vendor/ruby1.9/uv/syntax/javascript_+_prototype_bracketed.syntax +0 -140
- data/lib/kitabu/vendor/ruby1.9/uv/syntax/jquery_javascript.syntax +0 -114
- data/lib/kitabu/vendor/ruby1.9/uv/syntax/json.syntax +0 -136
- data/lib/kitabu/vendor/ruby1.9/uv/syntax/languagedefinition.syntax +0 -708
- data/lib/kitabu/vendor/ruby1.9/uv/syntax/latex.syntax +0 -566
- data/lib/kitabu/vendor/ruby1.9/uv/syntax/latex_beamer.syntax +0 -41
- data/lib/kitabu/vendor/ruby1.9/uv/syntax/latex_log.syntax +0 -50
- data/lib/kitabu/vendor/ruby1.9/uv/syntax/latex_memoir.syntax +0 -64
- data/lib/kitabu/vendor/ruby1.9/uv/syntax/lexflex.syntax +0 -219
- data/lib/kitabu/vendor/ruby1.9/uv/syntax/lighttpd.syntax +0 -54
- data/lib/kitabu/vendor/ruby1.9/uv/syntax/lilypond.syntax +0 -492
- data/lib/kitabu/vendor/ruby1.9/uv/syntax/lisp.syntax +0 -61
- data/lib/kitabu/vendor/ruby1.9/uv/syntax/literate_haskell.syntax +0 -24
- data/lib/kitabu/vendor/ruby1.9/uv/syntax/logo.syntax +0 -29
- data/lib/kitabu/vendor/ruby1.9/uv/syntax/logtalk.syntax +0 -152
- data/lib/kitabu/vendor/ruby1.9/uv/syntax/lua.syntax +0 -86
- data/lib/kitabu/vendor/ruby1.9/uv/syntax/m.syntax +0 -142
- data/lib/kitabu/vendor/ruby1.9/uv/syntax/macports_portfile.syntax +0 -163
- data/lib/kitabu/vendor/ruby1.9/uv/syntax/makefile.syntax +0 -36
- data/lib/kitabu/vendor/ruby1.9/uv/syntax/man.syntax +0 -17
- data/lib/kitabu/vendor/ruby1.9/uv/syntax/mediawiki.syntax +0 -567
- data/lib/kitabu/vendor/ruby1.9/uv/syntax/mips.syntax +0 -66
- data/lib/kitabu/vendor/ruby1.9/uv/syntax/mod_perl.syntax +0 -50
- data/lib/kitabu/vendor/ruby1.9/uv/syntax/modula-3.syntax +0 -47
- data/lib/kitabu/vendor/ruby1.9/uv/syntax/moinmoin.syntax +0 -189
- data/lib/kitabu/vendor/ruby1.9/uv/syntax/mootools.syntax +0 -572
- data/lib/kitabu/vendor/ruby1.9/uv/syntax/movable_type.syntax +0 -162
- data/lib/kitabu/vendor/ruby1.9/uv/syntax/multimarkdown.syntax +0 -39
- data/lib/kitabu/vendor/ruby1.9/uv/syntax/objective-c++.syntax +0 -18
- data/lib/kitabu/vendor/ruby1.9/uv/syntax/objective-c.syntax +0 -233
- data/lib/kitabu/vendor/ruby1.9/uv/syntax/ocaml.syntax +0 -764
- data/lib/kitabu/vendor/ruby1.9/uv/syntax/ocamllex.syntax +0 -167
- data/lib/kitabu/vendor/ruby1.9/uv/syntax/ocamlyacc.syntax +0 -184
- data/lib/kitabu/vendor/ruby1.9/uv/syntax/opengl.syntax +0 -14
- data/lib/kitabu/vendor/ruby1.9/uv/syntax/pascal.syntax +0 -77
- data/lib/kitabu/vendor/ruby1.9/uv/syntax/perl.syntax +0 -1115
- data/lib/kitabu/vendor/ruby1.9/uv/syntax/plain_text.syntax +0 -32
- data/lib/kitabu/vendor/ruby1.9/uv/syntax/postscript.syntax +0 -114
- data/lib/kitabu/vendor/ruby1.9/uv/syntax/processing.syntax +0 -106
- data/lib/kitabu/vendor/ruby1.9/uv/syntax/prolog.syntax +0 -40
- data/lib/kitabu/vendor/ruby1.9/uv/syntax/property_list.syntax +0 -635
- data/lib/kitabu/vendor/ruby1.9/uv/syntax/python.syntax +0 -868
- data/lib/kitabu/vendor/ruby1.9/uv/syntax/python_django.syntax +0 -21
- data/lib/kitabu/vendor/ruby1.9/uv/syntax/qmake_project.syntax +0 -114
- data/lib/kitabu/vendor/ruby1.9/uv/syntax/qt_c++.syntax +0 -26
- data/lib/kitabu/vendor/ruby1.9/uv/syntax/quake3_config.syntax +0 -32
- data/lib/kitabu/vendor/ruby1.9/uv/syntax/r.syntax +0 -81
- data/lib/kitabu/vendor/ruby1.9/uv/syntax/r_console.syntax +0 -16
- data/lib/kitabu/vendor/ruby1.9/uv/syntax/ragel.syntax +0 -201
- data/lib/kitabu/vendor/ruby1.9/uv/syntax/rd_r_documentation.syntax +0 -91
- data/lib/kitabu/vendor/ruby1.9/uv/syntax/regexp.syntax +0 -50
- data/lib/kitabu/vendor/ruby1.9/uv/syntax/release_notes.syntax +0 -46
- data/lib/kitabu/vendor/ruby1.9/uv/syntax/remind.syntax +0 -253
- data/lib/kitabu/vendor/ruby1.9/uv/syntax/restructuredtext.syntax +0 -250
- data/lib/kitabu/vendor/ruby1.9/uv/syntax/rez.syntax +0 -80
- data/lib/kitabu/vendor/ruby1.9/uv/syntax/ruby.syntax +0 -1035
- data/lib/kitabu/vendor/ruby1.9/uv/syntax/ruby_experimental.syntax +0 -145
- data/lib/kitabu/vendor/ruby1.9/uv/syntax/ruby_on_rails.syntax +0 -88
- data/lib/kitabu/vendor/ruby1.9/uv/syntax/s5.syntax +0 -69
- data/lib/kitabu/vendor/ruby1.9/uv/syntax/scheme.syntax +0 -347
- data/lib/kitabu/vendor/ruby1.9/uv/syntax/scilab.syntax +0 -41
- data/lib/kitabu/vendor/ruby1.9/uv/syntax/setext.syntax +0 -147
- data/lib/kitabu/vendor/ruby1.9/uv/syntax/shell-unix-generic.syntax +0 -384
- data/lib/kitabu/vendor/ruby1.9/uv/syntax/slate.syntax +0 -149
- data/lib/kitabu/vendor/ruby1.9/uv/syntax/sql.syntax +0 -237
- data/lib/kitabu/vendor/ruby1.9/uv/syntax/sql_rails.syntax +0 -18
- data/lib/kitabu/vendor/ruby1.9/uv/syntax/ssh-config.syntax +0 -33
- data/lib/kitabu/vendor/ruby1.9/uv/syntax/standard_ml.syntax +0 -121
- data/lib/kitabu/vendor/ruby1.9/uv/syntax/strings_file.syntax +0 -39
- data/lib/kitabu/vendor/ruby1.9/uv/syntax/subversion_commit_message.syntax +0 -36
- data/lib/kitabu/vendor/ruby1.9/uv/syntax/sweave.syntax +0 -84
- data/lib/kitabu/vendor/ruby1.9/uv/syntax/swig.syntax +0 -57
- data/lib/kitabu/vendor/ruby1.9/uv/syntax/tcl.syntax +0 -152
- data/lib/kitabu/vendor/ruby1.9/uv/syntax/template_toolkit.syntax +0 -121
- data/lib/kitabu/vendor/ruby1.9/uv/syntax/tex.syntax +0 -86
- data/lib/kitabu/vendor/ruby1.9/uv/syntax/tex_math.syntax +0 -49
- data/lib/kitabu/vendor/ruby1.9/uv/syntax/textile.syntax +0 -215
- data/lib/kitabu/vendor/ruby1.9/uv/syntax/tsv.syntax +0 -50
- data/lib/kitabu/vendor/ruby1.9/uv/syntax/twiki.syntax +0 -241
- data/lib/kitabu/vendor/ruby1.9/uv/syntax/txt2tags.syntax +0 -79
- data/lib/kitabu/vendor/ruby1.9/uv/syntax/vectorscript.syntax +0 -57
- data/lib/kitabu/vendor/ruby1.9/uv/syntax/xhtml_1.0.syntax +0 -4027
- data/lib/kitabu/vendor/ruby1.9/uv/syntax/xml.syntax +0 -180
- data/lib/kitabu/vendor/ruby1.9/uv/syntax/xml_strict.syntax +0 -92
- data/lib/kitabu/vendor/ruby1.9/uv/syntax/xsl.syntax +0 -60
- data/lib/kitabu/vendor/ruby1.9/uv/syntax/yaml.syntax +0 -160
- data/lib/kitabu/vendor/ruby1.9/uv/syntax/yui_javascript.syntax +0 -176
- data/lib/kitabu/vendor/ruby1.9/uv/uv.rb +0 -89
- data/lib/kitabu/vendor/ruby1.9/uv/uv/render_processor.rb +0 -132
- data/lib/kitabu/vendor/ruby1.9/uv/uv/utility.rb +0 -68
- data/spec/exit_matcher.rb +0 -45
- data/spec/fixtures/rails-guides/code/sample.rb +0 -7
- data/spec/kitabu/base_spec.rb +0 -159
- data/spec/kitabu/blackcloth_spec.rb +0 -41
- data/spec/kitabu/bug_fix_spec.rb +0 -25
- data/spec/kitabu/command_spec.rb +0 -82
- data/templates/Rakefile +0 -3
- data/templates/config.yml +0 -9
- data/templates/layouts/boom/layout.css +0 -469
- data/templates/syntax.css +0 -1065
- data/templates/themes/active4d.css +0 -114
- data/templates/themes/blackboard.css +0 -88
- data/templates/themes/dawn.css +0 -121
- data/templates/themes/eiffel.css +0 -121
- data/templates/themes/idle.css +0 -62
- data/templates/themes/iplastic.css +0 -80
- data/templates/themes/lazy.css +0 -73
- data/templates/themes/slush_poppies.css +0 -85
- data/templates/themes/sunburst.css +0 -180
@@ -1,80 +0,0 @@
|
|
1
|
-
---
|
2
|
-
name: Rez
|
3
|
-
fileTypes:
|
4
|
-
- r
|
5
|
-
scopeName: source.rez
|
6
|
-
repository:
|
7
|
-
escaped_char:
|
8
|
-
name: constant.character.escape.rez
|
9
|
-
match: \\.
|
10
|
-
uuid: F3EB29E9-8DB7-4052-9D48-5CDD2491D8D3
|
11
|
-
foldingStartMarker: (/\*\*|\{\s*$)
|
12
|
-
patterns:
|
13
|
-
- name: comment.block.rez
|
14
|
-
captures:
|
15
|
-
"0":
|
16
|
-
name: punctuation.definition.comment.rez
|
17
|
-
begin: /\*
|
18
|
-
end: \*/
|
19
|
-
- name: comment.line.double-slash.rez
|
20
|
-
captures:
|
21
|
-
"1":
|
22
|
-
name: punctuation.definition.comment.rez
|
23
|
-
match: (//).*$\n?
|
24
|
-
- name: keyword.control.rez
|
25
|
-
match: \b(?i:(change|data|delete|include|read|resource|type))\b
|
26
|
-
comment: Note that Xcode gets case sensitivity wrong (last checked Xcode 2.0). I'm not sure built-in functions are case-insensitive, though, so we might too.
|
27
|
-
- name: storage.type.rez
|
28
|
-
match: \b(?i:(align|array|binary|bit|bitstring|boolean|byte|case|char|cstring|decimal|enum|fill|hex|integer|key|literal|long|longint|nibble|octal|point|pstring|rect|string|switch|unsigned|wide|word|wstring))\b
|
29
|
-
- name: keyword.other.attributes.rez
|
30
|
-
match: \b(?i:(appheap|locked|nonpurgeable|purgeable|sysheap|unlocked))\b
|
31
|
-
- name: support.function.built-in.rez
|
32
|
-
captures:
|
33
|
-
"1":
|
34
|
-
name: punctuation.definition.function.rez
|
35
|
-
match: (\$\$)(?i:(ArrayIndex|Attributes|BitField|Byte|CountOf|Date|Day|Format|Hour|ID|Long|Minute|Month|Name|PackedSize|Read|Resource|ResourceSize|Second|Shell|Time|Type|Version|Weekday|Word|Year))
|
36
|
-
- name: constant.numeric.rez
|
37
|
-
match: \b(((0(x|X|B)|\$)[0-9a-fA-F]*)|(([0-9]+\.?[0-9]*)|(\.[0-9]+))((e|E)(\+|-)?[0-9]+)?)\b
|
38
|
-
- name: string.quoted.double.rez
|
39
|
-
endCaptures:
|
40
|
-
"0":
|
41
|
-
name: punctuation.definition.string.end.rez
|
42
|
-
begin: "\""
|
43
|
-
beginCaptures:
|
44
|
-
"0":
|
45
|
-
name: punctuation.definition.string.begin.rez
|
46
|
-
end: "\""
|
47
|
-
patterns:
|
48
|
-
- include: "#escaped_char"
|
49
|
-
- name: string.quoted.single.rez
|
50
|
-
endCaptures:
|
51
|
-
"0":
|
52
|
-
name: punctuation.definition.string.end.rez
|
53
|
-
begin: "'"
|
54
|
-
beginCaptures:
|
55
|
-
"0":
|
56
|
-
name: punctuation.definition.string.begin.rez
|
57
|
-
end: "'"
|
58
|
-
patterns:
|
59
|
-
- include: "#escaped_char"
|
60
|
-
- name: string.quoted.other.hex.rez
|
61
|
-
endCaptures:
|
62
|
-
"0":
|
63
|
-
name: punctuation.definition.string.end.rez
|
64
|
-
begin: \$"
|
65
|
-
beginCaptures:
|
66
|
-
"0":
|
67
|
-
name: punctuation.definition.string.begin.rez
|
68
|
-
end: "\""
|
69
|
-
patterns:
|
70
|
-
- include: "#escaped_char"
|
71
|
-
- name: meta.preprocessor.rez
|
72
|
-
captures:
|
73
|
-
"1":
|
74
|
-
name: punctuation.definition.preprocessor.rez
|
75
|
-
"2":
|
76
|
-
name: keyword.control.import.rez
|
77
|
-
match: ^\s*(#)\s*(define|defined|else|elif|endif|if|ifdef|ifndef|include|line|printf|undef)\b
|
78
|
-
foldingStopMarker: (\*\*/|^\s*\})
|
79
|
-
keyEquivalent: ^~R
|
80
|
-
comment: "Rez. Legacy Mac OS source code frequently contains Rez files. \xE2\x80\x93 chris@cjack.com"
|
@@ -1,1035 +0,0 @@
|
|
1
|
-
---
|
2
|
-
name: Ruby
|
3
|
-
fileTypes:
|
4
|
-
- rb
|
5
|
-
- rbx
|
6
|
-
- rjs
|
7
|
-
- Rakefile
|
8
|
-
- rake
|
9
|
-
- cgi
|
10
|
-
- fcgi
|
11
|
-
- gemspec
|
12
|
-
firstLineMatch: ^#!/.*\bruby\b
|
13
|
-
scopeName: source.ruby
|
14
|
-
repository:
|
15
|
-
nest_brackets:
|
16
|
-
captures:
|
17
|
-
"0":
|
18
|
-
name: punctuation.section.scope.ruby
|
19
|
-
begin: \[
|
20
|
-
end: \]
|
21
|
-
patterns:
|
22
|
-
- include: "#nest_brackets"
|
23
|
-
interpolated_ruby:
|
24
|
-
patterns:
|
25
|
-
- name: source.ruby.embedded.source
|
26
|
-
captures:
|
27
|
-
"0":
|
28
|
-
name: punctuation.section.embedded.ruby
|
29
|
-
"1":
|
30
|
-
name: source.ruby.embedded.source.empty
|
31
|
-
match: "#\\{(\\})"
|
32
|
-
- name: source.ruby.embedded.source
|
33
|
-
captures:
|
34
|
-
"0":
|
35
|
-
name: punctuation.section.embedded.ruby
|
36
|
-
begin: "#\\{"
|
37
|
-
end: \}
|
38
|
-
patterns:
|
39
|
-
- include: "#nest_curly_and_self"
|
40
|
-
- include: $self
|
41
|
-
- name: variable.other.readwrite.instance.ruby
|
42
|
-
captures:
|
43
|
-
"1":
|
44
|
-
name: punctuation.definition.variable.ruby
|
45
|
-
match: (#@)[a-zA-Z_]\w*
|
46
|
-
- name: variable.other.readwrite.class.ruby
|
47
|
-
captures:
|
48
|
-
"1":
|
49
|
-
name: punctuation.definition.variable.ruby
|
50
|
-
match: (#@@)[a-zA-Z_]\w*
|
51
|
-
- name: variable.other.readwrite.global.ruby
|
52
|
-
captures:
|
53
|
-
"1":
|
54
|
-
name: punctuation.definition.variable.ruby
|
55
|
-
match: (#\$)[a-zA-Z_]\w*
|
56
|
-
escaped_char:
|
57
|
-
name: constant.character.escape.ruby
|
58
|
-
match: \\(?:0\d{1,2}|x[\da-fA-F]{1,2}|.)
|
59
|
-
regex_sub:
|
60
|
-
patterns:
|
61
|
-
- include: "#interpolated_ruby"
|
62
|
-
- include: "#escaped_char"
|
63
|
-
- name: string.regexp.arbitrary-repitition.ruby
|
64
|
-
captures:
|
65
|
-
"1":
|
66
|
-
name: punctuation.definition.arbitrary-repitition.ruby
|
67
|
-
"3":
|
68
|
-
name: punctuation.definition.arbitrary-repitition.ruby
|
69
|
-
match: (\{)\d+(,\d+)?(\})
|
70
|
-
- name: string.regexp.character-class.ruby
|
71
|
-
captures:
|
72
|
-
"0":
|
73
|
-
name: punctuation.definition.character-class.ruby
|
74
|
-
begin: \[(?:\^?\])?
|
75
|
-
end: \]
|
76
|
-
patterns:
|
77
|
-
- include: "#escaped_char"
|
78
|
-
- name: string.regexp.group.ruby
|
79
|
-
captures:
|
80
|
-
"0":
|
81
|
-
name: punctuation.definition.group.ruby
|
82
|
-
begin: \(
|
83
|
-
end: \)
|
84
|
-
patterns:
|
85
|
-
- include: "#regex_sub"
|
86
|
-
- name: comment.line.number-sign.ruby
|
87
|
-
captures:
|
88
|
-
"1":
|
89
|
-
name: punctuation.definition.comment.ruby
|
90
|
-
match: (?<=^|\s)(#)\s[[a-zA-Z0-9,. \t?!-][^\x00-\x7F]]*$
|
91
|
-
comment: We are restrictive in what we allow to go after the comment character to avoid false positives, since the availability of comments depend on regexp flags.
|
92
|
-
heredoc:
|
93
|
-
begin: ^<<-?\w+
|
94
|
-
end: $
|
95
|
-
patterns:
|
96
|
-
- include: $base
|
97
|
-
nest_parens_r:
|
98
|
-
captures:
|
99
|
-
"0":
|
100
|
-
name: punctuation.section.scope.ruby
|
101
|
-
begin: \(
|
102
|
-
end: \)
|
103
|
-
patterns:
|
104
|
-
- include: "#regex_sub"
|
105
|
-
- include: "#nest_parens_r"
|
106
|
-
nest_curly_r:
|
107
|
-
captures:
|
108
|
-
"0":
|
109
|
-
name: punctuation.section.scope.ruby
|
110
|
-
begin: \{
|
111
|
-
end: \}
|
112
|
-
patterns:
|
113
|
-
- include: "#regex_sub"
|
114
|
-
- include: "#nest_curly_r"
|
115
|
-
nest_parens_i:
|
116
|
-
captures:
|
117
|
-
"0":
|
118
|
-
name: punctuation.section.scope.ruby
|
119
|
-
begin: \(
|
120
|
-
end: \)
|
121
|
-
patterns:
|
122
|
-
- include: "#interpolated_ruby"
|
123
|
-
- include: "#escaped_char"
|
124
|
-
- include: "#nest_parens_i"
|
125
|
-
nest_ltgt_r:
|
126
|
-
captures:
|
127
|
-
"0":
|
128
|
-
name: punctuation.section.scope.ruby
|
129
|
-
begin: \<
|
130
|
-
end: \>
|
131
|
-
patterns:
|
132
|
-
- include: "#regex_sub"
|
133
|
-
- include: "#nest_ltgt_r"
|
134
|
-
nest_curly_i:
|
135
|
-
captures:
|
136
|
-
"0":
|
137
|
-
name: punctuation.section.scope.ruby
|
138
|
-
begin: \{
|
139
|
-
end: \}
|
140
|
-
patterns:
|
141
|
-
- include: "#interpolated_ruby"
|
142
|
-
- include: "#escaped_char"
|
143
|
-
- include: "#nest_curly_i"
|
144
|
-
nest_ltgt_i:
|
145
|
-
captures:
|
146
|
-
"0":
|
147
|
-
name: punctuation.section.scope.ruby
|
148
|
-
begin: \<
|
149
|
-
end: \>
|
150
|
-
patterns:
|
151
|
-
- include: "#interpolated_ruby"
|
152
|
-
- include: "#escaped_char"
|
153
|
-
- include: "#nest_ltgt_i"
|
154
|
-
nest_ltgt:
|
155
|
-
captures:
|
156
|
-
"0":
|
157
|
-
name: punctuation.section.scope.ruby
|
158
|
-
begin: \<
|
159
|
-
end: \>
|
160
|
-
patterns:
|
161
|
-
- include: "#nest_ltgt"
|
162
|
-
nest_curly_and_self:
|
163
|
-
patterns:
|
164
|
-
- captures:
|
165
|
-
"0":
|
166
|
-
name: punctuation.section.scope.ruby
|
167
|
-
begin: \{
|
168
|
-
end: \}
|
169
|
-
patterns:
|
170
|
-
- include: "#nest_curly_and_self"
|
171
|
-
- include: $self
|
172
|
-
nest_parens:
|
173
|
-
captures:
|
174
|
-
"0":
|
175
|
-
name: punctuation.section.scope.ruby
|
176
|
-
begin: \(
|
177
|
-
end: \)
|
178
|
-
patterns:
|
179
|
-
- include: "#nest_parens"
|
180
|
-
nest_brackets_r:
|
181
|
-
captures:
|
182
|
-
"0":
|
183
|
-
name: punctuation.section.scope.ruby
|
184
|
-
begin: \[
|
185
|
-
end: \]
|
186
|
-
patterns:
|
187
|
-
- include: "#regex_sub"
|
188
|
-
- include: "#nest_brackets_r"
|
189
|
-
nest_curly:
|
190
|
-
captures:
|
191
|
-
"0":
|
192
|
-
name: punctuation.section.scope.ruby
|
193
|
-
begin: \{
|
194
|
-
end: \}
|
195
|
-
patterns:
|
196
|
-
- include: "#nest_curly"
|
197
|
-
nest_brackets_i:
|
198
|
-
captures:
|
199
|
-
"0":
|
200
|
-
name: punctuation.section.scope.ruby
|
201
|
-
begin: \[
|
202
|
-
end: \]
|
203
|
-
patterns:
|
204
|
-
- include: "#interpolated_ruby"
|
205
|
-
- include: "#escaped_char"
|
206
|
-
- include: "#nest_brackets_i"
|
207
|
-
uuid: E00B62AC-6B1C-11D9-9B1F-000D93589AF6
|
208
|
-
foldingStartMarker: "(?x)^\n\
|
209
|
-
\t (\\s*+\n\
|
210
|
-
\t (module|class|def\n\
|
211
|
-
\t |unless|if\n\
|
212
|
-
\t |case\n\
|
213
|
-
\t |begin\n\
|
214
|
-
\t |for|while|until\n\
|
215
|
-
\t\t\t |^=begin\n\
|
216
|
-
\t |( \"(\\\\.|[^\"])*+\" # eat a double quoted string\n\
|
217
|
-
\t | '(\\\\.|[^'])*+' # eat a single quoted string\n\
|
218
|
-
\t | [^#\"'] # eat all but comments and strings\n\
|
219
|
-
\t )*\n\
|
220
|
-
\t ( \\s (do|begin|case)\n\
|
221
|
-
\t | (?<!\\$)[-+=&|*/~%^<>~] \\s*+ (if|unless)\n\
|
222
|
-
\t )\n\
|
223
|
-
\t )\\b\n\
|
224
|
-
\t (?! [^;]*+ ; .*? \\bend\\b )\n\
|
225
|
-
\t |( \"(\\\\.|[^\"])*+\" # eat a double quoted string\n\
|
226
|
-
\t | '(\\\\.|[^'])*+' # eat a single quoted string\n\
|
227
|
-
\t | [^#\"'] # eat all but comments and strings\n\
|
228
|
-
\t )*\n\
|
229
|
-
\t ( \\{ (?! [^}]*+ \\} )\n\
|
230
|
-
\t | \\[ (?! [^\\]]*+ \\] )\n\
|
231
|
-
\t )\n\
|
232
|
-
\t ).*$\n\
|
233
|
-
\t| [#] .*? \\(fold\\) \\s*+ $ # Sune\xE2\x80\x99s special marker\n\
|
234
|
-
\t"
|
235
|
-
patterns:
|
236
|
-
- name: meta.class.ruby
|
237
|
-
captures:
|
238
|
-
"6":
|
239
|
-
name: variable.other.object.ruby
|
240
|
-
"7":
|
241
|
-
name: punctuation.definition.variable.ruby
|
242
|
-
"1":
|
243
|
-
name: keyword.control.class.ruby
|
244
|
-
"2":
|
245
|
-
name: entity.name.type.class.ruby
|
246
|
-
"4":
|
247
|
-
name: entity.other.inherited-class.ruby
|
248
|
-
"5":
|
249
|
-
name: punctuation.separator.inheritance.ruby
|
250
|
-
match: ^\s*(class)\s+(([.a-zA-Z0-9_:]+(\s*(<)\s*[.a-zA-Z0-9_:]+)?)|((<<)\s*[.a-zA-Z0-9_:]+))
|
251
|
-
- name: meta.module.ruby
|
252
|
-
captures:
|
253
|
-
"6":
|
254
|
-
name: punctuation.separator.inheritance.ruby
|
255
|
-
"7":
|
256
|
-
name: entity.other.inherited-class.module.third.ruby
|
257
|
-
"8":
|
258
|
-
name: punctuation.separator.inheritance.ruby
|
259
|
-
"1":
|
260
|
-
name: keyword.control.module.ruby
|
261
|
-
"2":
|
262
|
-
name: entity.name.type.module.ruby
|
263
|
-
"3":
|
264
|
-
name: entity.other.inherited-class.module.first.ruby
|
265
|
-
"4":
|
266
|
-
name: punctuation.separator.inheritance.ruby
|
267
|
-
"5":
|
268
|
-
name: entity.other.inherited-class.module.second.ruby
|
269
|
-
match: ^\s*(module)\s+(([A-Z]\w*(::))?([A-Z]\w*(::))?([A-Z]\w*(::))*[A-Z]\w*)
|
270
|
-
- name: invalid.deprecated.ruby
|
271
|
-
match: (?<!\.)\belse(\s)+if\b
|
272
|
-
comment: "else if is a common mistake carried over from other languages. it works if you put in a second end, but it\xE2\x80\x99s never what you want."
|
273
|
-
- name: keyword.control.ruby
|
274
|
-
match: (?<!\.)\b(BEGIN|begin|case|class|else|elsif|END|end|ensure|for|if|in|module|rescue|then|unless|until|when|while)\b(?![?!])
|
275
|
-
comment: everything being a reserved word, not a value and needing a 'end' is a..
|
276
|
-
- name: keyword.control.ruby.start-block
|
277
|
-
match: (?<!\.)\bdo\b\s*
|
278
|
-
comment: contextual smart pair support for block parameters
|
279
|
-
- name: meta.syntax.ruby.start-block
|
280
|
-
match: (?<=\{)(\s+)
|
281
|
-
comment: contextual smart pair support
|
282
|
-
- name: keyword.operator.logical.ruby
|
283
|
-
match: (?<!\.)\b(and|not|or)\b
|
284
|
-
comment: " as above, just doesn't need a 'end' and does a logic operation"
|
285
|
-
- name: keyword.control.pseudo-method.ruby
|
286
|
-
match: (?<!\.)\b(alias|alias_method|break|next|redo|retry|return|super|undef|yield)\b(?![?!])|\bdefined\?|\bblock_given\?
|
287
|
-
comment: " just as above but being not a logical operation"
|
288
|
-
- name: constant.language.ruby
|
289
|
-
match: \b(nil|true|false)\b(?![?!])
|
290
|
-
- name: variable.language.ruby
|
291
|
-
match: \b(__(FILE|LINE)__|self)\b(?![?!])
|
292
|
-
- name: keyword.other.special-method.ruby
|
293
|
-
match: \b(initialize|new|loop|include|extend|raise|attr_reader|attr_writer|attr_accessor|attr|catch|throw|private|module_function|public|protected)\b(?![?!])
|
294
|
-
comment: " everything being a method but having a special function is a.."
|
295
|
-
- name: meta.require.ruby
|
296
|
-
captures:
|
297
|
-
"1":
|
298
|
-
name: keyword.other.special-method.ruby
|
299
|
-
begin: \b(require)\b
|
300
|
-
end: $|(?=#)
|
301
|
-
patterns:
|
302
|
-
- include: $base
|
303
|
-
- name: variable.other.readwrite.instance.ruby
|
304
|
-
captures:
|
305
|
-
"1":
|
306
|
-
name: punctuation.definition.variable.ruby
|
307
|
-
match: (@)[a-zA-Z_]\w*
|
308
|
-
- name: variable.other.readwrite.class.ruby
|
309
|
-
captures:
|
310
|
-
"1":
|
311
|
-
name: punctuation.definition.variable.ruby
|
312
|
-
match: (@@)[a-zA-Z_]\w*
|
313
|
-
- name: variable.other.readwrite.global.ruby
|
314
|
-
captures:
|
315
|
-
"1":
|
316
|
-
name: punctuation.definition.variable.ruby
|
317
|
-
match: (\$)[a-zA-Z_]\w*
|
318
|
-
- name: variable.other.readwrite.global.pre-defined.ruby
|
319
|
-
captures:
|
320
|
-
"1":
|
321
|
-
name: punctuation.definition.variable.ruby
|
322
|
-
match: (\$)(!|@|&|`|'|\+|\d|~|=|/|\\|,|;|\.|<|>|_|\*|\$|\?|:|"|-[0adFiIlpv])
|
323
|
-
- name: support.class.ruby
|
324
|
-
match: \b[A-Z][a-z]\w*(?=((\.|::)[A-Za-z]|\[))
|
325
|
-
- name: meta.environment-variable.ruby
|
326
|
-
begin: \b(ENV)\[
|
327
|
-
beginCaptures:
|
328
|
-
"1":
|
329
|
-
name: variable.other.constant.ruby
|
330
|
-
end: \]
|
331
|
-
patterns:
|
332
|
-
- include: $self
|
333
|
-
- name: variable.other.constant.ruby
|
334
|
-
match: \b[A-Z]\w*\b
|
335
|
-
- name: meta.function.method.with-arguments.ruby
|
336
|
-
endCaptures:
|
337
|
-
"0":
|
338
|
-
name: punctuation.definition.parameters.ruby
|
339
|
-
begin: (?<=^|\s)\b(def)\b\s+((?>[a-zA-Z_]\w*(?>\.|::))?(?>[a-zA-Z_]\w*(?>[?!]|=(?!>))?|===?|>[>=]?|<=>|<[<=]?|[%&`/\|]|\*\*?|=?~|[-+]@?|\[\]=?))\s*(\()
|
340
|
-
contentName: variable.parameter.function.ruby
|
341
|
-
beginCaptures:
|
342
|
-
"1":
|
343
|
-
name: keyword.control.def.ruby
|
344
|
-
"2":
|
345
|
-
name: entity.name.function.ruby
|
346
|
-
"3":
|
347
|
-
name: punctuation.definition.parameters.ruby
|
348
|
-
end: \)
|
349
|
-
patterns:
|
350
|
-
- include: $base
|
351
|
-
comment: " the method pattern comes from the symbol pattern, see there for a explaination"
|
352
|
-
- name: meta.function.method.without-arguments.ruby
|
353
|
-
captures:
|
354
|
-
"1":
|
355
|
-
name: keyword.control.def.ruby
|
356
|
-
"3":
|
357
|
-
name: entity.name.function.ruby
|
358
|
-
match: (?<=^|\s)(def)\b(\s+((?>[a-zA-Z_]\w*(?>\.|::))?(?>[a-zA-Z_]\w*(?>[?!]|=(?!>))?|===?|>[>=]?|<=>|<[<=]?|[%&`/\|]|\*\*?|=?~|[-+]@?|\[\]=?)))?
|
359
|
-
comment: " the optional name is just to catch the def also without a method-name"
|
360
|
-
- name: constant.numeric.ruby
|
361
|
-
match: \b(0[xX]\h(?>_?\h)*|\d(?>_?\d)*(\.(?![^[:space:][:digit:]])(?>_?\d)*)?([eE][-+]?\d(?>_?\d)*)?|0[bB][01]+)\b
|
362
|
-
- name: constant.other.symbol.single-quoted.ruby
|
363
|
-
captures:
|
364
|
-
"0":
|
365
|
-
name: punctuation.definition.constant.ruby
|
366
|
-
begin: ":'"
|
367
|
-
end: "'"
|
368
|
-
patterns:
|
369
|
-
- name: constant.character.escape.ruby
|
370
|
-
match: \\['\\]
|
371
|
-
- name: constant.other.symbol.double-quoted.ruby
|
372
|
-
captures:
|
373
|
-
"0":
|
374
|
-
name: punctuation.definition.constant.ruby
|
375
|
-
begin: ":\""
|
376
|
-
end: "\""
|
377
|
-
patterns:
|
378
|
-
- include: "#interpolated_ruby"
|
379
|
-
- include: "#escaped_char"
|
380
|
-
- name: string.quoted.single.ruby
|
381
|
-
endCaptures:
|
382
|
-
"0":
|
383
|
-
name: punctuation.definition.string.end.ruby
|
384
|
-
begin: "'"
|
385
|
-
beginCaptures:
|
386
|
-
"0":
|
387
|
-
name: punctuation.definition.string.begin.ruby
|
388
|
-
end: "'"
|
389
|
-
patterns:
|
390
|
-
- name: constant.character.escape.ruby
|
391
|
-
match: \\'|\\\\
|
392
|
-
comment: single quoted string (does not allow interpolation)
|
393
|
-
- name: string.quoted.double.ruby
|
394
|
-
endCaptures:
|
395
|
-
"0":
|
396
|
-
name: punctuation.definition.string.end.ruby
|
397
|
-
begin: "\""
|
398
|
-
beginCaptures:
|
399
|
-
"0":
|
400
|
-
name: punctuation.definition.string.begin.ruby
|
401
|
-
end: "\""
|
402
|
-
patterns:
|
403
|
-
- include: "#interpolated_ruby"
|
404
|
-
- include: "#escaped_char"
|
405
|
-
comment: double quoted string (allows for interpolation)
|
406
|
-
- name: string.interpolated.ruby
|
407
|
-
endCaptures:
|
408
|
-
"0":
|
409
|
-
name: punctuation.definition.string.end.ruby
|
410
|
-
begin: `
|
411
|
-
beginCaptures:
|
412
|
-
"0":
|
413
|
-
name: punctuation.definition.string.begin.ruby
|
414
|
-
end: `
|
415
|
-
patterns:
|
416
|
-
- include: "#interpolated_ruby"
|
417
|
-
- include: "#escaped_char"
|
418
|
-
comment: execute string (allows for interpolation)
|
419
|
-
- name: string.interpolated.ruby
|
420
|
-
endCaptures:
|
421
|
-
"0":
|
422
|
-
name: punctuation.definition.string.end.ruby
|
423
|
-
begin: "%x\\{"
|
424
|
-
beginCaptures:
|
425
|
-
"0":
|
426
|
-
name: punctuation.definition.string.begin.ruby
|
427
|
-
end: \}
|
428
|
-
patterns:
|
429
|
-
- include: "#interpolated_ruby"
|
430
|
-
- include: "#escaped_char"
|
431
|
-
- include: "#nest_curly_i"
|
432
|
-
comment: execute string (allow for interpolation)
|
433
|
-
- name: string.interpolated.ruby
|
434
|
-
endCaptures:
|
435
|
-
"0":
|
436
|
-
name: punctuation.definition.string.end.ruby
|
437
|
-
begin: "%x\\["
|
438
|
-
beginCaptures:
|
439
|
-
"0":
|
440
|
-
name: punctuation.definition.string.begin.ruby
|
441
|
-
end: \]
|
442
|
-
patterns:
|
443
|
-
- include: "#interpolated_ruby"
|
444
|
-
- include: "#escaped_char"
|
445
|
-
- include: "#nest_brackets_i"
|
446
|
-
comment: execute string (allow for interpolation)
|
447
|
-
- name: string.interpolated.ruby
|
448
|
-
endCaptures:
|
449
|
-
"0":
|
450
|
-
name: punctuation.definition.string.end.ruby
|
451
|
-
begin: "%x\\<"
|
452
|
-
beginCaptures:
|
453
|
-
"0":
|
454
|
-
name: punctuation.definition.string.begin.ruby
|
455
|
-
end: \>
|
456
|
-
patterns:
|
457
|
-
- include: "#interpolated_ruby"
|
458
|
-
- include: "#escaped_char"
|
459
|
-
- include: "#nest_ltgt_i"
|
460
|
-
comment: execute string (allow for interpolation)
|
461
|
-
- name: string.interpolated.ruby
|
462
|
-
endCaptures:
|
463
|
-
"0":
|
464
|
-
name: punctuation.definition.string.end.ruby
|
465
|
-
begin: "%x\\("
|
466
|
-
beginCaptures:
|
467
|
-
"0":
|
468
|
-
name: punctuation.definition.string.begin.ruby
|
469
|
-
end: \)
|
470
|
-
patterns:
|
471
|
-
- include: "#interpolated_ruby"
|
472
|
-
- include: "#escaped_char"
|
473
|
-
- include: "#nest_parens_i"
|
474
|
-
comment: execute string (allow for interpolation)
|
475
|
-
- name: string.interpolated.ruby
|
476
|
-
endCaptures:
|
477
|
-
"0":
|
478
|
-
name: punctuation.definition.string.end.ruby
|
479
|
-
begin: "%x([^\\w])"
|
480
|
-
beginCaptures:
|
481
|
-
"0":
|
482
|
-
name: punctuation.definition.string.begin.ruby
|
483
|
-
end: \1
|
484
|
-
patterns:
|
485
|
-
- include: "#interpolated_ruby"
|
486
|
-
- include: "#escaped_char"
|
487
|
-
comment: execute string (allow for interpolation)
|
488
|
-
- captures:
|
489
|
-
"1":
|
490
|
-
name: string.regexp.classic.ruby
|
491
|
-
"2":
|
492
|
-
name: punctuation.definition.string.ruby
|
493
|
-
begin: "(?x)\n\
|
494
|
-
\t\t\t (?:\n\
|
495
|
-
\t\t\t ^ # beginning of line\n\
|
496
|
-
\t\t\t | (?<= # or look-behind on:\n\
|
497
|
-
\t\t\t [=>~(?:\\[,|&]\n\
|
498
|
-
\t\t\t | (?:\\s|;)when\\s\n\
|
499
|
-
\t\t\t | (?:\\s|;)or\\s\n\
|
500
|
-
\t\t\t | (?:\\s|;)and\\s\n\
|
501
|
-
\t\t\t | (?:\\s|;|\\.)index\\s\n\
|
502
|
-
\t\t\t | (?:\\s|;|\\.)scan\\s\n\
|
503
|
-
\t\t\t | (?:\\s|;|\\.)sub\\s\n\
|
504
|
-
\t\t\t | (?:\\s|l|\\.)sub!\\s\n\
|
505
|
-
\t\t\t | (?:\\s|;|\\.)gsub\\s\n\
|
506
|
-
\t\t\t | (?:\\s|;|\\.)gsub!\\s\n\
|
507
|
-
\t\t\t | (?:\\s|;|\\.)match\\s\n\
|
508
|
-
\t\t\t | (?:\\s|;)if\\s\n\
|
509
|
-
\t\t\t | (?:\\s|;)elsif\\s\n\
|
510
|
-
\t\t\t | (?:\\s|;)while\\s\n\
|
511
|
-
\t\t\t | (?:\\s|;)unless\\s\n\
|
512
|
-
\t\t\t )\n\
|
513
|
-
\t\t\t | (?<= # or a look-behind with line anchor:\n\
|
514
|
-
\t\t\t ^when\\s # duplication necessary due to limits of regex\n\
|
515
|
-
\t\t\t | ^index\\s\n\
|
516
|
-
\t\t\t | ^scan\\s\n\
|
517
|
-
\t\t\t | ^sub\\s\n\
|
518
|
-
\t\t\t | ^gsub\\s\n\
|
519
|
-
\t\t\t | ^sub!\\s\n\
|
520
|
-
\t\t\t | ^gsub!\\s\n\
|
521
|
-
\t\t\t | ^match\\s\n\
|
522
|
-
\t\t\t | ^if\\s\n\
|
523
|
-
\t\t\t | ^elsif\\s\n\
|
524
|
-
\t\t\t | ^while\\s\n\
|
525
|
-
\t\t\t | ^unless\\s\n\
|
526
|
-
\t\t\t )\n\
|
527
|
-
\t\t\t )\n\
|
528
|
-
\t\t\t \\s*((/))(?![*+{}?])\n\
|
529
|
-
\t\t\t"
|
530
|
-
contentName: string.regexp.classic.ruby
|
531
|
-
end: ((/[eimnosux]*))
|
532
|
-
patterns:
|
533
|
-
- include: "#regex_sub"
|
534
|
-
comment: "regular expressions (normal)\n\
|
535
|
-
\t\t\twe only start a regexp if the character before it (excluding whitespace)\n\
|
536
|
-
\t\t\tis what we think is before a regexp\n\
|
537
|
-
\t\t\t"
|
538
|
-
- name: string.regexp.mod-r.ruby
|
539
|
-
endCaptures:
|
540
|
-
"0":
|
541
|
-
name: punctuation.definition.string.end.ruby
|
542
|
-
begin: "%r\\{"
|
543
|
-
beginCaptures:
|
544
|
-
"0":
|
545
|
-
name: punctuation.definition.string.begin.ruby
|
546
|
-
end: \}[eimnosux]*
|
547
|
-
patterns:
|
548
|
-
- include: "#regex_sub"
|
549
|
-
- include: "#nest_curly_r"
|
550
|
-
comment: regular expressions (literal)
|
551
|
-
- name: string.regexp.mod-r.ruby
|
552
|
-
endCaptures:
|
553
|
-
"0":
|
554
|
-
name: punctuation.definition.string.end.ruby
|
555
|
-
begin: "%r\\["
|
556
|
-
beginCaptures:
|
557
|
-
"0":
|
558
|
-
name: punctuation.definition.string.begin.ruby
|
559
|
-
end: \][eimnosux]*
|
560
|
-
patterns:
|
561
|
-
- include: "#regex_sub"
|
562
|
-
- include: "#nest_brackets_r"
|
563
|
-
comment: regular expressions (literal)
|
564
|
-
- name: string.regexp.mod-r.ruby
|
565
|
-
endCaptures:
|
566
|
-
"0":
|
567
|
-
name: punctuation.definition.string.end.ruby
|
568
|
-
begin: "%r\\("
|
569
|
-
beginCaptures:
|
570
|
-
"0":
|
571
|
-
name: punctuation.definition.string.begin.ruby
|
572
|
-
end: \)[eimnosux]*
|
573
|
-
patterns:
|
574
|
-
- include: "#regex_sub"
|
575
|
-
- include: "#nest_parens_r"
|
576
|
-
comment: regular expressions (literal)
|
577
|
-
- name: string.regexp.mod-r.ruby
|
578
|
-
endCaptures:
|
579
|
-
"0":
|
580
|
-
name: punctuation.definition.string.end.ruby
|
581
|
-
begin: "%r\\<"
|
582
|
-
beginCaptures:
|
583
|
-
"0":
|
584
|
-
name: punctuation.definition.string.begin.ruby
|
585
|
-
end: \>[eimnosux]*
|
586
|
-
patterns:
|
587
|
-
- include: "#regex_sub"
|
588
|
-
- include: "#nest_ltgt_r"
|
589
|
-
comment: regular expressions (literal)
|
590
|
-
- name: string.regexp.mod-r.ruby
|
591
|
-
endCaptures:
|
592
|
-
"0":
|
593
|
-
name: punctuation.definition.string.end.ruby
|
594
|
-
begin: "%r([^\\w])"
|
595
|
-
beginCaptures:
|
596
|
-
"0":
|
597
|
-
name: punctuation.definition.string.begin.ruby
|
598
|
-
end: \1[eimnosux]*
|
599
|
-
patterns:
|
600
|
-
- include: "#regex_sub"
|
601
|
-
comment: regular expressions (literal)
|
602
|
-
- name: string.quoted.other.literal.upper.ruby
|
603
|
-
endCaptures:
|
604
|
-
"0":
|
605
|
-
name: punctuation.definition.string.end.ruby
|
606
|
-
begin: "%[QWSR]?\\("
|
607
|
-
beginCaptures:
|
608
|
-
"0":
|
609
|
-
name: punctuation.definition.string.begin.ruby
|
610
|
-
end: \)
|
611
|
-
patterns:
|
612
|
-
- include: "#interpolated_ruby"
|
613
|
-
- include: "#escaped_char"
|
614
|
-
- include: "#nest_parens_i"
|
615
|
-
comment: literal capable of interpolation ()
|
616
|
-
- name: string.quoted.other.literal.upper.ruby
|
617
|
-
endCaptures:
|
618
|
-
"0":
|
619
|
-
name: punctuation.definition.string.end.ruby
|
620
|
-
begin: "%[QWSR]?\\["
|
621
|
-
beginCaptures:
|
622
|
-
"0":
|
623
|
-
name: punctuation.definition.string.begin.ruby
|
624
|
-
end: \]
|
625
|
-
patterns:
|
626
|
-
- include: "#interpolated_ruby"
|
627
|
-
- include: "#escaped_char"
|
628
|
-
- include: "#nest_brackets_i"
|
629
|
-
comment: literal capable of interpolation []
|
630
|
-
- name: string.quoted.other.literal.upper.ruby
|
631
|
-
endCaptures:
|
632
|
-
"0":
|
633
|
-
name: punctuation.definition.string.end.ruby
|
634
|
-
begin: "%[QWSR]?\\<"
|
635
|
-
beginCaptures:
|
636
|
-
"0":
|
637
|
-
name: punctuation.definition.string.begin.ruby
|
638
|
-
end: \>
|
639
|
-
patterns:
|
640
|
-
- include: "#interpolated_ruby"
|
641
|
-
- include: "#escaped_char"
|
642
|
-
- include: "#nest_ltgt_i"
|
643
|
-
comment: literal capable of interpolation <>
|
644
|
-
- name: string.quoted.double.ruby.mod
|
645
|
-
endCaptures:
|
646
|
-
"0":
|
647
|
-
name: punctuation.definition.string.end.ruby
|
648
|
-
begin: "%[QWSR]?\\{"
|
649
|
-
beginCaptures:
|
650
|
-
"0":
|
651
|
-
name: punctuation.definition.string.begin.ruby
|
652
|
-
end: \}
|
653
|
-
patterns:
|
654
|
-
- include: "#interpolated_ruby"
|
655
|
-
- include: "#escaped_char"
|
656
|
-
- include: "#nest_curly_i"
|
657
|
-
comment: literal capable of interpolation -- {}
|
658
|
-
- name: string.quoted.other.literal.upper.ruby
|
659
|
-
endCaptures:
|
660
|
-
"0":
|
661
|
-
name: punctuation.definition.string.end.ruby
|
662
|
-
begin: "%[QWSR]([^\\w])"
|
663
|
-
beginCaptures:
|
664
|
-
"0":
|
665
|
-
name: punctuation.definition.string.begin.ruby
|
666
|
-
end: \1
|
667
|
-
patterns:
|
668
|
-
- include: "#interpolated_ruby"
|
669
|
-
- include: "#escaped_char"
|
670
|
-
comment: literal capable of interpolation -- wildcard
|
671
|
-
- name: string.quoted.other.literal.other.ruby
|
672
|
-
endCaptures:
|
673
|
-
"0":
|
674
|
-
name: punctuation.definition.string.end.ruby
|
675
|
-
begin: "%([^\\w\\s=])"
|
676
|
-
beginCaptures:
|
677
|
-
"0":
|
678
|
-
name: punctuation.definition.string.begin.ruby
|
679
|
-
end: \1
|
680
|
-
patterns:
|
681
|
-
- include: "#interpolated_ruby"
|
682
|
-
- include: "#escaped_char"
|
683
|
-
comment: literal capable of interpolation -- wildcard
|
684
|
-
- name: string.quoted.other.literal.lower.ruby
|
685
|
-
endCaptures:
|
686
|
-
"0":
|
687
|
-
name: punctuation.definition.string.end.ruby
|
688
|
-
begin: "%[qws]\\("
|
689
|
-
beginCaptures:
|
690
|
-
"0":
|
691
|
-
name: punctuation.definition.string.begin.ruby
|
692
|
-
end: \)
|
693
|
-
patterns:
|
694
|
-
- name: constant.character.escape.ruby
|
695
|
-
match: \\\)|\\\\
|
696
|
-
- include: "#nest_parens"
|
697
|
-
comment: literal incapable of interpolation -- ()
|
698
|
-
- name: string.quoted.other.literal.lower.ruby
|
699
|
-
endCaptures:
|
700
|
-
"0":
|
701
|
-
name: punctuation.definition.string.end.ruby
|
702
|
-
begin: "%[qws]\\<"
|
703
|
-
beginCaptures:
|
704
|
-
"0":
|
705
|
-
name: punctuation.definition.string.begin.ruby
|
706
|
-
end: \>
|
707
|
-
patterns:
|
708
|
-
- name: constant.character.escape.ruby
|
709
|
-
match: \\\>|\\\\
|
710
|
-
- include: "#nest_ltgt"
|
711
|
-
comment: literal incapable of interpolation -- <>
|
712
|
-
- name: string.quoted.other.literal.lower.ruby
|
713
|
-
endCaptures:
|
714
|
-
"0":
|
715
|
-
name: punctuation.definition.string.end.ruby
|
716
|
-
begin: "%[qws]\\["
|
717
|
-
beginCaptures:
|
718
|
-
"0":
|
719
|
-
name: punctuation.definition.string.begin.ruby
|
720
|
-
end: \]
|
721
|
-
patterns:
|
722
|
-
- name: constant.character.escape.ruby
|
723
|
-
match: \\\]|\\\\
|
724
|
-
- include: "#nest_brackets"
|
725
|
-
comment: literal incapable of interpolation -- []
|
726
|
-
- name: string.quoted.other.literal.lower.ruby
|
727
|
-
endCaptures:
|
728
|
-
"0":
|
729
|
-
name: punctuation.definition.string.end.ruby
|
730
|
-
begin: "%[qws]\\{"
|
731
|
-
beginCaptures:
|
732
|
-
"0":
|
733
|
-
name: punctuation.definition.string.begin.ruby
|
734
|
-
end: \}
|
735
|
-
patterns:
|
736
|
-
- name: constant.character.escape.ruby
|
737
|
-
match: \\\}|\\\\
|
738
|
-
- include: "#nest_curly"
|
739
|
-
comment: literal incapable of interpolation -- {}
|
740
|
-
- name: string.quoted.other.literal.lower.ruby
|
741
|
-
endCaptures:
|
742
|
-
"0":
|
743
|
-
name: punctuation.definition.string.end.ruby
|
744
|
-
begin: "%[qws]([^\\w])"
|
745
|
-
beginCaptures:
|
746
|
-
"0":
|
747
|
-
name: punctuation.definition.string.begin.ruby
|
748
|
-
end: \1
|
749
|
-
patterns:
|
750
|
-
- match: \\.
|
751
|
-
comment: Cant be named because its not neccesarily an escape.
|
752
|
-
comment: literal incapable of interpolation -- wildcard
|
753
|
-
- name: constant.other.symbol.ruby
|
754
|
-
captures:
|
755
|
-
"1":
|
756
|
-
name: punctuation.definition.constant.ruby
|
757
|
-
match: (?<!:)(:)(?>[a-zA-Z_]\w*(?>[?!]|=(?![>=]))?|===?|>[>=]?|<[<=]?|<=>|[%&`/\|]|\*\*?|=?~|[-+]@?|\[\]=?|@@?[a-zA-Z_]\w*)
|
758
|
-
comment: symbols
|
759
|
-
- name: comment.block.documentation.ruby
|
760
|
-
captures:
|
761
|
-
"0":
|
762
|
-
name: punctuation.definition.comment.ruby
|
763
|
-
begin: ^=begin
|
764
|
-
end: ^=end
|
765
|
-
comment: multiline comments
|
766
|
-
- name: comment.line.number-sign.ruby
|
767
|
-
captures:
|
768
|
-
"1":
|
769
|
-
name: punctuation.definition.comment.ruby
|
770
|
-
match: (?:^[ \t]+)?(#).*$\n?
|
771
|
-
- name: constant.numeric.ruby
|
772
|
-
match: (?<!\w)\?(\\(x\h{1,2}(?!\h)\b|0[0-7]{0,2}(?![0-7])\b|[^x0MC])|(\\[MC]-)+\w|[^\s\\])
|
773
|
-
comment: "\n\
|
774
|
-
\t\t\tmatches questionmark-letters.\n\n\
|
775
|
-
\t\t\texamples (1st alternation = hex):\n\
|
776
|
-
\t\t\t?\\x1 ?\\x61\n\n\
|
777
|
-
\t\t\texamples (2nd alternation = octal):\n\
|
778
|
-
\t\t\t?\\0 ?\\07 ?\\017\n\n\
|
779
|
-
\t\t\texamples (3rd alternation = escaped):\n\
|
780
|
-
\t\t\t?\\n ?\\b\n\n\
|
781
|
-
\t\t\texamples (4th alternation = meta-ctrl):\n\
|
782
|
-
\t\t\t?\\C-a ?\\M-a ?\\C-\\M-\\C-\\M-a\n\n\
|
783
|
-
\t\t\texamples (4th alternation = normal):\n\
|
784
|
-
\t\t\t?a ?A ?0 \n\
|
785
|
-
\t\t\t?* ?\" ?( \n\
|
786
|
-
\t\t\t?. ?#\n\
|
787
|
-
\t\t\t\n\
|
788
|
-
\t\t\t\n\
|
789
|
-
\t\t\tthe negative lookbehind prevents against matching\n\
|
790
|
-
\t\t\tp(42.tainted?)\n\
|
791
|
-
\t\t\t"
|
792
|
-
- captures:
|
793
|
-
"0":
|
794
|
-
name: string.unquoted.program-block.ruby
|
795
|
-
begin: ^__END__\n
|
796
|
-
contentName: text.plain
|
797
|
-
end: (?=not)impossible
|
798
|
-
patterns:
|
799
|
-
- name: text.html.embedded.ruby
|
800
|
-
begin: (?=<?xml|<(?i:html\b)|!DOCTYPE (?i:html\b))
|
801
|
-
end: (?=not)impossible
|
802
|
-
patterns:
|
803
|
-
- include: text.html.basic
|
804
|
-
comment: __END__ marker
|
805
|
-
- name: string.unquoted.heredoc.ruby
|
806
|
-
endCaptures:
|
807
|
-
"0":
|
808
|
-
name: punctuation.definition.string.end.ruby
|
809
|
-
begin: (?>\=\s*<<(\w+))(?!\s+#\s*([Cc]|sh|[Jj]ava))
|
810
|
-
beginCaptures:
|
811
|
-
"0":
|
812
|
-
name: punctuation.definition.string.begin.ruby
|
813
|
-
end: ^\1$
|
814
|
-
patterns:
|
815
|
-
- include: "#heredoc"
|
816
|
-
- include: "#interpolated_ruby"
|
817
|
-
- include: "#escaped_char"
|
818
|
-
- name: string.unquoted.embedded.html.ruby
|
819
|
-
endCaptures:
|
820
|
-
"0":
|
821
|
-
name: punctuation.definition.string.end.ruby
|
822
|
-
begin: (?><<-HTML\b)
|
823
|
-
contentName: text.html.embedded.ruby
|
824
|
-
beginCaptures:
|
825
|
-
"0":
|
826
|
-
name: punctuation.definition.string.begin.ruby
|
827
|
-
end: \s*HTML$
|
828
|
-
patterns:
|
829
|
-
- include: "#heredoc"
|
830
|
-
- include: text.html.basic
|
831
|
-
- include: "#interpolated_ruby"
|
832
|
-
- include: "#escaped_char"
|
833
|
-
comment: heredoc with embedded HTML and indented terminator
|
834
|
-
- name: string.unquoted.embedded.ruby.ruby
|
835
|
-
endCaptures:
|
836
|
-
"0":
|
837
|
-
name: punctuation.definition.string.end.ruby
|
838
|
-
begin: (?><<-(["\\']?)(\w+_(?i:eval))\1)
|
839
|
-
beginCaptures:
|
840
|
-
"0":
|
841
|
-
name: punctuation.definition.string.begin.ruby
|
842
|
-
end: \s*\2$
|
843
|
-
patterns:
|
844
|
-
- include: "#heredoc"
|
845
|
-
- include: "#interpolated_ruby"
|
846
|
-
- include: source.ruby
|
847
|
-
- include: "#escaped_char"
|
848
|
-
comment: ruby code in heredoc, interpolated
|
849
|
-
- name: string.unquoted.heredoc.ruby
|
850
|
-
endCaptures:
|
851
|
-
"0":
|
852
|
-
name: punctuation.definition.string.end.ruby
|
853
|
-
begin: (?><<-(\w+))
|
854
|
-
beginCaptures:
|
855
|
-
"0":
|
856
|
-
name: punctuation.definition.string.begin.ruby
|
857
|
-
end: \s*\1$
|
858
|
-
patterns:
|
859
|
-
- include: "#heredoc"
|
860
|
-
- include: "#interpolated_ruby"
|
861
|
-
- include: "#escaped_char"
|
862
|
-
comment: heredoc with indented terminator
|
863
|
-
- name: string.unquoted.embedded.c.ruby
|
864
|
-
endCaptures:
|
865
|
-
"0":
|
866
|
-
name: punctuation.definition.string.end.ruby
|
867
|
-
begin: (?>\=\s*<<(\w+))(?=\s+#\s*[Cc](?!(\+\+|[Ss][Ss])))
|
868
|
-
beginCaptures:
|
869
|
-
"0":
|
870
|
-
name: punctuation.definition.string.begin.ruby
|
871
|
-
end: ^\1$
|
872
|
-
patterns:
|
873
|
-
- include: "#heredoc"
|
874
|
-
- include: source.c
|
875
|
-
- include: "#interpolated_ruby"
|
876
|
-
- include: "#escaped_char"
|
877
|
-
- name: string.unquoted.embedded.cplusplus.ruby
|
878
|
-
endCaptures:
|
879
|
-
"0":
|
880
|
-
name: punctuation.definition.string.end.ruby
|
881
|
-
begin: (?>\=\s*<<(\w+))(?=\s+#\s*[Cc]\+\+)
|
882
|
-
beginCaptures:
|
883
|
-
"0":
|
884
|
-
name: punctuation.definition.string.begin.ruby
|
885
|
-
end: ^\1$
|
886
|
-
patterns:
|
887
|
-
- include: "#heredoc"
|
888
|
-
- include: source.c++
|
889
|
-
- include: "#interpolated_ruby"
|
890
|
-
- include: "#escaped_char"
|
891
|
-
- name: string.unquoted.embedded.css.ruby
|
892
|
-
endCaptures:
|
893
|
-
"0":
|
894
|
-
name: punctuation.definition.string.end.ruby
|
895
|
-
begin: (?>\=\s*<<(\w+))(?=\s+#\s*[Cc][Ss][Ss])
|
896
|
-
beginCaptures:
|
897
|
-
"0":
|
898
|
-
name: punctuation.definition.string.begin.ruby
|
899
|
-
end: ^\1$
|
900
|
-
patterns:
|
901
|
-
- include: "#heredoc"
|
902
|
-
- include: source.css
|
903
|
-
- include: "#interpolated_ruby"
|
904
|
-
- include: "#escaped_char"
|
905
|
-
- name: string.unquoted.embedded.js.ruby
|
906
|
-
endCaptures:
|
907
|
-
"0":
|
908
|
-
name: punctuation.definition.string.end.ruby
|
909
|
-
begin: (?>\=\s*<<(\w+))(?=\s+#\s*[Jj]ava[Ss]cript)
|
910
|
-
beginCaptures:
|
911
|
-
"0":
|
912
|
-
name: punctuation.definition.string.begin.ruby
|
913
|
-
end: ^\1$
|
914
|
-
patterns:
|
915
|
-
- include: "#heredoc"
|
916
|
-
- include: source.js
|
917
|
-
- include: "#interpolated_ruby"
|
918
|
-
- include: "#escaped_char"
|
919
|
-
- name: string.unquoted.embedded.shell.ruby
|
920
|
-
endCaptures:
|
921
|
-
"0":
|
922
|
-
name: punctuation.definition.string.end.ruby
|
923
|
-
begin: (?>\=\s*<<(\w+))(?=\s+#\s*sh)
|
924
|
-
beginCaptures:
|
925
|
-
"0":
|
926
|
-
name: punctuation.definition.string.begin.ruby
|
927
|
-
end: ^\1$
|
928
|
-
patterns:
|
929
|
-
- include: "#heredoc"
|
930
|
-
- include: source.shell
|
931
|
-
- include: "#interpolated_ruby"
|
932
|
-
- include: "#escaped_char"
|
933
|
-
- name: meta.function-call.method.with-arguments.ruby
|
934
|
-
begin: (?<=[^\.])(?=(\.|::)[a-zA-Z][a-zA-Z0-9_!?=]*\()(\.|::)
|
935
|
-
beginCaptures:
|
936
|
-
"1":
|
937
|
-
name: punctuation.separator.method.ruby
|
938
|
-
end: (?<=[a-zA-Z0-9_!?=])(?=\()
|
939
|
-
patterns:
|
940
|
-
- comment: "made this way to eventually support including #known_function_names"
|
941
|
-
- name: entity.name.function.ruby
|
942
|
-
match: ([a-zA-Z][a-zA-Z0-9_!?=]*)(?=[^a-zA-Z0-9_!?])
|
943
|
-
- name: meta.function-call.method.without-arguments.ruby
|
944
|
-
begin: (?<=[^\.])(?=(\.|::)[a-zA-Z][a-zA-Z0-9_!?]*[^a-zA-Z0-9_!?])(\.|::)
|
945
|
-
beginCaptures:
|
946
|
-
"1":
|
947
|
-
name: punctuation.separator.method.ruby
|
948
|
-
end: (?<=[a-zA-Z0-9_!?])(?=[^a-zA-Z0-9_!?])
|
949
|
-
patterns:
|
950
|
-
- comment: "made this way to eventually support including #known_function_names"
|
951
|
-
- name: entity.name.function.ruby
|
952
|
-
match: ([a-zA-Z][a-zA-Z0-9_!?]*)(?=[^a-zA-Z0-9_!?])
|
953
|
-
- name: meta.function-call.ruby
|
954
|
-
begin: (?=[a-zA-Z][a-zA-Z0-9_!?]+\()
|
955
|
-
end: (?=\()
|
956
|
-
patterns:
|
957
|
-
- comment: "eventually include #known_function_names"
|
958
|
-
- name: entity.name.function.ruby
|
959
|
-
match: ([a-zA-Z0-9_!?]+)(?=\()
|
960
|
-
- captures:
|
961
|
-
"1":
|
962
|
-
name: punctuation.separator.variable.ruby
|
963
|
-
begin: (?<=\{|do|\{\s|do\s)(\|)
|
964
|
-
end: (\|)
|
965
|
-
patterns:
|
966
|
-
- name: variable.other.block.ruby
|
967
|
-
match: "[_a-zA-Z][_a-zA-Z0-9]*"
|
968
|
-
- name: punctuation.separator.variable.ruby
|
969
|
-
match: ","
|
970
|
-
- name: punctuation.separator.key-value
|
971
|
-
match: =>
|
972
|
-
- name: keyword.operator.unary.ruby
|
973
|
-
match: \+@|-@
|
974
|
-
- name: keyword.operator.assignment.augmented.ruby
|
975
|
-
match: <<=|%=|&=|\*=|\*\*=|\+=|\-=|\^=|\|{1,2}=|/=|<<
|
976
|
-
- name: keyword.operator.comparison.ruby
|
977
|
-
match: <=>|<(?!<|=)|>(?!<|=|>)|<=|>=|===|==|=~|!=|!~|(?<=[ \t])\?
|
978
|
-
- name: keyword.operator.logical.ruby
|
979
|
-
match: (?<=[ \t])!|\bnot\b|&&|\band\b|\|\||\bor\b|\^
|
980
|
-
- name: keyword.operator.arithmetic.ruby
|
981
|
-
match: (%|&|\*\*|\*|\+|\-|/)
|
982
|
-
- name: keyword.operator.assignment.ruby
|
983
|
-
match: "="
|
984
|
-
- name: keyword.operator.other.ruby
|
985
|
-
match: \||~|>>
|
986
|
-
- name: punctuation.separator.other.ruby
|
987
|
-
match: ":"
|
988
|
-
- name: punctuation.separator.statement.ruby
|
989
|
-
match: \;
|
990
|
-
- name: punctuation.separator.object.ruby
|
991
|
-
match: ","
|
992
|
-
- name: punctuation.separator.method.ruby
|
993
|
-
match: "\\.|::"
|
994
|
-
- name: punctuation.section.scope.ruby
|
995
|
-
match: \{|\}
|
996
|
-
- name: punctuation.section.array.ruby
|
997
|
-
match: \[|\]
|
998
|
-
- name: punctuation.section.function.ruby
|
999
|
-
match: \(|\)
|
1000
|
-
foldingStopMarker: "(?x)\n\
|
1001
|
-
\t\t( (^|;) \\s*+ end \\s*+ ([#].*)? $\n\
|
1002
|
-
\t\t| (^|;) \\s*+ end \\. .* $\n\
|
1003
|
-
\t\t| ^ \\s*+ [}\\]] \\s*+ ([#].*)? $\n\
|
1004
|
-
\t\t| [#] .*? \\(end\\) \\s*+ $ # Sune\xE2\x80\x99s special marker\n\
|
1005
|
-
\t\t| ^=end\n\
|
1006
|
-
\t\t)"
|
1007
|
-
keyEquivalent: ^~R
|
1008
|
-
comment: "\n\
|
1009
|
-
\tTODO: unresolved issues\n\n\
|
1010
|
-
\ttext:\n\
|
1011
|
-
\t\"p << end\n\
|
1012
|
-
\tprint me!\n\
|
1013
|
-
\tend\"\n\
|
1014
|
-
\tsymptoms:\n\
|
1015
|
-
\tnot recognized as a heredoc\n\
|
1016
|
-
\tsolution:\n\
|
1017
|
-
\tthere is no way to distinguish perfectly between the << operator and the start\n\
|
1018
|
-
\tof a heredoc. Currently, we require assignment to recognize a heredoc. More\n\
|
1019
|
-
\trefinement is possible.\n\
|
1020
|
-
\t\xE2\x80\xA2 Heredocs with indented terminators (<<-) are always distinguishable, however.\n\
|
1021
|
-
\t\xE2\x80\xA2 Nested heredocs are not really supportable at present\n\n\
|
1022
|
-
\ttext:\n\
|
1023
|
-
\tprint <<-'THERE' \n\
|
1024
|
-
\tThis is single quoted. \n\
|
1025
|
-
\tThe above used #{Time.now} \n\
|
1026
|
-
\tTHERE \n\
|
1027
|
-
\tsymtoms:\n\
|
1028
|
-
\tFrom Programming Ruby p306; should be a non-interpolated heredoc.\n\
|
1029
|
-
\t\n\
|
1030
|
-
\ttext:\n\
|
1031
|
-
\t\"a\\332a\"\n\
|
1032
|
-
\tsymptoms:\n\
|
1033
|
-
\t'\\332' is not recognized as slash3.. which should be octal 332.\n\
|
1034
|
-
\tsolution:\n\
|
1035
|
-
\tplain regexp.. should be easy.\n\n text:\n val?(a):p(b)\n val?'a':'b'\n symptoms:\n ':p' is recognized as a symbol.. its 2 things ':' and 'p'.\n :'b' has same problem.\n solution:\n ternary operator rule, precedence stuff, symbol rule.\n but also consider 'a.b?(:c)' ??\n"
|