Changeset 27600 for lang/ruby/VimColorDirect
- Timestamp:
- 12/30/08 11:25:30 (4 years ago)
- Location:
- lang/ruby/VimColorDirect/trunk
- Files:
-
- 1 added
- 3 modified
-
sample/syn-ruby.css (modified) (1 diff)
-
test.rb (modified) (4 diffs)
-
testserver.rb (added)
-
vimcolordirect.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
lang/ruby/VimColorDirect/trunk/sample/syn-ruby.css
r27125 r27600 18 18 em.Statement, 19 19 em.Repeat, 20 em.Constant { 20 em.Constant, 21 em.Macro, 22 em.StorageClass, 23 em.Type, 24 em.PreCondit { 21 25 color: #00f; 26 } 27 28 em.Function { 29 color: #007; 22 30 } 23 31 -
lang/ruby/VimColorDirect/trunk/test.rb
r27124 r27600 13 13 14 14 infile.each{|ln| 15 ln.chomp!.gsub!("\t", ' ') 15 ln.chomp! 16 ln = ln ? ln.gsub("\t", ' ') : '' 16 17 17 18 lineno += 1 … … 60 61 end 61 62 62 src_fn = __FILE__ 63 if __FILE__ == $0 64 65 src_fn = "testserver.rb" 63 66 64 67 tmpl = <<EOS … … 79 82 80 83 buf = open_buffer(nil) 84 load_syntax("syntax.vim") 81 85 load_syntax("syntax/ruby.vim") 82 86 … … 94 98 95 99 free_vim 100 101 end -
lang/ruby/VimColorDirect/trunk/vimcolordirect.c
r27124 r27600 64 64 rb_raise(rb_eIOError, "do_source failed"); 65 65 } 66 highlight_changed(); 66 67 67 68 return Qtrue; … … 84 85 85 86 syntax_start(curwin, lnum); 87 86 88 prev_attr = -1; 87 89 prev_col = 0; … … 133 135 134 136 open_buffer(FALSE, NULL); 137 enter_buffer(buf); 135 138 136 139 instance = rb_class_new_instance(0, NULL, rb_cVimBuffer);
![(please configure the [header_logo] section in trac.ini)](/share/chrome/site/your_project_logo.png)