Skip to content

Commit ec9b2b0

Browse files
committed
Fix custom keyword highlighting
1 parent 9c4e71a commit ec9b2b0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

after/syntax/ruby/rails.vim

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -208,10 +208,10 @@ let s:special = filter(copy(s:keywords), 'v:val =~# ''^\h\k*[?!]$''')
208208
let s:regular = filter(copy(s:keywords), 'v:val =~# ''^\h\k*$''')
209209
let s:group = rails#buffer().type_name('helper', 'view') ? 'rubyHelper' : 'rubyMacro'
210210
if !empty(s:special)
211-
exe 'syn match' group '"\<\%('.join(s:special, '\|').'\)"'
211+
exe 'syn match' s:group '"\<\%('.join(s:special, '\|').'\)"'
212212
endif
213213
if !empty(s:regular)
214-
exe 'syn keyword' group join(s:regular, ' ')
214+
exe 'syn keyword' s:group join(s:regular, ' ')
215215
endif
216216

217217
hi def link rubyEntity rubyMacro

0 commit comments

Comments
 (0)