uv 0.0.6.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (239) hide show
  1. data/.gitignore +4 -0
  2. data/Gemfile +4 -0
  3. data/README.rdoc +79 -0
  4. data/Rakefile +1 -0
  5. data/bin/theme2latexrender +122 -0
  6. data/bin/theme2xhtmlrender +158 -0
  7. data/bin/uv +140 -0
  8. data/lib/uv/engine.rb +4 -0
  9. data/lib/uv/render_processor.rb +140 -0
  10. data/lib/uv/utility.rb +67 -0
  11. data/lib/uv/version.rb +3 -0
  12. data/lib/uv.rb +110 -0
  13. data/render/latex/active4d.render +132 -0
  14. data/render/latex/all_hallows_eve.render +96 -0
  15. data/render/latex/amy.render +171 -0
  16. data/render/latex/blackboard.render +111 -0
  17. data/render/latex/brilliance_black.render +552 -0
  18. data/render/latex/brilliance_dull.render +561 -0
  19. data/render/latex/cobalt.render +162 -0
  20. data/render/latex/dawn.render +126 -0
  21. data/render/latex/eiffel.render +132 -0
  22. data/render/latex/espresso_libre.render +123 -0
  23. data/render/latex/idle.render +93 -0
  24. data/render/latex/iplastic.render +99 -0
  25. data/render/latex/lazy.render +96 -0
  26. data/render/latex/mac_classic.render +135 -0
  27. data/render/latex/magicwb_amiga.render +117 -0
  28. data/render/latex/pastels_on_dark.render +204 -0
  29. data/render/latex/slush_poppies.render +123 -0
  30. data/render/latex/spacecadet.render +81 -0
  31. data/render/latex/sunburst.render +186 -0
  32. data/render/latex/twilight.render +153 -0
  33. data/render/latex/zenburnesque.render +126 -0
  34. data/render/old/txt2tags.render +131 -0
  35. data/render/xhtml/active4d.render +140 -0
  36. data/render/xhtml/all_hallows_eve.render +104 -0
  37. data/render/xhtml/amy.render +179 -0
  38. data/render/xhtml/blackboard.render +119 -0
  39. data/render/xhtml/brilliance_black.render +560 -0
  40. data/render/xhtml/brilliance_dull.render +569 -0
  41. data/render/xhtml/cobalt.render +170 -0
  42. data/render/xhtml/dawn.render +134 -0
  43. data/render/xhtml/eiffel.render +140 -0
  44. data/render/xhtml/espresso_libre.render +131 -0
  45. data/render/xhtml/idle.render +101 -0
  46. data/render/xhtml/iplastic.render +107 -0
  47. data/render/xhtml/lazy.render +104 -0
  48. data/render/xhtml/mac_classic.render +143 -0
  49. data/render/xhtml/magicwb_amiga.render +125 -0
  50. data/render/xhtml/pastels_on_dark.render +212 -0
  51. data/render/xhtml/railscasts.render +93 -0
  52. data/render/xhtml/slush_poppies.render +131 -0
  53. data/render/xhtml/spacecadet.render +83 -0
  54. data/render/xhtml/sunburst.render +194 -0
  55. data/render/xhtml/twilight.render +161 -0
  56. data/render/xhtml/zenburnesque.render +134 -0
  57. data/ruby-uv.gemspec +24 -0
  58. data/syntax/actionscript.syntax +97 -0
  59. data/syntax/active4d.syntax +276 -0
  60. data/syntax/active4d_html.syntax +311 -0
  61. data/syntax/active4d_ini.syntax +50 -0
  62. data/syntax/active4d_library.syntax +21 -0
  63. data/syntax/ada.syntax +33 -0
  64. data/syntax/antlr.syntax +151 -0
  65. data/syntax/apache.syntax +191 -0
  66. data/syntax/applescript.syntax +384 -0
  67. data/syntax/asp.syntax +70 -0
  68. data/syntax/asp_vb.net.syntax +129 -0
  69. data/syntax/bibtex.syntax +151 -0
  70. data/syntax/blog_html.syntax +41 -0
  71. data/syntax/blog_markdown.syntax +42 -0
  72. data/syntax/blog_text.syntax +27 -0
  73. data/syntax/blog_textile.syntax +27 -0
  74. data/syntax/build.syntax +53 -0
  75. data/syntax/bulletin_board.syntax +287 -0
  76. data/syntax/bundler.syntax +11 -0
  77. data/syntax/cake.syntax +55 -0
  78. data/syntax/camlp4.syntax +36 -0
  79. data/syntax/cm.syntax +32 -0
  80. data/syntax/coldfusion.syntax +119 -0
  81. data/syntax/context_free.syntax +176 -0
  82. data/syntax/cs.syntax +59 -0
  83. data/syntax/css.syntax +195 -0
  84. data/syntax/css_experimental.syntax +1925 -0
  85. data/syntax/css_zen.syntax +197 -0
  86. data/syntax/csv.syntax +68 -0
  87. data/syntax/cucumber_plain_text_feature.syntax +140 -0
  88. data/syntax/cucumber_steps.syntax +154 -0
  89. data/syntax/d.syntax +142 -0
  90. data/syntax/diff.syntax +81 -0
  91. data/syntax/dokuwiki.syntax +204 -0
  92. data/syntax/dot.syntax +47 -0
  93. data/syntax/doxygen.syntax +43 -0
  94. data/syntax/dylan.syntax +62 -0
  95. data/syntax/eiffel.syntax +78 -0
  96. data/syntax/erlang.syntax +922 -0
  97. data/syntax/f-script.syntax +80 -0
  98. data/syntax/fortran.syntax +141 -0
  99. data/syntax/fxscript.syntax +142 -0
  100. data/syntax/greasemonkey.syntax +34 -0
  101. data/syntax/gri.syntax +83 -0
  102. data/syntax/groovy.syntax +191 -0
  103. data/syntax/gtd.syntax +22 -0
  104. data/syntax/gtdalt.syntax +143 -0
  105. data/syntax/haml.syntax +153 -0
  106. data/syntax/haskell.syntax +88 -0
  107. data/syntax/html-asp.syntax +27 -0
  108. data/syntax/html.syntax +362 -0
  109. data/syntax/html_django.syntax +36 -0
  110. data/syntax/html_for_asp.net.syntax +424 -0
  111. data/syntax/html_mason.syntax +119 -0
  112. data/syntax/html_rails.syntax +32 -0
  113. data/syntax/html_tcl.syntax +26 -0
  114. data/syntax/icalendar.syntax +32 -0
  115. data/syntax/inform.syntax +48 -0
  116. data/syntax/ini.syntax +55 -0
  117. data/syntax/installer_distribution_script.syntax +77 -0
  118. data/syntax/io.syntax +81 -0
  119. data/syntax/java.syntax +211 -0
  120. data/syntax/javaproperties.syntax +20 -0
  121. data/syntax/javascript.syntax +256 -0
  122. data/syntax/javascript_+_prototype.syntax +72 -0
  123. data/syntax/javascript_+_prototype_bracketed.syntax +140 -0
  124. data/syntax/javascript_rails.syntax +30 -0
  125. data/syntax/jquery_javascript.syntax +154 -0
  126. data/syntax/json.syntax +136 -0
  127. data/syntax/languagedefinition.syntax +708 -0
  128. data/syntax/latex.syntax +566 -0
  129. data/syntax/latex_beamer.syntax +41 -0
  130. data/syntax/latex_log.syntax +50 -0
  131. data/syntax/latex_memoir.syntax +64 -0
  132. data/syntax/lexflex.syntax +219 -0
  133. data/syntax/lighttpd.syntax +54 -0
  134. data/syntax/lilypond.syntax +492 -0
  135. data/syntax/lisp.syntax +61 -0
  136. data/syntax/literate_haskell.syntax +24 -0
  137. data/syntax/logo.syntax +29 -0
  138. data/syntax/logtalk.syntax +152 -0
  139. data/syntax/lua.syntax +86 -0
  140. data/syntax/m.syntax +142 -0
  141. data/syntax/macports_portfile.syntax +163 -0
  142. data/syntax/makefile.syntax +36 -0
  143. data/syntax/man.syntax +17 -0
  144. data/syntax/mediawiki.syntax +567 -0
  145. data/syntax/mips.syntax +66 -0
  146. data/syntax/mod_perl.syntax +50 -0
  147. data/syntax/modula-3.syntax +47 -0
  148. data/syntax/moinmoin.syntax +189 -0
  149. data/syntax/mootools.syntax +572 -0
  150. data/syntax/movable_type.syntax +162 -0
  151. data/syntax/multimarkdown.syntax +39 -0
  152. data/syntax/objective-c++.syntax +18 -0
  153. data/syntax/objective-c.syntax +233 -0
  154. data/syntax/ocaml.syntax +764 -0
  155. data/syntax/ocamllex.syntax +167 -0
  156. data/syntax/ocamlyacc.syntax +184 -0
  157. data/syntax/opengl.syntax +14 -0
  158. data/syntax/pascal.syntax +77 -0
  159. data/syntax/perl.syntax +1115 -0
  160. data/syntax/plain_text.syntax +32 -0
  161. data/syntax/postscript.syntax +114 -0
  162. data/syntax/processing.syntax +106 -0
  163. data/syntax/prolog.syntax +40 -0
  164. data/syntax/property_list.syntax +635 -0
  165. data/syntax/python.syntax +868 -0
  166. data/syntax/python_django.syntax +21 -0
  167. data/syntax/qmake_project.syntax +114 -0
  168. data/syntax/qt_c++.syntax +26 -0
  169. data/syntax/quake3_config.syntax +32 -0
  170. data/syntax/r.syntax +81 -0
  171. data/syntax/r_console.syntax +16 -0
  172. data/syntax/ragel.syntax +201 -0
  173. data/syntax/rd_r_documentation.syntax +91 -0
  174. data/syntax/regexp.syntax +50 -0
  175. data/syntax/release_notes.syntax +46 -0
  176. data/syntax/remind.syntax +253 -0
  177. data/syntax/restructuredtext.syntax +250 -0
  178. data/syntax/rez.syntax +80 -0
  179. data/syntax/rspec.syntax +68 -0
  180. data/syntax/ruby.syntax +1035 -0
  181. data/syntax/ruby_experimental.syntax +145 -0
  182. data/syntax/ruby_on_rails.syntax +200 -0
  183. data/syntax/ruby_sass.syntax +395 -0
  184. data/syntax/s5.syntax +69 -0
  185. data/syntax/scheme.syntax +347 -0
  186. data/syntax/scilab.syntax +41 -0
  187. data/syntax/scss.syntax +528 -0
  188. data/syntax/setext.syntax +147 -0
  189. data/syntax/shell-unix-generic.syntax +384 -0
  190. data/syntax/shoulda.syntax +160 -0
  191. data/syntax/slate.syntax +149 -0
  192. data/syntax/sql.syntax +237 -0
  193. data/syntax/sql_rails.syntax +19 -0
  194. data/syntax/ssh-config.syntax +33 -0
  195. data/syntax/standard_ml.syntax +121 -0
  196. data/syntax/strings_file.syntax +39 -0
  197. data/syntax/subversion_commit_message.syntax +36 -0
  198. data/syntax/sweave.syntax +84 -0
  199. data/syntax/swig.syntax +57 -0
  200. data/syntax/tcl.syntax +152 -0
  201. data/syntax/template_toolkit.syntax +121 -0
  202. data/syntax/tex.syntax +86 -0
  203. data/syntax/tex_math.syntax +49 -0
  204. data/syntax/textile.syntax +215 -0
  205. data/syntax/tsv.syntax +50 -0
  206. data/syntax/twiki.syntax +241 -0
  207. data/syntax/txt2tags.syntax +79 -0
  208. data/syntax/vectorscript.syntax +57 -0
  209. data/syntax/xhtml_1.0.syntax +4027 -0
  210. data/syntax/xml.syntax +180 -0
  211. data/syntax/xml_strict.syntax +92 -0
  212. data/syntax/xsl.syntax +60 -0
  213. data/syntax/yaml.syntax +160 -0
  214. data/syntax/yui_javascript.syntax +176 -0
  215. data/test/test_uv.rb +17 -0
  216. data/vendor/assets/stylesheets/active4d.css +117 -0
  217. data/vendor/assets/stylesheets/all_hallows_eve.css +75 -0
  218. data/vendor/assets/stylesheets/all_uv_themes.css.scss +4 -0
  219. data/vendor/assets/stylesheets/amy.css +150 -0
  220. data/vendor/assets/stylesheets/blackboard.css +91 -0
  221. data/vendor/assets/stylesheets/brilliance_black.css +608 -0
  222. data/vendor/assets/stylesheets/brilliance_dull.css +602 -0
  223. data/vendor/assets/stylesheets/cobalt.css +152 -0
  224. data/vendor/assets/stylesheets/dawn.css +124 -0
  225. data/vendor/assets/stylesheets/eiffel.css +124 -0
  226. data/vendor/assets/stylesheets/espresso_libre.css +112 -0
  227. data/vendor/assets/stylesheets/idle.css +65 -0
  228. data/vendor/assets/stylesheets/iplastic.css +83 -0
  229. data/vendor/assets/stylesheets/lazy.css +76 -0
  230. data/vendor/assets/stylesheets/mac_classic.css +126 -0
  231. data/vendor/assets/stylesheets/magicwb_amiga.css +107 -0
  232. data/vendor/assets/stylesheets/pastels_on_dark.css +191 -0
  233. data/vendor/assets/stylesheets/railscasts.css +74 -0
  234. data/vendor/assets/stylesheets/slush_poppies.css +88 -0
  235. data/vendor/assets/stylesheets/spacecadet.css +54 -0
  236. data/vendor/assets/stylesheets/sunburst.css +183 -0
  237. data/vendor/assets/stylesheets/twilight.css +140 -0
  238. data/vendor/assets/stylesheets/zenburnesque.css +94 -0
  239. metadata +311 -0
@@ -0,0 +1,145 @@
1
+ ---
2
+ name: Ruby Experimental
3
+ scopeName: source.ruby.experimental
4
+ repository:
5
+ nest_function_parens:
6
+ captures:
7
+ "0":
8
+ name: punctuation.section.scope.ruby.experimental
9
+ begin: \(
10
+ contentName: meta.section.scope.ruby.experimental
11
+ end: \)
12
+ patterns:
13
+ - include: "#nest_function_parens"
14
+ - include: $self
15
+ known_function_names:
16
+ name: support.function.core.ruby
17
+ match: \b(abort_on_exception=|absolute\?|acos!|acosh!|add!|add\?|alive\?|all\?|any\?|asin!|asinh!|async=|atan!|atan2!|atanh!|attributes=|autoload\?|avail_out=|beginning_of_line\?|between\?|block_given\?|blockdev\?|bol\?|capitalize!|casefold\?|changed\?|chardev\?|charset=|chomp!|chop!|close!|closed\?|closed_read\?|closed_write\?|codepage=|collect!|comment=|compact!|const_defined\?|coredump\?|cos!|cosh!|critical=|data=|dataType=|datetime_format=|debug\?|default=|delete!|delete\?|directory\?|dn=|downcase!|dst\?|egid=|eid=|empty\?|enclosed\?|end\?|ended\?|eof\?|eos\?|eql\?|eqn\?|equal\?|error\?|event\?|exclude_end\?|executable\?|executable_real\?|exist\?|exists\?|exit!|exited\?|euid=|exp!|extensions=|fatal\?|file\?|filter=|finished\?|finite\?|flatten!|fnmatch\?|fragment=|frozen\?|fu_have_symlink\?|fu_world_writable\?|gid=|gmt\?|gregorian_leap\?|groups=|grpowned\?|gsub!|has_key\?|has_value\?|headers=|hierarchical\?|host=|identical\?|include\?|infinite\?|info\?|input\?|instance_of\?|integer\?|is_a\?|iterator\?|julian_leap\?|key\?|kind_of\?|leap\?|level=|lineno=|locked\?|log!|log10!|log=|lstrip!|map!|match\?|matched\?|max=|maxgroups=|member\?|merge!|method_defined\?|mountpoint\?|multipart\?|mtime=|multipart\?|nan\?|new!|next!|next\?|nil\?|nodeTypedValue=|nodeValue=|nonzero\?|normalize!|ns\?|ondataavailable=|onreadystatechange=|ontransformnode=|opaque=|optional\?|orig_name=|os\?|output\?|owned\?|params=|password=|path=|pipe\?|pointer=|port=|pos=|power!|preserveWhiteSpace=|priority=|private_method_defined\?|proper_subset\?|proper_superset\?|protected_method_defined\?|public_method_defined\?|query=|re_exchangeable\?|readable\?|readable_real\?|registry=|regular\?|reject!|relative\?|resolveExternals=|respond_to\?|rest\?|retval\?|reverse!|root\?|rstrip!|run\?|run=|scheme=|scope=|secure=|setgid\?|setuid\?|sid_available\?|signaled\?|sin!|singular\?|sinh!|size\?|slice!|socket\?|sort!|sqrt!|square\?|squeeze!|sticky\?|stop\?|stopped\?|stream_end\?|string=|strip!|sub!|subset\?|succ!|success\?|superset\?|swapcase!|symlink\?|sync=|sync_point\?|tainted\?|tan!|tanh!|text=|to=|tr!|tr_s!|tty\?|typecode=|uid=|uniq!|upcase!|uptodate\?|url=|user=|userinfo=|utc\?|valid_civil\?|valid_commercial\?|valid_jd\?|valid_ordinal\?|valid_time\?|validateOnParse=|value=|value\?|visible\?|warn\?|writable\?|writable_real\?|zero\?)|\b(__getobj__|__id__|__init__|__send__|__setobj__|_dump|_getproperty|_id2ref|_invoke|_load|_setproperty|abbrev|abort_on_exception|abort|abs2|absoluteChildNumber|absolute|abs|acosh|acos|add_builtin_type|add_domain_type|add_finalizer|add_observer|add_private_type|add_ruby_type|add|adler32|adler|ajd_to_amjd|ajd_to_jd|ajd|a|all_symbols|all_waits|allocate|amjd_to_ajd|amjd|ancestorChildNumber|ancestors|angle|appendChild|appendData|append_features|args|arg|arity|asctime|asinh|asin|assoc|async|at_exit|atan2|atanh|atan|atime|attributes|at|autoload|avail_in|avail_out|b64encode|backtrace|baseName|basename|base|benchmark|binding|bind|binmode|blksize|blockquote|blocks|bmbm|bm|broadcast|build2|build|call_finalizer|callcc|caller|call|capitalize|caption|captures|casecmp|cd|ceil|center|change_privilege|changed|charset_map|charset|chdir|check_until|checkbox_group|checkbox|check|childNodes|childNumber|children|chmod_R|chmod|chomp|chop|chown_R|chown|chroot|chr|civil_to_jd|civil|class_eval|class_name|class_variable_get|class_variable_set|class_variables|classify|class|cleanpath|clear|cloneNode|clone|close_read|close_write|close|cmp|codepage|coerce|collect2|collect|column_size|column_vector|column_vectors|columns|column|comment|commercial_to_jd|commercial|commit|compact|compare_by_row_vectors|compare_by|compare_file|compare_stream|compile|component_ary|component|concat|conj|conjugate|connect|const_get|const_load|const_missing|const_set|constants|conv|copy_entry|copy_file|copy_stream|copy|cosh|cos|count_observers|count|covector|cp_r|cp|crc32|crc_table|crc|createAttribute|createCDATASection|createComment|createDocumentFragment|createElement|createEntityReference|createNode|createProcessingInstruction|createTextNode|create_docfile|create_win32ole_makefile|critical|crypt|ctime|current|cwday|cweek|cwyear|dataType|data_type|data|datetime_format|day_fraction|day_fraction_to_time|day|debug|decode64|decode_b|decode|def_delegator|def_delegators|def_instance_delegator|def_instance_delegators|def_singleton_delegator|def_singleton_delegators|default_handler|default_port|default_proc|default|define_class|define_finalizer|define_define_define_instance_variables|define_method|define_method_missing|define_module|definition|deflate|deleteData|delete_at|delete_if|delete_observer|delete_observers|delete|denominator|depth|deq|detach|detect|detect_implicit|determinant|det|dev_major|dev_minor|dev|diagonal|difference|dir_foreach|dirname|disable|dispid|display|divide|divmod|div|dn|doctype|documentElement|downcase|downto|dump_stream|dump|dup|each2|each_byte|each_cons|each_document|each_entry|each_filename|each_index|each_key|each_line|each_node|each_object|each_pair|each_slice|each_value|each_with_index|each|eid|elements|emitter|enable|enclose|encode64|encode|end|england|enq|entities|entries|enum_cons|enum_for|enum_slice|enum_with_index|eof|erfc|erf|errno|errorCode|error|escapeElement|escapeHTML|escape|euid|eval|event_interface|exception|exclusive|exclusive_unlock|exec|exit_value|exitstatus|exit|expand_path|exp|extend_object|extended|extensions|extname|extract|failed|fail|fatal|fcntl|fetch|file_field|fileno|filepos|fill|filter|finalizers|find_all|find|finish|first|firstChild|flatten_merge|flatten|flock|floor|flush_next_in|flush_next_out|flush|fnmatch|for_fd|foreachline|foreach|fork|format|formatDate|formatIndex|formatNumber|formatTime|form|freeze|frexp|fsync|ftype|garbage_collect|gcdlcm|gcd|generate_args|generate_argtype|generate_argtypes|generate_class|generate_constants|generate_func_methods|generate_method_args_help|generate_method_body|generate_method_help|generate_methods|generate_method|generate_properties_with_args|generate_propget_methods|generate_propput_methods|generate_propputref_methods|generate|generic_parser|getAllResponseHeaders|getAttribute|getAttributeNode|getElementsByTagName|getNamedItem|getQualifiedItem|getResponseHeader|get_byte|getbyte|getch|getc|getegid|geteuid|getgid|getgm|getlocal|getpgid|getpgrp|getpriority|gets|getuid|getutc|getwd|gid|global_variables|glob|gmt_offset|gmtime|gmtoff|gm|grant_privilege|gregorian|grep|groups|group|gsub|guess1|guess2|guess_old|guess|guid|handler1|handler2|handler3|hasChildNodes|hasFeature|hash|header|helpcontext|helpfile|helpstring|hex|hidden|hour|html_escape|html|httpdate|hypot|h|iconv|id2name|identity|id|imag|image_button|image|img|implementation|im|included_modules|included|indexes|index|indices|induced_from|inflate|info|inherited|init_elements|initgroups|initialize_copy|inject|inner_product|ino|insertBefore|insertData|insert|inspect|install|instance_eval|instance_method|instance_methods|instance_variable_get|instance_variable_set|instance_variables|intern|intersection|inverse|inverse_from|invert|invkind|invoke|invoke_kind|inv|ioctl|isatty|isdst|iseuc|iso8601|issetugid|issjis|isutf8|italy|item|jd_to_ajd|jd_to_civil|jd_to_commercial|jd_to_ld|jd_to_mjd|jd_to_ordinal|jd_to_wday|jd|join_nowait|join|julian|kcode|kconv|keys|kill|lambda|lastChild|last_match|last|lchmod|lchown|lcm|ld_to_jd|ldexp|ld|length|level|lineno|linepos|(?<=\.)line|link|listup|list|ljust|ln_s|ln_sf|ln|loadXML|load_documents|load_file|load_stream|load|local_variables|localtime|local|lock|log10|log|lstat|lstrip|main|major_version|make_link|make_symlink|makedirs|map2|map|marshal_dump|marshal_load|matched|matched_size|matchedsize|match|maxgroups|max|mday|measure|members|memberwise|merge|message_message|method_added|method_missing|method_removed|method_undefined|methods|method|minor|minor_version|min|mjd_to_jd|mjd|mkdir_p|mkdir|mkpath|mktime|mode|module_eval|modulo|month|mon|move|mtime|multipart_form|must_C_version|mv|namespaceURI|name|navigate|nesting|new2|new_start|nextNode|nextSibling|next_wait|next|nitems|nkf|nlink|nodeFromID|nodeName|nodeType|nodeTypeString|nodeTypedValue|nodeValue|normalize|notationName|notations|notify_observers|now|num_waiting|numerator|object_id|object_maker|oct|offset_vtbl|offset|ole_classes|ole_free|ole_func_methods|ole_get_methods|ole_method|ole_method_help|ole_methods|ole_obj_help|ole_put_methods|ole_reference_count|ole_show_help|ole_type_detail|ole_type|oletypelib_name|on_event_with_outargs|on_event|ondataavailable|onreadystatechange|opendir|open|options|ordinal_to_jd|ordinal|orig_name|os_code|out|ownerDocument|pack|params|parentNode|parent|parseError|parse_documents|parse_file|parsed|parser|parse|partition|password|password_field|pass|path|peek|peep|pid|pipe|pointer|polar|popen|popup_menu|pop|post_match|pos|ppid|pre_match|prec_f|prec_i|prec|prefix|preserveWhiteSpace|pretty|previousSibling|printf|print|priority|private_class_method|private_instance_methods|private_methods|proc|progids|progid|protected_instance_methods|protected_methods|prune|publicId|public_class_method|public_instance_methods|public_methods|push|putc|puts|pwd|p|quick_emit|quote|quo|radio_button|radio_group|rand|rank|rassoc|raw_cookie|raw_cookie2|rdev_major|rdev_minor|rdev|rdiv|re_exchange|read_type_class|readchar|readlines|readline|readlink|readpartial|readyState|read|realpath|realtime|real|reason|reduce|regexp|rehash|reject|relative_path_from|remainder|removeAttribute|removeAttributeNode|removeChild|removeNamedItem|removeQualifiedItem|remove_class_variable|remove_const|remove_dir|remove_entry_secure|remove_entry|remove_file|remove_finalizer|remove_instance_variable|remove_method|remove|rename|reopen|replaceChild|replaceData|replace|request_uri|require|reset|resolveExternals|resolver|responseBody|responseStream|responseText|responseXML|rest_size|restore|restsize|rest|result|return_type_detail|return_type|return_vtype|reverse_each|reverse|rewind|rfc1123_date|rfc2822|rfc822|rid|rindex|rjust|rm_f|rm_rf|rm_r|rmdir|rmtree|rm|roots|root|round|route_from|route_to|row_size|row_vector|row_vectors|rows|row|rpower|rstrip|run|r|safe_level|safe_unlink|save(?!!)|scalar|scan_full|scan_until|scan|scope|scrolling_list|search_full|sec|seek|selectNodes|selectSingleNode|select|send|setAttribute|setAttributeNode|setNamedItem|setRequestHeader|set_attributes|set_backtrace|set_dictionary|set_dn|set_eoutvar|set_extensions|set_filter|set_fragment|set_headers|set_host|set_log|set_opaque|set_password|set_path|set_port|set_query|set_registry|set_scheme|set_scope|set_to|set_trace_func|set_typecode|set_user|set_userinfo|setegid|seteuid|setgid|setpgid|setpgrp|setpriority|setproperty|setregid|setresgid|setresuid|setreuid|setrgid|setruid|setsid|setuid|setup|shellwords|shift|signal|sin|singleton_method_added|singleton_method_removed|singleton_method_undefined|singleton_methods|sinh|size_opt_params|size_params|size|skip_until|skip|sleep|slice|sort_by|sort|source|specified|split|splitText|sprintf|sqrt|squeeze|srand|srcText|src_type|start|status|statusText|stat|step|stop_msg_stopsig|stop|store|strftime|string|strip|strptime|sub|submit|substringData|subtract|succ|success|sum|superclass|swapcase|switch|symlink|synchronize|sync|syscall|sysopen|sysread|sysseek|systemId|system|syswrite|tagName|tagurize|taint|tanh|tan|target|teardown|tell|terminate|termsig|test__invoke|test_bracket_equal_with_arg|test_class_to_s|test_const_CP_ACP|test_const_CP_MACCP|test_const_CP_OEMCP|test_const_CP_SYMBOL|test_const_CP_THREAD_ACP|test_const_CP_UTF7|test_const_CP_UTF8|test_convert_bignum|test_dispid|test_each|test_event|test_event_interface|test_get_win32ole_object|test_helpcontext|test_helpfile|test_helpstring|test_input|test_invoke_kind|test_invoke|test_name|test_no_exist_property|test_offset_vtbl|test_ole_func_methods|test_ole_get_methods|test_ole_invoke_with_named_arg|test_ole_invoke_with_named_arg_last|test_ole_method_help|test_ole_methods|test_ole_put_methods|test_ole_type|test_ole_type_detail|test_on_event|test_on_event2|test_on_event3|test_on_event4|test_openSchema|test_optional|test_output|test_return_type|test_return_type_detail|test_return_vtype|test_s_codepage|test_s_codepage_changed|test_s_codepage_set|test_s_connect|test_s_const_load|test_s_test_s_new_DCOM|test_s_new_from_clsid|test_s_ole_classes|test_s_progids|test_s_typelibs|test_setproperty|test_setproperty_bracket|test_setproperty_with_equal|test_src_type|test_to_s|test_typekind|test_value|test_variables|test_variant|test_visible|test|text_field|textarea|text|time_to_day_fraction|timeout|times|tmpdir|to_ary|to_a|to_enum|to_f|to_hash|to_int|to_io|to_i|to_mailtext|to_proc|to_rfc822text|to_r|to_set|to_str|to_sym|to_s|today|toeuc|tojis|tosjis|total_in|total_out|touch|toutf16|toutf8|tr_s|trace_var|trace|transaction|transfer|transformNode|transformNodeToObject|transpose|trap|truncate|try_implicit|try_lock|tr|tv_sec|tv_usec|typekind|typelibs|type|t|uid|umask|unbind|undef_method|undefine_finalizer|unescapeElement|unescapeHTML|unescape|ungetc|union|uniqueID|uniq|unknown|unlink|unlock|unpack|unscan|unshift|untaint|untrace_var|unused|upcase|update|upto|url_encode|url|use_registry|usec|userinfo|user|utc_offset|utc|utime|u|validateOnParse|values_at|values|value|variable_kind|variables|varkind|version|wait2|waitall|waitpid|waitpid2|wait|wakeup|warn|wday|wrap|write|xmlschema|xml|yday|year|yield|zero|zip|zlib_version|zone_offset|zone)\b
18
+ comment: |-
19
+
20
+ adding all the core methods here to provide a visual aid for spelling errors,
21
+ as long as the current theme highlights [support.function] scopes.
22
+
23
+ ie: if you miss type first as fisrt, then the word will not highlight.
24
+ leading-space:
25
+ patterns:
26
+ - name: meta.leading-tabs
27
+ begin: ^(?=(\t| ))
28
+ end: (?=[^\t\s]|\n)
29
+ patterns:
30
+ - captures:
31
+ "6":
32
+ name: meta.even-tab.group6.spaces
33
+ "11":
34
+ name: meta.odd-tab.group11.spaces
35
+ "7":
36
+ name: meta.odd-tab.group7.spaces
37
+ "8":
38
+ name: meta.even-tab.group8.spaces
39
+ "9":
40
+ name: meta.odd-tab.group9.spaces
41
+ "1":
42
+ name: meta.odd-tab.group1.spaces
43
+ "2":
44
+ name: meta.even-tab.group2.spaces
45
+ "3":
46
+ name: meta.odd-tab.group3.spaces
47
+ "4":
48
+ name: meta.even-tab.group4.spaces
49
+ "10":
50
+ name: meta.even-tab.group10.spaces
51
+ "5":
52
+ name: meta.odd-tab.group5.spaces
53
+ match: ( )( )?( )?( )?( )?( )?( )?( )?( )?( )?( )?
54
+ - captures:
55
+ "6":
56
+ name: meta.even-tab.group6.tab
57
+ "11":
58
+ name: meta.odd-tab.group11.tab
59
+ "7":
60
+ name: meta.odd-tab.group7.tab
61
+ "8":
62
+ name: meta.even-tab.group8.tab
63
+ "9":
64
+ name: meta.odd-tab.group9.tab
65
+ "1":
66
+ name: meta.odd-tab.group1.tab
67
+ "2":
68
+ name: meta.even-tab.group2.tab
69
+ "3":
70
+ name: meta.odd-tab.group3.tab
71
+ "4":
72
+ name: meta.even-tab.group4.tab
73
+ "10":
74
+ name: meta.even-tab.group10.tab
75
+ "5":
76
+ name: meta.odd-tab.group5.tab
77
+ match: (\t)(\t)?(\t)?(\t)?(\t)?(\t)?(\t)?(\t)?(\t)?(\t)?(\t)?
78
+ uuid: C36CAB29-030A-418B-9F72-7FE6D526A408
79
+ foldingStartMarker: "(?x)^\n\
80
+ \t (\\s*+\n\
81
+ \t (module|class|def\n\
82
+ \t |unless|if\n\
83
+ \t |case\n\
84
+ \t |begin\n\
85
+ \t |for|while|until\n\
86
+ \t |( \"(\\\\.|[^\"])*+\" # eat a double quoted string\n\
87
+ \t | '(\\\\.|[^'])*+' # eat a single quoted string\n\
88
+ \t | [^#\"'] # eat all but comments and strings\n\
89
+ \t )*\n\
90
+ \t ( \\s (do|begin|case)\n\
91
+ \t | [-+=&|*/~%^<>~] \\s*+ (if|unless)\n\
92
+ \t )\n\
93
+ \t )\\b\n\
94
+ \t (?! [^;]*+ ; .*? \\bend\\b )\n\
95
+ \t |( \"(\\\\.|[^\"])*+\" # eat a double quoted string\n\
96
+ \t | '(\\\\.|[^'])*+' # eat a single quoted string\n\
97
+ \t | [^#\"'] # eat all but comments and strings\n\
98
+ \t )*\n\
99
+ \t ( \\{ (?! [^}]*+ \\} )\n\
100
+ \t | \\[ (?! [^\\]]*+ \\] )\n\
101
+ \t )\n\
102
+ \t ).*$\n\
103
+ \t| [#] .*? \\(fold\\) \\s*+ $ # Sune\xE2\x80\x99s special marker\n\
104
+ \t"
105
+ patterns:
106
+ - name: meta.function-call.method.without-arguments.ruby
107
+ begin: (?<=[^\.]\.|::)(?=[a-zA-Z][a-zA-Z0-9_!?]*[^a-zA-Z0-9_!?])
108
+ end: (?<=[a-zA-Z0-9_!?])(?=[^a-zA-Z0-9_!?])
109
+ patterns:
110
+ - include: "#known_function_names"
111
+ - name: entity.name.function.ruby
112
+ match: ([a-zA-Z][a-zA-Z0-9_!?]*)(?=[^a-zA-Z0-9_!?])
113
+ - name: meta.function-call.method.with-arguments.ruby
114
+ begin: (?<=[^\.])(?=(\.|::)[a-zA-Z][a-zA-Z0-9_!?]*\()(\.|::)
115
+ beginCaptures:
116
+ "1":
117
+ name: punctuation.separator.method.ruby
118
+ end: (?<=\))
119
+ patterns:
120
+ - include: "#nest_function_parens"
121
+ - include: "#known_function_names"
122
+ - name: entity.name.function.ruby
123
+ match: ([a-zA-Z][a-zA-Z0-9_!?]*)(?=\()
124
+ - include: $self
125
+ - name: meta.function-call.ruby
126
+ begin: (?=[a-zA-Z0-9_!?]+\()
127
+ end: (?<=\))
128
+ patterns:
129
+ - include: "#nest_function_parens"
130
+ - include: "#known_function_names"
131
+ - name: entity.name.function.ruby
132
+ match: ([a-zA-Z0-9_!?]+)(?=\()
133
+ - include: $self
134
+ - include: "#leading-space"
135
+ - include: source.ruby
136
+ - name: variable.other.ruby
137
+ match: ((?<=\W)\b|^)\w+\b(?=\s*([\]\)\}\=\+\-\*\/\^\$\,]|<\s|<<\s))
138
+ comment: This is kindof experimental. There really is no way to perfectly match all regular variables, but you can pretty well assume that any normal word in certain curcumstances that havnt already been scoped as something else are probably variables, and the advantages beat the potential errors
139
+ foldingStopMarker: "(?x)\n\
140
+ \t\t( (^|;) \\s*+ end \\s*+ ([#].*)? $\n\
141
+ \t\t| (^|;) \\s*+ end \\. .* $\n\
142
+ \t\t| ^ \\s*+ [}\\]]\\)? \\s*+ ([#].*)? $\n\
143
+ \t\t| [#] .*? \\(end\\) \\s*+ $ # Sune\xE2\x80\x99s special marker\n\
144
+ \t\t)"
145
+ keyEquivalent: ^~R
@@ -0,0 +1,200 @@
1
+ ---
2
+ fileTypes:
3
+ - rb
4
+ - rxml
5
+ - builder
6
+ foldingStartMarker: ! "(?x)^\n\t (\\s*+\n\t (module|class|def\n\t |unless|if\n\t
7
+ \ |case\n\t |begin\n\t |for|while|until\n\t |( \"(\\\\.|[^\"])*+\"
8
+ \ # eat a double quoted string\n\t | '(\\\\.|[^'])*+' # eat
9
+ a single quoted string\n\t | [^#\"'] # eat all but comments
10
+ and strings\n\t )*\n\t ( \\s (do|begin|case)\n\t
11
+ \ | [-+=&|*/~%^<>~] \\s*+ (if|unless)\n\t )\n\t )\\b\n\t (?!
12
+ [^;]*+ ; .*? \\bend\\b )\n\t |( \"(\\\\.|[^\"])*+\" # eat a double
13
+ quoted string\n\t | '(\\\\.|[^'])*+' # eat a single quoted string\n\t
14
+ \ | [^#\"'] # eat all but comments and strings\n\t )*\n\t
15
+ \ ( \\{ (?! [^}]*+ \\} )\n\t | \\[ (?! [^\\]]*+ \\] )\n\t )\n\t ).*$\n\t|
16
+ \ [#] .*? \\(fold\\) \\s*+ $ # Sune’s special marker\n\t"
17
+ foldingStopMarker: ! "(?x)\n\t\t( (^|;) \\s*+ end \\s*+ ([#].*)? $\n\t\t| ^
18
+ \ \\s*+ [}\\]] \\s*+ ([#].*)? $\n\t\t| [#] .*? \\(end\\) \\s*+ $ # Sune’s
19
+ special marker\n\t\t)"
20
+ keyEquivalent: ^~R
21
+ name: Ruby on Rails
22
+ patterns:
23
+ - begin: (^\s*)(?=class\s+(([.a-zA-Z0-9_:]+ControllerTest(\s*<\s*[.a-zA-Z0-9_:]+)?)))
24
+ comment: Uses lookahead to match classes with the ControllerTest suffix; includes
25
+ 'source.ruby' to avoid infinite recursion
26
+ end: ^\1(?=end)\b
27
+ name: meta.rails.functional_test
28
+ patterns:
29
+ - include: ! '#shoulda'
30
+ - include: source.ruby
31
+ - include: $self
32
+ - begin: (^\s*)(?=class\s+(([.a-zA-Z0-9_:]+Controller\b(\s*<\s*[.a-zA-Z0-9_:]+)?)|(<<\s*[.a-zA-Z0-9_:]+)))(?!.+\bend\b)
33
+ comment: Uses lookahead to match classes with the Controller suffix; includes 'source.ruby'
34
+ to avoid infinite recursion
35
+ end: ^\1(?=end)\b
36
+ name: meta.rails.controller
37
+ patterns:
38
+ - include: source.ruby
39
+ - include: $self
40
+ - begin: (^\s*)(?=module\s+((([A-Z]\w*::)*)[A-Z]\w*)Helper)
41
+ comment: Uses lookahead to match modules with the Helper suffix; includes 'source.ruby'
42
+ to avoid infinite recursion
43
+ end: ^\1(?=end)\b
44
+ name: meta.rails.helper
45
+ patterns:
46
+ - include: source.ruby
47
+ - include: $self
48
+ - begin: (^\s*)(?=class\s+(([.a-zA-Z0-9_:]+(\s*<\s*ActionMailer::Base))))
49
+ comment: Uses lookahead to match classes that inherit from ActionMailer::Base; includes
50
+ 'source.ruby' to avoid infinite recursion
51
+ end: ^\1(?=end)\b
52
+ name: meta.rails.mailer
53
+ patterns:
54
+ - include: source.ruby
55
+ - include: $self
56
+ - begin: (^\s*)(?=class\s+.+ActiveRecord::Base)
57
+ comment: Uses lookahead to match classes that (may) inherit from ActiveRecord::Base;
58
+ includes 'source.ruby' to avoid infinite recursion
59
+ end: ^\1(?=end)\b
60
+ name: meta.rails.model
61
+ patterns:
62
+ - include: source.ruby
63
+ - include: $self
64
+ - begin: (^\s*)(?=class\s+.+ActiveRecord::Migration)
65
+ comment: Uses lookahead to match classes that (may) inherit from ActiveRecord::Migration;
66
+ includes 'source.ruby' to avoid infinite recursion
67
+ end: ^\1(?=end)\b
68
+ name: meta.rails.migration
69
+ patterns:
70
+ - begin: (^\s*)(?=change_table)\b
71
+ comment: Uses lookahead to match methods change_table; includes 'source.ruby'
72
+ to avoid infinite recursion
73
+ contentName: meta.rails.migration.change_table
74
+ end: ^\1(?=end)\b
75
+ patterns:
76
+ - include: source.ruby
77
+ - include: $self
78
+ - begin: (^\s*)(?=create_table)\b
79
+ comment: Uses lookahead to match methods create_table; includes 'source.ruby'
80
+ to avoid infinite recursion
81
+ contentName: meta.rails.migration.create_table
82
+ end: ^\1(?=end)\b
83
+ patterns:
84
+ - include: source.ruby
85
+ - include: $self
86
+ - include: source.ruby
87
+ - include: $self
88
+ - begin: (^\s*)(?=ActiveRecord::Schema.define)
89
+ end: ^\1(?=end)\b
90
+ name: meta.rails.schema
91
+ patterns:
92
+ - begin: (^\s*)(?=create_table)\b
93
+ comment: Uses lookahead to match methods create_table; includes 'source.ruby'
94
+ to avoid infinite recursion
95
+ contentName: meta.rails.migration.create_table
96
+ end: ^\1(?=end)\b
97
+ patterns:
98
+ - include: source.ruby
99
+ - include: $self
100
+ - begin: (^\s*)(?=class\s+(?![.a-zA-Z0-9_:]+ControllerTest)(([.a-zA-Z0-9_:]+Test(\s*<\s*[.a-zA-Z0-9_:]+)?)|(<<\s*[.a-zA-Z0-9_:]+)))
101
+ comment: Uses lookahead to match classes with the Test suffix; includes 'source.ruby'
102
+ to avoid infinite recursion
103
+ end: ^\1(?=end)\b
104
+ name: meta.rails.unit_test
105
+ patterns:
106
+ - include: ! '#shoulda'
107
+ - include: source.ruby
108
+ - include: $self
109
+ - begin: (^\s*)ActionController::Routing::Routes
110
+ comment: Uses ActionController::Routing::Routes to determine it is a routes file;
111
+ includes 'source.ruby' to avoid infinite recursion
112
+ end: ^\1(?=end)\b
113
+ name: meta.rails.routes
114
+ patterns:
115
+ - include: source.ruby
116
+ - include: $self
117
+ - match: \b(before_filter|skip_before_filter|skip_after_filter|after_filter|around_filter|filter|filter_parameter_logging|layout|require_dependency|render|render_action|render_text|render_file|render_template|render_nothing|render_component|render_without_layout|rescue_from|url_for|redirect_to|redirect_to_path|redirect_to_url|respond_to|helper|helper_method|model|service|observer|serialize|scaffold|verify|hide_action)\b
118
+ name: support.function.actionpack.rails
119
+ - match: \b(check_box|content_for|error_messages_for|form_for|fields_for|file_field|hidden_field|image_submit_tag|label|link_to|password_field|radio_button|submit|text_field|text_area)\b
120
+ name: support.function.viewhelpers.rails
121
+ - match: \b(named_scope|after_create|after_destroy|after_save|after_update|after_validation|after_validation_on_create|after_validation_on_update|before_create|before_destroy|before_save|before_update|before_validation|before_validation_on_create|before_validation_on_update|composed_of|belongs_to|has_one|has_many|has_and_belongs_to_many|validate|validate_on_create|validates_numericality_of|validate_on_update|validates_acceptance_of|validates_associated|validates_confirmation_of|validates_each|validates_format_of|validates_inclusion_of|validates_exclusion_of|validates_length_of|validates_presence_of|validates_size_of|validates_uniqueness_of|attr_protected|attr_accessible|attr_readonly|accepts_nested_attributes_for|default_scope)\b
122
+ name: support.function.activerecord.rails
123
+ - match: \b(alias_method_chain|alias_attribute|delegate|cattr_accessor|mattr_accessor|memoize)\b
124
+ name: support.function.activesupport.rails
125
+ - match: \b(returning)\b
126
+ name: keyword.function.activesupport.rails
127
+ - begin: (Factory).define
128
+ beginCaptures:
129
+ '1':
130
+ name: support.class.ruby
131
+ end: \b(do)\b
132
+ endCaptures:
133
+ '1':
134
+ name: keyword.control.start-block.ruby.shoulda
135
+ name: meta.rails.factory.header
136
+ patterns:
137
+ - include: source.ruby
138
+ - include: $self
139
+ - include: source.ruby
140
+ repository:
141
+ shoulda:
142
+ patterns:
143
+ - begin: (^\s*)(context)\s+(("|')(.*)\4)\s+(do)\b
144
+ beginCaptures:
145
+ '2':
146
+ name: keyword.other.context.ruby.rails.shoulda
147
+ '3':
148
+ name: entity.name.function.ruby.rails.shoulda
149
+ '5':
150
+ name: meta.context.ruby.rails.shoulda
151
+ '6':
152
+ name: keyword.control.start-block.ruby.shoulda
153
+ end: ^\1(?=end)\b
154
+ name: source.ruby.rails.shoulda
155
+ patterns:
156
+ - match: \b(should_validate_presence_of|should_validate_uniqueness_of|should_not_allow_mass_assignment_of|should_not_allow_values_for|should_allow_values_for|should_ensure_length_in_range|should_ensure_length_at_least|should_ensure_value_in_range|should_validate_numericality_of|should_have_many|should_have_and_belong_to_many|should_have_one|should_belong_to|should_be_restful|should_set_the_flash_to|should_not_set_the_flash|should_assign_to|should_not_assign_to|should_respond_with|should_render_template|should_redirect_to|should_render_a_form|setup|teardown|fixtures|load_all_fixtures|should_have_db_column|should_have_db_columns|should_have_index|should_have_indices|should_validate_acceptance_of|shuold_set_the_flash_to|should_have_readonly_attributes|should_change|should_not_change|should_have_named_scope|should_ensure_length_is|should_filter_params|should_respond_with_content_type|should_route|should_return_from_session)\b
157
+ name: support.shoulda.macro
158
+ - begin: ^\s*(should|should_eventually)\b
159
+ comment: beginCaptures = { 1 = { name = 'support.function.should.ruby.rails.shoulda';
160
+ }; };
161
+ end: (\n)|\b(do)\b\s*
162
+ endCaptures:
163
+ '1':
164
+ name: keyword.control.start-block.ruby.shoulda
165
+ name: meta.should.ruby.rails.shoulda
166
+ patterns:
167
+ - include: source.ruby
168
+ - begin: ^\s*(use_(should|setup|context))\b
169
+ comment: beginCaptures = { 1 = { name = 'support.function.should.ruby.rails.shoulda.shared_should';
170
+ }; };
171
+ end: (\n)|\b(do)\b\s*
172
+ endCaptures:
173
+ '2':
174
+ name: keyword.control.start-block.ruby.shoulda
175
+ name: meta.should.ruby.rails.shoulda.shared_should
176
+ patterns:
177
+ - include: source.ruby
178
+ - begin: ^\s*(setup)\b
179
+ comment: beginCaptures = { 1 = { name = 'support.function.setup.ruby.rails.shoulda';
180
+ }; };
181
+ end: (\n)|\b(do)\b\s*
182
+ endCaptures:
183
+ '1':
184
+ name: keyword.control.start-block.ruby.shoulda
185
+ patterns:
186
+ - include: source.ruby
187
+ - begin: ^\s*(shared_should|shared_context_should|shared_should_be|shared_context_for|share_should|share_context|share_setup)\b
188
+ comment: beginCaptures = { 1 = { name = 'support.function.should.ruby.rails.shoulda';
189
+ }; };
190
+ end: (\n)|\b(do)\b\s*
191
+ endCaptures:
192
+ '1':
193
+ name: keyword.control.start-block.ruby.shoulda
194
+ name: support.function.ruby.rails.shoulda
195
+ patterns:
196
+ - include: source.ruby
197
+ - include: ! '#shoulda'
198
+ - include: source.ruby
199
+ scopeName: source.ruby.rails
200
+ uuid: 54D6E91E-8F31-11D9-90C5-0011242E4184