Boo Syntax for Vim

Link. March 26, 2007. Comments [0]. Posted in: .NET | Tools

While working through the Boo code in JanRain's OpenID library, I got tired of looking at a colorless screen. It's easy to forget how much of a difference syntax highlighting does!

Seeing as how I'm using Vim as my current external editor of choice, I looked around to see if I could find a syntax file for Boo, but didn't find any in the usual places. So, based on a the info here and a few sample Boo files, I came up with my own. It's somewhat tricky to get right, but I borrowed heavily from the builtin Python, C# and Ruby scripts to came up with a simple, though usable script.

Here's a screenshot showing the results:

Not bad, if I may say so myself, given as how I had not tried this in years :-). I'm sure there are hundreds of problems, but it does the trick for now. I'm still missing a decent indentation script, though...

If anyone wants it, the script can be downloaded from here. Just save it to the syntax directory of your Vim installation and configure your file associations with something like:

:au BufNewFile,BufRead *.boo setf boo

Enjoy!



Comments are closed.

Syndicate

About

Tomas Restrepo is a software developer located in Colombia, South America. His interests include .NET, Connected Systems, PowerShell and lately dynamic programming languages. More...

tomasrestrepo @ twitter My Flickr photostream My saved links on delicious My Technorati Profile

email: tomas@winterdom.com
msn: tomasr@passport.com

View my profile on LinkedIn

MVP logo

Ads


Categories

Statistics

Total Posts: 1050
This Year: 1
This Month: 1
This Week: 0
Comments: 825

Archive

Other

Copyright © 2002-2008, Tomas Restrepo.

Powered by: newtelligence dasBlog 2.2.8279.16125

Sign In