Skip to content

Commit

Permalink
Merge pull request #35 from aziz/ruby
Browse files Browse the repository at this point in the history
Improvements to Ruby syntax
  • Loading branch information
Sublime HQ Pty Ltd committed Jul 1, 2015
2 parents 9697bed + 036bf21 commit f4e22fe
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions Ruby/Ruby.sublime-syntax
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ contexts:
scope: constant.language.ruby
- match: '\b(__(FILE|LINE)__|self)\b(?![?!])'
scope: variable.language.ruby
- match: '\b(initialize|new|loop|include|extend|raise|attr_reader|attr_writer|attr_accessor|attr|catch|throw|private|module_function|public|protected)\b(?![?!])'
- match: '\b(initialize|new|loop|include|extend|raise|fail|attr_reader|attr_writer|attr_accessor|attr|catch|throw|private|module_function|public|protected)\b(?![?!])'
comment: everything being a method but having a special function is a..
scope: keyword.other.special-method.ruby
- match: \b(require|require_relative|gem)\b
Expand Down Expand Up @@ -354,7 +354,7 @@ contexts:
1: string.regexp.classic.ruby
2: punctuation.definition.string.ruby
push:
- meta_content_scope: string.regexp.classic.ruby
- meta_scope: string.regexp.classic.ruby
- match: "((/)([eimnosux]*))"
captures:
1: punctuation.definition.string.ruby
Expand Down Expand Up @@ -739,7 +739,9 @@ contexts:
captures:
1: punctuation.separator.variable.ruby
push:
- meta_scope: meta.variable.block.ruby
- match: (\|)
scope: punctuation.separator.variable.ruby
pop: true
- match: "[_a-zA-Z][_a-zA-Z0-9]*"
scope: variable.other.block.ruby
Expand Down

0 comments on commit f4e22fe

Please sign in to comment.