File tree Expand file tree Collapse file tree 2 files changed +8
-2
lines changed
Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -29,4 +29,10 @@ def foo bar=:baz
2929 end
3030 EOF
3131 end
32+
33+ specify "unparenthesised method parameters with a required trailing keyword then semicolon" do
34+ assert_correct_highlighting <<~'EOF' , 'bar' , 'rubySymbol'
35+ def foo bar:; end
36+ EOF
37+ end
3238end
Original file line number Diff line number Diff line change @@ -461,9 +461,9 @@ if !exists("ruby_no_special_methods")
461461endif
462462syn match rubyDefinedOperator " \< defined?" display
463463
464- " More Symbols {{{1
464+ " More Symbols - 1.9-style hash keys and keyword parameters {{{1
465465syn match rubySymbol " \% ([{(|,]\_ s*\)\@ <=\% (\h\| [^\x 00-\x 7F]\)\% (\w\| [^\x 00-\x 7F]\) *[?!]\= ::\@ !" he =e - 1
466- syn match rubySymbol " []})\" ':]\@ 1<!\<\% (\h\| [^\x 00-\x 7F]\)\% (\w\| [^\x 00-\x 7F]\) *[!?]\= :[[:space:],]\@ =" he =e - 1
466+ syn match rubySymbol " []})\" ':]\@ 1<!\<\% (\h\| [^\x 00-\x 7F]\)\% (\w\| [^\x 00-\x 7F]\) *[!?]\= :[[:space:],; ]\@ =" he =e - 1
467467
468468" __END__ Directive {{{1
469469SynFold ' __END__' syn region rubyData matchgroup= rubyDataDirective start = " ^__END__$" end = " \% $"
You can’t perform that action at this time.
0 commit comments