Skip to content

Commit e64bdab

Browse files
committed
Remove g:rails_syntax
Replace it with the undocumented g:rails_no_syntax.
1 parent 5405bf7 commit e64bdab

File tree

3 files changed

+1
-7
lines changed

3 files changed

+1
-7
lines changed

autoload/rails.vim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3578,7 +3578,7 @@ endfunction
35783578
call s:add_methods('app', ['user_classes','user_assertions'])
35793579

35803580
function! s:BufSyntax()
3581-
if (!exists("g:rails_syntax") || g:rails_syntax)
3581+
if !exists("g:rails_no_syntax")
35823582
let buffer = rails#buffer()
35833583
let s:javascript_functions = "$ $$ $A $F $H $R $w jQuery"
35843584
let classes = s:gsub(join(rails#app().user_classes(),' '),'::',' ')

doc/rails.txt

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -933,11 +933,6 @@ Use GNU Screen or Tmux (if it is running) to launch |:Rscript| console and
933933
Used for the |:Rpreview| command. Default is as shown above. Overridden by
934934
b:rails_url.
935935

936-
*g:rails_syntax* >
937-
let g:rails_syntax=1
938-
When enabled, this tweaks the syntax highlighting to be more Rails friendly.
939-
Enabled by default. See |rails-syntax|.
940-
941936
*rails-tabs* *g:rails_tabstop* >
942937
let g:rails_tabstop=4
943938
This option now requires the plugin railstab.vim from vim.org:

plugin/rails.vim

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,6 @@ function! s:SetOptDefault(opt,val)
4848
endif
4949
endfunction
5050

51-
call s:SetOptDefault("rails_syntax",1)
5251
call s:SetOptDefault("rails_abbreviations",1)
5352
call s:SetOptDefault("rails_ctags_arguments","--languages=-javascript")
5453
call s:SetOptDefault("rails_default_file","README")

0 commit comments

Comments
 (0)