TextMate Syntax Highlighting for AVR Libc
Basically, this is just a giant regular expression that matches most of the AVR Libc defines. Stuff like PIND, DDRA, ADC_vect and over 600 other common and less-common keywords that you use all the time. It also highlights a few common functions.
I’m sure there’s a better way to do it, but the easiest way to “install” this is to open the text file below and cut and paste its contents into the “Edit Language” dialog in TextMate. To get there, hit CTRL-OPTION-CMD-L and choose “C” from the list of languages. I plopped this right above the line containing “support.function.C99.c”. Don’t add any spaces or line breaks when you paste it.
textmate-avrlibc.txt (last updated 10/01/2007)
Let me know how it works for you.
If this post is interesting to you, subscribe to this site.