diff --git a/Syntaxes/Ruby.plist b/Syntaxes/Ruby.plist index 050fa7c..bb24c21 100644 --- a/Syntaxes/Ruby.plist +++ b/Syntaxes/Ruby.plist @@ -427,7 +427,7 @@ begin (?=[&*_a-zA-Z]) end - (?=,|\)\s*$) + (?=[,)]) patterns @@ -457,6 +457,29 @@ match \G([&*]?)(?:([_a-zA-Z]\w*(:))|([_a-zA-Z]\w*)) + + begin + \( + captures + + 0 + + name + punctuation.section.function.ruby + + + comment + Prevent end pattern of parent rule from ending prematurely. + end + \) + patterns + + + include + $self + + + include $self