Skip to content

Commit 0f38a09

Browse files
committed
Move eRuby syntax config to head of file
1 parent 1512c3f commit 0f38a09

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

syntax/ruby.vim

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,11 @@ endif
1818
let s:cpo_sav = &cpo
1919
set cpo&vim
2020

21+
" eRuby Config {{{1
22+
if exists('main_syntax') && main_syntax == 'eruby'
23+
let b:ruby_no_expensive = 1
24+
endif
25+
2126
" Folding Config {{{1
2227
if has("folding") && exists("ruby_fold")
2328
setlocal foldmethod=syntax
@@ -259,11 +264,6 @@ SynFold '<<' syn region rubyString start=+\%(\%(class\|::\)\_s*\|\%([]}).]\)\s\|
259264
SynFold '<<' syn region rubyString start=+\%(\%(class\|::\)\_s*\|\%([]}).]\)\s\|\w\)\@<!<<[-~]'\z([^']*\)'\ze\%(.*<<[-~]\=['`"]\=\h\)\@!+hs=s+3 matchgroup=rubyStringDelimiter end=+^\s*\zs\z1$+ contains=rubyHeredocStart keepend
260265
SynFold '<<' syn region rubyString start=+\%(\%(class\|::\)\_s*\|\%([]}).]\)\s\|\w\)\@<!<<[-~]`\z([^`]*\)`\ze\%(.*<<[-~]\=['`"]\=\h\)\@!+hs=s+3 matchgroup=rubyStringDelimiter end=+^\s*\zs\z1$+ contains=rubyHeredocStart,@rubyStringSpecial keepend
261266

262-
" eRuby Config {{{1
263-
if exists('main_syntax') && main_syntax == 'eruby'
264-
let b:ruby_no_expensive = 1
265-
endif
266-
267267
" Module, Class, Method and Alias Declarations {{{1
268268
syn match rubyAliasDeclaration "[^[:space:];#.()]\+" contained contains=rubySymbol,rubyGlobalVariable,rubyPredefinedVariable nextgroup=rubyAliasDeclaration2 skipwhite
269269
syn match rubyAliasDeclaration2 "[^[:space:];#.()]\+" contained contains=rubySymbol,rubyGlobalVariable,rubyPredefinedVariable

0 commit comments

Comments
 (0)