diff --git a/Syntaxes/Ruby.plist b/Syntaxes/Ruby.plist index 09e1482..97198de 100644 --- a/Syntaxes/Ruby.plist +++ b/Syntaxes/Ruby.plist @@ -162,6 +162,38 @@ name invalid.deprecated.ruby + + captures + + 1 + + name + punctuation.definition.constant.ruby + + + comment + symbols as hash key (1.9 syntax) + match + (?>[a-zA-Z_]\w*(?>[?!])?)(:)(?!:) + name + constant.other.symbol.hashkey.ruby + + + captures + + 1 + + name + punctuation.definition.constant.ruby + + + comment + symbols as hash key (1.8 syntax) + match + (?<!:)(:)(?>[a-zA-Z_]\w*(?>[?!])?)(?=\s*=>) + name + constant.other.symbol.hashkey.ruby + comment everything being a reserved word, not a value and needing a 'end' is a.. @@ -1567,22 +1599,6 @@ name constant.other.symbol.ruby - - captures - - 1 - - name - punctuation.definition.constant.ruby - - - comment - symbols - match - (?>[a-zA-Z_]\w*(?>[?!])?)(:)(?!:) - name - constant.other.symbol.ruby.19syntax - begin ^=begin