Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Cleaned up docs

  • Loading branch information...
commit ecf4be44aaa0b79fcc307b11c1a3f44bfb17a983 1 parent 9bd2608
@tpope tpope authored
Showing with 11 additions and 30 deletions.
  1. +5 −0 ChangeLog
  2. +0 −29 doc/ft-ruby-syntax.txt
  3. +6 −1 indent/eruby.vim
View
5 ChangeLog
@@ -1,3 +1,8 @@
+2007-05-11 Tim Pope <vim@tpope.info>
+
+ * indent/eruby.vim: GetRubyIndent() takes an argument for debugging
+ * doc/ft-ruby-syntax.txt: clean up some cruft
+
2007-05-09 Tim Pope <vim@tpope.info>
* syntax/ruby.vim: added module_function keyword
View
29 doc/ft-ruby-syntax.txt
@@ -20,23 +20,6 @@ the "ruby_minlines" variable to a value larger than 50: >
Ideally, this value should be a number of lines large enough to embrace your
largest class or module.
-Highlighting of special identifiers can be disabled by removing the
-rubyIdentifier highlighting: >
-
- :hi link rubyIdentifier NONE
-<
-This will prevent highlighting of special identifiers like "ConstantName",
-"$global_var", "@@class_var", "@instance_var", "| block_param |", and
-":symbol".
-
-Significant methods of Kernel, Module and Object are highlighted by default.
-This can be disabled by defining "ruby_no_special_methods": >
-
- :let ruby_no_special_methods = 1
-<
-This will prevent highlighting of important methods such as "require", "attr",
-"private", "raise" and "proc".
-
Ruby operators can be highlighted. This is enabled by defining
"ruby_operators": >
@@ -51,17 +34,5 @@ as errors. This can be refined by defining "ruby_no_trail_space_error" and
"ruby_no_tab_space_error" which will ignore trailing whitespace and tabs after
spaces respectively.
-Folding can be enabled by defining "ruby_fold": >
-
- :let ruby_fold = 1
-<
-This will set the 'foldmethod' option to "syntax" and allow folding of
-classes, modules, methods, code blocks, heredocs and comments.
-
-Folding of multiline comments can be disabled by defining
-"ruby_no_comment_fold": >
-
- :let ruby_no_comment_fold = 1
-<
vim:tw=78:sw=4:ts=8:ft=help:norl:
View
7 indent/eruby.vim
@@ -40,7 +40,12 @@ if exists("*GetErubyIndent")
finish
endif
-function! GetErubyIndent()
+function! GetErubyIndent(...)
+ if a:0 && a:1 == '.'
+ let v:lnum = line('.')
+ elseif a:0 =~ '^\d'
+ let v:lnum = a:1
+ endif
let vcol = col('.')
call cursor(v:lnum,1)
let inruby = searchpair('<%','','%>')

0 comments on commit ecf4be4

Please sign in to comment.
Something went wrong with that request. Please try again.