PDA

View Full Version : Spin syntax definition for Vim



Andrey Demenev
12-13-2009, 01:28 PM
If there are others like me using Vim to edit SPIN files - here is SPIN syntax definition. Unzip into the VIM directory - and you have your Spin files highlighted

UPDATE
Updated definition to preperly highlight identifiers that contain a reserved word (e.g. ByteCounter)

Post Edited (Andrey Demenev) : 1/24/2010 11:19:54 AM GMT

Cluso99
12-13-2009, 02:32 PM
Nice highlighting http://forums.parallax.com/images/smilies/smile.gif

▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Links to other interesting threads:

· Home of the MultiBladeProps: TriBlade (http://forums.parallax.com/showthread.php?p=786418),·RamBlade (http://forums.parallax.com/showthread.php?p=849265),·SixBlade (http://forums.parallax.com/showthread.php?p=780033), website (http://bluemagic.biz/cluso.htm)
· Single Board Computer:·3 Propeller ICs·and a·TriBladeProp board (ZiCog Z80 Emulator) (http://forums.parallax.com/showthread.php?p=790917)
· Prop Tools under Development or Completed (Index) (http://forums.parallax.com/showthread.php?p=753439)
· Emulators: CPUs Z80 etc; Micros Altair etc;· Terminals·VT100 etc; (Index) (http://forums.parallax.com/showthread.php?p=778427) ZiCog (Z80) (http://forums.parallax.com/showthread.php?p=788511) , MoCog (6809) (http://forums.parallax.com/showthread.php?p=811043)
· Search the Propeller forums (http://search.parallax.com/search?site=parallax&client=parallax&output=xml_no_dtd&proxystylesheet=parallax&proxycustom=<HOME/>&ie=&oe=&lr=)·(uses advanced Google search)
My cruising website is: ·www.bluemagic.biz (http://www.bluemagic.biz)·· MultiBladeProp is: www.bluemagic.biz/cluso.htm (http://www.bluemagic.biz/cluso.htm)

jazzed
12-13-2009, 02:45 PM
Woo Hoo !!! Goodbye Propeller Tool.

heater
12-14-2009, 02:14 AM
Oh yeah now were cooking. Vim and BSTC will do me fine.

▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
For me, the past is not over yet.

Andrey Demenev
01-24-2010, 10:43 AM
UPDATE
Updated definition to preperly highlight identifiers that contain a reserved word (e.g. ByteCounter)

RossH
01-24-2010, 05:40 PM
Andrey,

Fantastic work! My favorite editor now understands the language of my favorite microcontroller - what could be better!

Ross.

P.S. to get it to detect spin files automatically I also had to add the following lines to my _vimrc file:

augroup filetypedetect
au BufNewFile,BufRead *.spin setf spin
augroup END

▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Catalina - a FREE C compiler for the Propeller - see Catalina (http://forums.parallax.com/showthread.php?p=844004)

Andrey Demenev
01-24-2010, 06:24 PM
Actually, the original post did had a ZIP file attached with both highlighter and file type detector, but when editing the post, I could not upload a ZIP file for some reason. Now I have updated the first post with ZIP file containing both files.

PS. Nice to see people using VIM for Propeller code editing. I've been a fan of VIM for a long time, and use it for any new language I learn

max72
01-24-2010, 07:47 PM
thanks!
I really love vim, and a spin syntax definition is great!!

Massimo