Skip to content

Commit 2e5ed9a

Browse files
committed
added __dir__ to rubyPseudoVariable list
1 parent 6038601 commit 2e5ed9a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

syntax/ruby.vim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,7 @@ syn match rubyControl "\<\%(and\|break\|in\|next\|not\|or\|redo\|rescue
197197
syn match rubyOperator "\<defined?" display
198198
syn match rubyKeyword "\<\%(super\|yield\)\>[?!]\@!"
199199
syn match rubyBoolean "\<\%(true\|false\)\>[?!]\@!"
200-
syn match rubyPseudoVariable "\<\%(nil\|self\|__ENCODING__\|__FILE__\|__LINE__\|__callee__\|__method__\)\>[?!]\@!" " TODO: reorganise
200+
syn match rubyPseudoVariable "\<\%(nil\|self\|__ENCODING__\|__dir__\|__FILE__\|__LINE__\|__callee__\|__method__\)\>[?!]\@!" " TODO: reorganise
201201
syn match rubyBeginEnd "\<\%(BEGIN\|END\)\>[?!]\@!"
202202

203203
" Expensive Mode - match 'end' with the appropriate opening keyword for syntax

0 commit comments

Comments
 (0)