Skip to content
This repository was archived by the owner on Apr 22, 2020. It is now read-only.
This repository was archived by the owner on Apr 22, 2020. It is now read-only.

Highlighting Support for the Spin Language #232

Open

Description

@GoogleCodeExporter
I am part of team that is putting a library for Spin code onto Google Code. We 
would like syntax highlighting for the Spin language (a Python like language 
for the Propeller microcontroller from Parallax.com).

I have attached a .lang file to this issue. This is the syntax highlighting for 
the GTK Source View system. If a list of keywords would be more appropriate 
then I can provide that too.

Here is a link to some example code for Spin: 
http://www.parallaxsemiconductor.com/sites/default/files/parallax/Gold-Standard_
2.zip

More code can be found at obex.parallax.com (any of the files will do).

One note about the highlighting: the block comment of Spin is a bit odd. There 
are two versions:

{ block comment type 1 }
{{ block comment type 2 }}

A block comment has either one curly brace or two. A double {{ comment could be 
incorrectly parsed as a single { followed by (as part of the comment) another 
{. Then, the last } of the }} pair would be incorrectly highlighted as part of 
the code, rather than the closing part of the comment. The .lang file gets 
around this by defining the {{/}} comment first. It seems to work, but I don't 
know if this a defined feature of Source View or not.

Original issue reported on code.google.com by srlm@anzhelka.com on 9 Aug 2012 at 2:45

Attachments:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions