code_rippa 0.0.7 → 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (156) hide show
  1. checksums.yaml +7 -0
  2. data/Gemfile.lock +36 -0
  3. data/LICENSE +2 -2
  4. data/README.md +18 -1
  5. data/bin/code_rippa +15 -16
  6. data/code_rippa.gemspec +12 -10
  7. data/lib/code_rippa.rb +69 -51
  8. data/lib/code_rippa/syntax/actionscript.syntax +52 -52
  9. data/lib/code_rippa/syntax/active4d.syntax +226 -180
  10. data/lib/code_rippa/syntax/active4d_html.syntax +163 -173
  11. data/lib/code_rippa/syntax/active4d_ini.syntax +34 -27
  12. data/lib/code_rippa/syntax/active4d_library.syntax +8 -15
  13. data/lib/code_rippa/syntax/ada.syntax +19 -18
  14. data/lib/code_rippa/syntax/antlr.syntax +85 -85
  15. data/lib/code_rippa/syntax/apache.syntax +103 -109
  16. data/lib/code_rippa/syntax/applescript.syntax +244 -229
  17. data/lib/code_rippa/syntax/asp.syntax +41 -36
  18. data/lib/code_rippa/syntax/asp_vb.net.syntax +77 -72
  19. data/lib/code_rippa/syntax/bibtex.syntax +88 -90
  20. data/lib/code_rippa/syntax/blog_html.syntax +17 -29
  21. data/lib/code_rippa/syntax/blog_markdown.syntax +17 -27
  22. data/lib/code_rippa/syntax/blog_text.syntax +15 -15
  23. data/lib/code_rippa/syntax/blog_textile.syntax +15 -15
  24. data/lib/code_rippa/syntax/build.syntax +27 -27
  25. data/lib/code_rippa/syntax/bulletin_board.syntax +159 -172
  26. data/lib/code_rippa/syntax/c.syntax +31 -34
  27. data/lib/code_rippa/syntax/cake.syntax +27 -27
  28. data/lib/code_rippa/syntax/camlp4.syntax +23 -23
  29. data/lib/code_rippa/syntax/cm.syntax +19 -18
  30. data/lib/code_rippa/syntax/coffeescript.syntax +134 -181
  31. data/lib/code_rippa/syntax/coldfusion.syntax +51 -60
  32. data/lib/code_rippa/syntax/context_free.syntax +106 -106
  33. data/lib/code_rippa/syntax/cs.syntax +31 -34
  34. data/lib/code_rippa/syntax/css.syntax +112 -112
  35. data/lib/code_rippa/syntax/css_experimental.syntax +1006 -1004
  36. data/lib/code_rippa/syntax/csv.syntax +40 -44
  37. data/lib/code_rippa/syntax/d.syntax +80 -84
  38. data/lib/code_rippa/syntax/diff.syntax +46 -45
  39. data/lib/code_rippa/syntax/dokuwiki.syntax +118 -119
  40. data/lib/code_rippa/syntax/dot.syntax +26 -26
  41. data/lib/code_rippa/syntax/doxygen.syntax +26 -26
  42. data/lib/code_rippa/syntax/dylan.syntax +35 -35
  43. data/lib/code_rippa/syntax/eiffel.syntax +39 -42
  44. data/lib/code_rippa/syntax/erlang.syntax +514 -511
  45. data/lib/code_rippa/syntax/f-script.syntax +44 -44
  46. data/lib/code_rippa/syntax/fortran.syntax +80 -76
  47. data/lib/code_rippa/syntax/fxscript.syntax +78 -77
  48. data/lib/code_rippa/syntax/greasemonkey.syntax +20 -20
  49. data/lib/code_rippa/syntax/gri.syntax +47 -47
  50. data/lib/code_rippa/syntax/groovy.syntax +105 -114
  51. data/lib/code_rippa/syntax/gtd.syntax +10 -10
  52. data/lib/code_rippa/syntax/gtdalt.syntax +83 -83
  53. data/lib/code_rippa/syntax/haml.syntax +50 -50
  54. data/lib/code_rippa/syntax/haskell.syntax +47 -47
  55. data/lib/code_rippa/syntax/html-asp.syntax +15 -15
  56. data/lib/code_rippa/syntax/html_django.syntax +15 -14
  57. data/lib/code_rippa/syntax/html_for_asp.net.syntax +232 -245
  58. data/lib/code_rippa/syntax/html_mason.syntax +75 -74
  59. data/lib/code_rippa/syntax/html_rails.syntax +17 -27
  60. data/lib/code_rippa/syntax/html_tcl.syntax +13 -13
  61. data/lib/code_rippa/syntax/icalendar.syntax +15 -15
  62. data/lib/code_rippa/syntax/inform.syntax +26 -26
  63. data/lib/code_rippa/syntax/ini.syntax +30 -30
  64. data/lib/code_rippa/syntax/installer_distribution_script.syntax +49 -49
  65. data/lib/code_rippa/syntax/io.syntax +49 -46
  66. data/lib/code_rippa/syntax/java.syntax +117 -126
  67. data/lib/code_rippa/syntax/javaproperties.syntax +13 -12
  68. data/lib/code_rippa/syntax/javascript.syntax +141 -141
  69. data/lib/code_rippa/syntax/javascript_+_prototype.syntax +42 -41
  70. data/lib/code_rippa/syntax/javascript_+_prototype_bracketed.syntax +92 -91
  71. data/lib/code_rippa/syntax/jquery_javascript.syntax +64 -64
  72. data/lib/code_rippa/syntax/json.syntax +39 -39
  73. data/lib/code_rippa/syntax/languagedefinition.syntax +373 -453
  74. data/lib/code_rippa/syntax/lexflex.syntax +136 -136
  75. data/lib/code_rippa/syntax/lighttpd.syntax +31 -31
  76. data/lib/code_rippa/syntax/lilypond.syntax +246 -337
  77. data/lib/code_rippa/syntax/lisp.syntax +32 -32
  78. data/lib/code_rippa/syntax/literate_haskell.syntax +12 -12
  79. data/lib/code_rippa/syntax/logo.syntax +13 -14
  80. data/lib/code_rippa/syntax/logtalk.syntax +81 -81
  81. data/lib/code_rippa/syntax/lua.syntax +50 -48
  82. data/lib/code_rippa/syntax/m.syntax +78 -78
  83. data/lib/code_rippa/syntax/macports_portfile.syntax +98 -97
  84. data/lib/code_rippa/syntax/makefile.syntax +19 -19
  85. data/lib/code_rippa/syntax/man.syntax +9 -9
  86. data/lib/code_rippa/syntax/mediawiki.syntax +311 -401
  87. data/lib/code_rippa/syntax/mips.syntax +34 -34
  88. data/lib/code_rippa/syntax/mod_perl.syntax +25 -31
  89. data/lib/code_rippa/syntax/modula-3.syntax +24 -24
  90. data/lib/code_rippa/syntax/moinmoin.syntax +102 -102
  91. data/lib/code_rippa/syntax/mootools.syntax +283 -300
  92. data/lib/code_rippa/syntax/movable_type.syntax +91 -90
  93. data/lib/code_rippa/syntax/multimarkdown.syntax +19 -30
  94. data/lib/code_rippa/syntax/objective-c++.syntax +6 -10
  95. data/lib/code_rippa/syntax/objective-c.syntax +134 -138
  96. data/lib/code_rippa/syntax/ocaml.syntax +455 -453
  97. data/lib/code_rippa/syntax/ocamllex.syntax +94 -93
  98. data/lib/code_rippa/syntax/ocamlyacc.syntax +98 -98
  99. data/lib/code_rippa/syntax/opengl.syntax +6 -6
  100. data/lib/code_rippa/syntax/pascal.syntax +43 -42
  101. data/lib/code_rippa/syntax/perl.syntax +612 -615
  102. data/lib/code_rippa/syntax/plain_text.syntax +17 -20
  103. data/lib/code_rippa/syntax/postscript.syntax +71 -69
  104. data/lib/code_rippa/syntax/processing.syntax +60 -60
  105. data/lib/code_rippa/syntax/prolog.syntax +17 -20
  106. data/lib/code_rippa/syntax/property_list.syntax +338 -359
  107. data/lib/code_rippa/syntax/python.syntax +487 -509
  108. data/lib/code_rippa/syntax/python_django.syntax +9 -10
  109. data/lib/code_rippa/syntax/qmake_project.syntax +67 -67
  110. data/lib/code_rippa/syntax/qt_c++.syntax +12 -15
  111. data/lib/code_rippa/syntax/quake3_config.syntax +18 -17
  112. data/lib/code_rippa/syntax/r.syntax +42 -42
  113. data/lib/code_rippa/syntax/r_console.syntax +7 -8
  114. data/lib/code_rippa/syntax/ragel.syntax +109 -115
  115. data/lib/code_rippa/syntax/rd_r_documentation.syntax +53 -53
  116. data/lib/code_rippa/syntax/regexp.syntax +26 -26
  117. data/lib/code_rippa/syntax/release_notes.syntax +46 -26
  118. data/lib/code_rippa/syntax/remind.syntax +146 -146
  119. data/lib/code_rippa/syntax/restructuredtext.syntax +132 -131
  120. data/lib/code_rippa/syntax/rez.syntax +46 -45
  121. data/lib/code_rippa/syntax/ruby.syntax +533 -601
  122. data/lib/code_rippa/syntax/ruby_experimental.syntax +82 -100
  123. data/lib/code_rippa/syntax/ruby_on_rails.syntax +56 -68
  124. data/lib/code_rippa/syntax/s5.syntax +35 -51
  125. data/lib/code_rippa/syntax/scheme.syntax +162 -260
  126. data/lib/code_rippa/syntax/scilab.syntax +18 -18
  127. data/lib/code_rippa/syntax/setext.syntax +82 -82
  128. data/lib/code_rippa/syntax/shell-unix-generic.syntax +227 -226
  129. data/lib/code_rippa/syntax/slate.syntax +91 -91
  130. data/lib/code_rippa/syntax/sql.syntax +137 -139
  131. data/lib/code_rippa/syntax/sql_rails.syntax +8 -8
  132. data/lib/code_rippa/syntax/ssh-config.syntax +17 -17
  133. data/lib/code_rippa/syntax/standard_ml.syntax +67 -69
  134. data/lib/code_rippa/syntax/strings_file.syntax +20 -23
  135. data/lib/code_rippa/syntax/subversion_commit_message.syntax +20 -20
  136. data/lib/code_rippa/syntax/sweave.syntax +45 -45
  137. data/lib/code_rippa/syntax/swig.syntax +34 -33
  138. data/lib/code_rippa/syntax/tcl.syntax +87 -86
  139. data/lib/code_rippa/syntax/template_toolkit.syntax +67 -65
  140. data/lib/code_rippa/syntax/textile.syntax +111 -145
  141. data/lib/code_rippa/syntax/tsv.syntax +31 -33
  142. data/lib/code_rippa/syntax/twiki.syntax +141 -141
  143. data/lib/code_rippa/syntax/txt2tags.syntax +39 -38
  144. data/lib/code_rippa/syntax/vectorscript.syntax +31 -31
  145. data/lib/code_rippa/syntax/xhtml_1.0.syntax +2297 -2296
  146. data/lib/code_rippa/syntax/xml.syntax +95 -95
  147. data/lib/code_rippa/syntax/xml_strict.syntax +49 -50
  148. data/lib/code_rippa/syntax/xsl.syntax +31 -31
  149. data/lib/code_rippa/syntax/yaml.syntax +86 -86
  150. data/lib/code_rippa/syntax/yaml_converter.rb +37 -0
  151. data/lib/code_rippa/syntax/yui_javascript.syntax +88 -88
  152. data/lib/code_rippa/version.rb +2 -2
  153. data/test/fixtures/hello.rb +5 -3
  154. data/test/test_private_methods.rb +40 -40
  155. data/test/test_public_methods.rb +9 -18
  156. metadata +61 -63
@@ -1,145 +1,127 @@
1
- ---
1
+ ---
2
2
  name: Ruby Experimental
3
3
  scopeName: source.ruby.experimental
4
- repository:
5
- nest_function_parens:
6
- captures:
7
- "0":
4
+ repository:
5
+ nest_function_parens:
6
+ captures:
7
+ '0':
8
8
  name: punctuation.section.scope.ruby.experimental
9
- begin: \(
9
+ begin: "\\("
10
10
  contentName: meta.section.scope.ruby.experimental
11
- end: \)
12
- patterns:
11
+ end: "\\)"
12
+ patterns:
13
13
  - include: "#nest_function_parens"
14
- - include: $self
15
- known_function_names:
14
+ - include: "$self"
15
+ known_function_names:
16
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:
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: "\nadding all the core methods here to provide a visual aid for spelling
19
+ errors, \nas long as the current theme highlights [support.function] scopes.\n\nie:
20
+ if you miss type first as fisrt, then the word will not highlight."
21
+ leading-space:
22
+ patterns:
26
23
  - name: meta.leading-tabs
27
- begin: ^(?=(\t| ))
28
- end: (?=[^\t\s]|\n)
29
- patterns:
30
- - captures:
31
- "6":
24
+ begin: "^(?=(\\t| ))"
25
+ end: "(?=[^\\t\\s]|\\n)"
26
+ patterns:
27
+ - captures:
28
+ '6':
32
29
  name: meta.even-tab.group6.spaces
33
- "11":
30
+ '11':
34
31
  name: meta.odd-tab.group11.spaces
35
- "7":
32
+ '7':
36
33
  name: meta.odd-tab.group7.spaces
37
- "8":
34
+ '8':
38
35
  name: meta.even-tab.group8.spaces
39
- "9":
36
+ '9':
40
37
  name: meta.odd-tab.group9.spaces
41
- "1":
38
+ '1':
42
39
  name: meta.odd-tab.group1.spaces
43
- "2":
40
+ '2':
44
41
  name: meta.even-tab.group2.spaces
45
- "3":
42
+ '3':
46
43
  name: meta.odd-tab.group3.spaces
47
- "4":
44
+ '4':
48
45
  name: meta.even-tab.group4.spaces
49
- "10":
46
+ '10':
50
47
  name: meta.even-tab.group10.spaces
51
- "5":
48
+ '5':
52
49
  name: meta.odd-tab.group5.spaces
53
- match: ( )( )?( )?( )?( )?( )?( )?( )?( )?( )?( )?
54
- - captures:
55
- "6":
50
+ match: "( )( )?( )?( )?( )?( )?( )?( )?( )?( )?( )?"
51
+ - captures:
52
+ '6':
56
53
  name: meta.even-tab.group6.tab
57
- "11":
54
+ '11':
58
55
  name: meta.odd-tab.group11.tab
59
- "7":
56
+ '7':
60
57
  name: meta.odd-tab.group7.tab
61
- "8":
58
+ '8':
62
59
  name: meta.even-tab.group8.tab
63
- "9":
60
+ '9':
64
61
  name: meta.odd-tab.group9.tab
65
- "1":
62
+ '1':
66
63
  name: meta.odd-tab.group1.tab
67
- "2":
64
+ '2':
68
65
  name: meta.even-tab.group2.tab
69
- "3":
66
+ '3':
70
67
  name: meta.odd-tab.group3.tab
71
- "4":
68
+ '4':
72
69
  name: meta.even-tab.group4.tab
73
- "10":
70
+ '10':
74
71
  name: meta.even-tab.group10.tab
75
- "5":
72
+ '5':
76
73
  name: meta.odd-tab.group5.tab
77
- match: (\t)(\t)?(\t)?(\t)?(\t)?(\t)?(\t)?(\t)?(\t)?(\t)?(\t)?
74
+ match: "(\\t)(\\t)?(\\t)?(\\t)?(\\t)?(\\t)?(\\t)?(\\t)?(\\t)?(\\t)?(\\t)?"
78
75
  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:
76
+ foldingStartMarker: "(?x)^\n\t (\\s*+\n\t (module|class|def\n\t |unless|if\n\t
77
+ \ |case\n\t |begin\n\t |for|while|until\n\t |( \"(\\\\.|[^\"])*+\"
78
+ \ # eat a double quoted string\n\t | '(\\\\.|[^'])*+' # eat
79
+ a single quoted string\n\t | [^#\"'] # eat all but comments
80
+ and strings\n\t )*\n\t ( \\s (do|begin|case)\n\t
81
+ \ | [-+=&|*/~%^<>~] \\s*+ (if|unless)\n\t )\n\t )\\b\n\t (?!
82
+ [^;]*+ ; .*? \\bend\\b )\n\t |( \"(\\\\.|[^\"])*+\" # eat a double
83
+ quoted string\n\t | '(\\\\.|[^'])*+' # eat a single quoted string\n\t
84
+ \ | [^#\"'] # eat all but comments and strings\n\t )*\n\t
85
+ \ ( \\{ (?! [^}]*+ \\} )\n\t | \\[ (?! [^\\]]*+ \\] )\n\t )\n\t ).*$\n\t|
86
+ \ [#] .*? \\(fold\\) \\s*+ $ # Sune’s special marker\n\t"
87
+ patterns:
106
88
  - 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:
89
+ begin: "(?<=[^\\.]\\.|::)(?=[a-zA-Z][a-zA-Z0-9_!?]*[^a-zA-Z0-9_!?])"
90
+ end: "(?<=[a-zA-Z0-9_!?])(?=[^a-zA-Z0-9_!?])"
91
+ patterns:
110
92
  - include: "#known_function_names"
111
93
  - name: entity.name.function.ruby
112
- match: ([a-zA-Z][a-zA-Z0-9_!?]*)(?=[^a-zA-Z0-9_!?])
94
+ match: "([a-zA-Z][a-zA-Z0-9_!?]*)(?=[^a-zA-Z0-9_!?])"
113
95
  - name: meta.function-call.method.with-arguments.ruby
114
- begin: (?<=[^\.])(?=(\.|::)[a-zA-Z][a-zA-Z0-9_!?]*\()(\.|::)
115
- beginCaptures:
116
- "1":
96
+ begin: "(?<=[^\\.])(?=(\\.|::)[a-zA-Z][a-zA-Z0-9_!?]*\\()(\\.|::)"
97
+ beginCaptures:
98
+ '1':
117
99
  name: punctuation.separator.method.ruby
118
- end: (?<=\))
119
- patterns:
100
+ end: "(?<=\\))"
101
+ patterns:
120
102
  - include: "#nest_function_parens"
121
103
  - include: "#known_function_names"
122
104
  - name: entity.name.function.ruby
123
- match: ([a-zA-Z][a-zA-Z0-9_!?]*)(?=\()
124
- - include: $self
105
+ match: "([a-zA-Z][a-zA-Z0-9_!?]*)(?=\\()"
106
+ - include: "$self"
125
107
  - name: meta.function-call.ruby
126
- begin: (?=[a-zA-Z0-9_!?]+\()
127
- end: (?<=\))
128
- patterns:
108
+ begin: "(?=[a-zA-Z0-9_!?]+\\()"
109
+ end: "(?<=\\))"
110
+ patterns:
129
111
  - include: "#nest_function_parens"
130
112
  - include: "#known_function_names"
131
113
  - name: entity.name.function.ruby
132
- match: ([a-zA-Z0-9_!?]+)(?=\()
133
- - include: $self
114
+ match: "([a-zA-Z0-9_!?]+)(?=\\()"
115
+ - include: "$self"
134
116
  - include: "#leading-space"
135
117
  - include: source.ruby
136
118
  - 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
119
+ match: "((?<=\\W)\\b|^)\\w+\\b(?=\\s*([\\]\\)\\}\\=\\+\\-\\*\\/\\^\\$\\,]|<\\s|<<\\s))"
120
+ comment: This is kindof experimental. There really is no way to perfectly match
121
+ all regular variables, but you can pretty well assume that any normal word in
122
+ certain curcumstances that havnt already been scoped as something else are probably
123
+ variables, and the advantages beat the potential errors
124
+ foldingStopMarker: "(?x)\n\t\t( (^|;) \\s*+ end \\s*+ ([#].*)? $\n\t\t| (^|;)
125
+ \\s*+ end \\. .* $\n\t\t| ^ \\s*+ [}\\]]\\)? \\s*+ ([#].*)? $\n\t\t| [#]
126
+ .*? \\(end\\) \\s*+ $ # Sune’s special marker\n\t\t)"
127
+ keyEquivalent: "^~R"
@@ -1,88 +1,76 @@
1
- ---
1
+ ---
2
2
  name: Ruby on Rails
3
- fileTypes:
3
+ fileTypes:
4
4
  - rxml
5
5
  scopeName: source.ruby.rails
6
6
  uuid: 54D6E91E-8F31-11D9-90C5-0011242E4184
7
- foldingStartMarker: "(?x)^\n\
8
- \t (\\s*+\n\
9
- \t (module|class|def\n\
10
- \t |unless|if\n\
11
- \t |case\n\
12
- \t |begin\n\
13
- \t |for|while|until\n\
14
- \t |( \"(\\\\.|[^\"])*+\" # eat a double quoted string\n\
15
- \t | '(\\\\.|[^'])*+' # eat a single quoted string\n\
16
- \t | [^#\"'] # eat all but comments and strings\n\
17
- \t )*\n\
18
- \t ( \\s (do|begin|case)\n\
19
- \t | [-+=&|*/~%^<>~] \\s*+ (if|unless)\n\
20
- \t )\n\
21
- \t )\\b\n\
22
- \t (?! [^;]*+ ; .*? \\bend\\b )\n\
23
- \t |( \"(\\\\.|[^\"])*+\" # eat a double quoted string\n\
24
- \t | '(\\\\.|[^'])*+' # eat a single quoted string\n\
25
- \t | [^#\"'] # eat all but comments and strings\n\
26
- \t )*\n\
27
- \t ( \\{ (?! [^}]*+ \\} )\n\
28
- \t | \\[ (?! [^\\]]*+ \\] )\n\
29
- \t )\n\
30
- \t ).*$\n\
31
- \t| [#] .*? \\(fold\\) \\s*+ $ # Sune\xE2\x80\x99s special marker\n\
32
- \t"
33
- patterns:
7
+ foldingStartMarker: "(?x)^\n\t (\\s*+\n\t (module|class|def\n\t |unless|if\n\t
8
+ \ |case\n\t |begin\n\t |for|while|until\n\t |( \"(\\\\.|[^\"])*+\"
9
+ \ # eat a double quoted string\n\t | '(\\\\.|[^'])*+' # eat
10
+ a single quoted string\n\t | [^#\"'] # eat all but comments
11
+ and strings\n\t )*\n\t ( \\s (do|begin|case)\n\t
12
+ \ | [-+=&|*/~%^<>~] \\s*+ (if|unless)\n\t )\n\t )\\b\n\t (?!
13
+ [^;]*+ ; .*? \\bend\\b )\n\t |( \"(\\\\.|[^\"])*+\" # eat a double
14
+ quoted string\n\t | '(\\\\.|[^'])*+' # eat a single quoted string\n\t
15
+ \ | [^#\"'] # eat all but comments and strings\n\t )*\n\t
16
+ \ ( \\{ (?! [^}]*+ \\} )\n\t | \\[ (?! [^\\]]*+ \\] )\n\t )\n\t ).*$\n\t|
17
+ \ [#] .*? \\(fold\\) \\s*+ $ # Sune’s special marker\n\t"
18
+ patterns:
34
19
  - name: meta.rails.functional_test
35
- begin: (^\s*)(?=class\s+(([.a-zA-Z0-9_:]+ControllerTest(\s*<\s*[.a-zA-Z0-9_:]+)?)))
36
- end: ^\1(?=end)\b
37
- patterns:
20
+ begin: "(^\\s*)(?=class\\s+(([.a-zA-Z0-9_:]+ControllerTest(\\s*<\\s*[.a-zA-Z0-9_:]+)?)))"
21
+ end: "^\\1(?=end)\\b"
22
+ patterns:
38
23
  - include: source.ruby
39
- - include: $self
40
- comment: Uses lookahead to match classes with the ControllerTest suffix; includes 'source.ruby' to avoid infinite recursion
24
+ - include: "$self"
25
+ comment: Uses lookahead to match classes with the ControllerTest suffix; includes
26
+ 'source.ruby' to avoid infinite recursion
41
27
  - name: meta.rails.controller
42
- begin: (^\s*)(?=class\s+(([.a-zA-Z0-9_:]+Controller\b(\s*<\s*[.a-zA-Z0-9_:]+)?)|(<<\s*[.a-zA-Z0-9_:]+)))(?!.+\bend\b)
43
- end: ^\1(?=end)\b
44
- patterns:
28
+ begin: "(^\\s*)(?=class\\s+(([.a-zA-Z0-9_:]+Controller\\b(\\s*<\\s*[.a-zA-Z0-9_:]+)?)|(<<\\s*[.a-zA-Z0-9_:]+)))(?!.+\\bend\\b)"
29
+ end: "^\\1(?=end)\\b"
30
+ patterns:
45
31
  - include: source.ruby
46
- - include: $self
47
- comment: Uses lookahead to match classes with the Controller suffix; includes 'source.ruby' to avoid infinite recursion
32
+ - include: "$self"
33
+ comment: Uses lookahead to match classes with the Controller suffix; includes 'source.ruby'
34
+ to avoid infinite recursion
48
35
  - name: meta.rails.helper
49
- begin: (^\s*)(?=module\s+((([A-Z]\w*::)*)[A-Z]\w*)Helper)
50
- end: ^\1(?=end)\b
51
- patterns:
36
+ begin: "(^\\s*)(?=module\\s+((([A-Z]\\w*::)*)[A-Z]\\w*)Helper)"
37
+ end: "^\\1(?=end)\\b"
38
+ patterns:
52
39
  - include: source.ruby
53
- - include: $self
54
- comment: Uses lookahead to match modules with the Helper suffix; includes 'source.ruby' to avoid infinite recursion
40
+ - include: "$self"
41
+ comment: Uses lookahead to match modules with the Helper suffix; includes 'source.ruby'
42
+ to avoid infinite recursion
55
43
  - name: meta.rails.mailer
56
- begin: (^\s*)(?=class\s+(([.a-zA-Z0-9_:]+(\s*<\s*ActionMailer::Base))))
57
- end: ^\1(?=end)\b
58
- patterns:
44
+ begin: "(^\\s*)(?=class\\s+(([.a-zA-Z0-9_:]+(\\s*<\\s*ActionMailer::Base))))"
45
+ end: "^\\1(?=end)\\b"
46
+ patterns:
59
47
  - include: source.ruby
60
- - include: $self
61
- comment: Uses lookahead to match classes that inherit from ActionMailer::Base; includes 'source.ruby' to avoid infinite recursion
48
+ - include: "$self"
49
+ comment: Uses lookahead to match classes that inherit from ActionMailer::Base; includes
50
+ 'source.ruby' to avoid infinite recursion
62
51
  - name: meta.rails.model
63
- begin: (^\s*)(?=class\s+.+ActiveRecord::Base)
64
- end: ^\1(?=end)\b
65
- patterns:
52
+ begin: "(^\\s*)(?=class\\s+.+ActiveRecord::Base)"
53
+ end: "^\\1(?=end)\\b"
54
+ patterns:
66
55
  - include: source.ruby
67
- - include: $self
68
- comment: Uses lookahead to match classes that (may) inherit from ActiveRecord::Base; includes 'source.ruby' to avoid infinite recursion
56
+ - include: "$self"
57
+ comment: Uses lookahead to match classes that (may) inherit from ActiveRecord::Base;
58
+ includes 'source.ruby' to avoid infinite recursion
69
59
  - name: meta.rails.unit_test
70
- 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_:]+)))
71
- end: ^\1(?=end)\b
72
- patterns:
60
+ 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_:]+)))"
61
+ end: "^\\1(?=end)\\b"
62
+ patterns:
73
63
  - include: source.ruby
74
- - include: $self
75
- comment: Uses lookahead to match classes with the Test suffix; includes 'source.ruby' to avoid infinite recursion
64
+ - include: "$self"
65
+ comment: Uses lookahead to match classes with the Test suffix; includes 'source.ruby'
66
+ to avoid infinite recursion
76
67
  - name: support.function.actionpack.rails
77
- 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|url_for|redirect_to|redirect_to_path|redirect_to_url|helper|helper_method|model|service|observer|serialize|scaffold|verify|hide_action)\b
68
+ 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|url_for|redirect_to|redirect_to_path|redirect_to_url|helper|helper_method|model|service|observer|serialize|scaffold|verify|hide_action)\\b"
78
69
  - name: support.function.activerecord.rails
79
- match: \b(acts_as_list|acts_as_tree|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|helper|helper_method|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_length_of|validates_presence_of|validates_size_of|validates_uniqueness_of|attr_protected|attr_accessible)\b
70
+ match: "\\b(acts_as_list|acts_as_tree|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|helper|helper_method|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_length_of|validates_presence_of|validates_size_of|validates_uniqueness_of|attr_protected|attr_accessible)\\b"
80
71
  - name: support.function.activesupport.rails
81
- match: \b(cattr_accessor|mattr_accessor)\b
72
+ match: "\\b(cattr_accessor|mattr_accessor)\\b"
82
73
  - include: source.ruby
83
- foldingStopMarker: "(?x)\n\
84
- \t\t( (^|;) \\s*+ end \\s*+ ([#].*)? $\n\
85
- \t\t| ^ \\s*+ [}\\]] \\s*+ ([#].*)? $\n\
86
- \t\t| [#] .*? \\(end\\) \\s*+ $ # Sune\xE2\x80\x99s special marker\n\
87
- \t\t)"
88
- keyEquivalent: ^~R
74
+ foldingStopMarker: "(?x)\n\t\t( (^|;) \\s*+ end \\s*+ ([#].*)? $\n\t\t| ^ \\s*+
75
+ [}\\]] \\s*+ ([#].*)? $\n\t\t| [#] .*? \\(end\\) \\s*+ $ # Sune’s special marker\n\t\t)"
76
+ keyEquivalent: "^~R"
@@ -1,69 +1,53 @@
1
- ---
1
+ ---
2
2
  name: S5 Slide Show
3
- fileTypes:
3
+ fileTypes:
4
4
  - s5
5
5
  scopeName: source.s5
6
6
  uuid: 84A2047B-4453-418D-B009-A3D3C60F3D1E
7
- foldingStartMarker: |-
8
- (?x)
9
- (<(?i:head|body|table|thead|tbody|tfoot|tr|div|select|fieldset|style|script|ul|ol|form|dl)\b.*?>
10
- |<!--(?!.*-->)
11
- |\{\s*($|\?>\s*$|//|/\*(.*\*/\s*$|(?!.*?\*/)))
12
- )
13
- patterns:
7
+ foldingStartMarker: "(?x)\n\t\t(<(?i:head|body|table|thead|tbody|tfoot|tr|div|select|fieldset|style|script|ul|ol|form|dl)\\b.*?>\n\t\t|<!--(?!.*-->)\n\t\t|\\{\\s*($|\\?>\\s*$|//|/\\*(.*\\*/\\s*$|(?!.*?\\*/)))\n\t\t)"
8
+ patterns:
14
9
  - name: meta.header.s5
15
- captures:
16
- "1":
10
+ captures:
11
+ '1':
17
12
  name: keyword.other.s5
18
- "2":
13
+ '2':
19
14
  name: punctuation.separator.key-value.s5
20
- "3":
15
+ '3':
21
16
  name: string.unquoted.s5
22
- match: ^([A-Za-z0-9]+)(:)\s*(.*)$\n?
23
- - begin: ^(?![A-Za-z0-9]+:)
24
- end: ^(?=not)possible$
25
- patterns:
26
- - begin: (^_{10}$)
17
+ match: "^([A-Za-z0-9]+)(:)\\s*(.*)$\\n?"
18
+ - begin: "^(?![A-Za-z0-9]+:)"
19
+ end: "^(?=not)possible$"
20
+ patterns:
21
+ - begin: "(^_{10}$)"
27
22
  contentName: text.html.markdown.handout.s5
28
- beginCaptures:
29
- "1":
23
+ beginCaptures:
24
+ '1':
30
25
  name: meta.separator.handout.s5
31
- end: "(?=^(?:(?:\xE2\x9C\x82-{6})+|^#{10})$)"
32
- patterns:
26
+ end: "(?=^(?:(?:✂-{6})+|^#{10})$)"
27
+ patterns:
33
28
  - include: text.html.markdown
34
- comment: "\n\
35
- \t\t\t\t\t\tname = 'meta.separator.handout.s5';\n\
36
- \t\t\t\t\t\tmatch = '(^_{10}$)';\n\
37
- \t\t\t\t\t"
38
- - begin: (^#{10}$)
29
+ comment: "\n\t\t\t\t\t\tname = 'meta.separator.handout.s5';\n\t\t\t\t\t\tmatch
30
+ = '(^_{10}$)';\n\t\t\t\t\t"
31
+ - begin: "(^#{10}$)"
39
32
  contentName: text.html.markdown.notes.s5
40
- beginCaptures:
41
- "1":
33
+ beginCaptures:
34
+ '1':
42
35
  name: meta.separator.notes.s5
43
- end: "(?=^(?:(?:\xE2\x9C\x82-{6})+|_{10})$)"
44
- patterns:
36
+ end: "(?=^(?:(?:✂-{6})+|_{10})$)"
37
+ patterns:
45
38
  - include: text.html.markdown
46
- comment: "\n\
47
- \t\t\t\t\t\tname = 'meta.separator.notes.s5';\n\
48
- \t\t\t\t\t\tmatch = '(^#{10}$)';\n\
49
- \t\t\t\t\t"
50
- - begin: "^((\xE2\x9C\x82-{6})+$\\n)"
39
+ comment: "\n\t\t\t\t\t\tname = 'meta.separator.notes.s5';\n\t\t\t\t\t\tmatch =
40
+ '(^#{10}$)';\n\t\t\t\t\t"
41
+ - begin: "^((✂-{6})+$\\n)"
51
42
  contentName: text.html.markdown.slide.s5
52
- beginCaptures:
53
- "1":
43
+ beginCaptures:
44
+ '1':
54
45
  name: meta.separator.slide.s5
55
- end: "(?=^(?:(?:\xE2\x9C\x82-{6})+|_{10}|#{10})$)"
56
- patterns:
46
+ end: "(?=^(?:(?:✂-{6})+|_{10}|#{10})$)"
47
+ patterns:
57
48
  - include: text.html.markdown
58
- comment: "\n\
59
- \t\t\t\t\t\tname = 'meta.separator.slide.s5';\n\
60
- \t\t\t\t\t\tmatch = '^((\xE2\x9C\x82-{6})+$\\n)';\n\
61
- \t\t\t\t\t"
49
+ comment: "\n\t\t\t\t\t\tname = 'meta.separator.slide.s5';\n\t\t\t\t\t\tmatch =
50
+ '^((✂-{6})+$\\n)';\n\t\t\t\t\t"
62
51
  - include: text.html.markdown
63
- foldingStopMarker: |-
64
- (?x)
65
- (</(?i:head|body|table|thead|tbody|tfoot|tr|div|select|fieldset|style|script|ul|ol|form|dl)>
66
- |^\s*-->
67
- |(^|\s)\}
68
- )
69
- keyEquivalent: ^~S
52
+ foldingStopMarker: "(?x)\n\t\t(</(?i:head|body|table|thead|tbody|tfoot|tr|div|select|fieldset|style|script|ul|ol|form|dl)>\n\t\t|^\\s*-->\n\t\t|(^|\\s)\\}\n\t\t)"
53
+ keyEquivalent: "^~S"