Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Vim indenting file for Treetop (Ruby parser)

Has anyone seen a vim indent file for treetop, the Ruby parser/generator? I've found a vim syntax highlighting file, but haven't seen one for indentation.

like image 347
Peter Avatar asked Oct 13 '09 20:10

Peter


1 Answers

It seems like it's fairly easy - I just create a file

~/.vim/indent/treetop.vim

and make its sole contents

runtime! indent/ruby.vim

and it seems to then support all I need. I think it just wasn't loading Ruby's indentation file!

like image 85
Peter Avatar answered Sep 19 '22 11:09

Peter