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


Technorati tags: , ,

Tomas Restrepo

Software developer located in Colombia. Sr. PFE at Microsoft.