Home Download Buy Blog Forum Support

Porting a Turtle/n3/SPARQL TextMate bundle

Porting a Turtle/n3/SPARQL TextMate bundle

Postby domguard on Sat May 19, 2012 1:19 pm

There's a language bundle I previously used under Textmate : https://github.com/tommorris/n3-tmbundle
I'm just installing the two files from this project "Syntaxes" folder into a "Packages/n3/" folder but when I open a .n3 file, I get this error :

Code: Select all
Error loading syntax file "Packages/n3/n3.tmLanguage": Unexpected capture value

Could you put me on the track on how to debug this and port the plugin to ST2 ?
thank you!

Dominique Guardiola,
Posts: 2
Joined: Sat May 19, 2012 1:03 pm

Re: Porting a Turtle/n3/SPARQL TextMate bundle

Postby andkerosine on Mon May 21, 2012 5:09 am

Hey, Dominique. I took a look at it for you, and I believe I may have found a solution. Either because the author made an error, or else that TextMate requires it to be so, the angle brackets in that file are represented as HTML entities. Replacing all occurrences of &lt; and &gt; with < and > did away with the error for me, but I haven't looked into n3, so perhaps they're necessary for some reason.
Posts: 5
Joined: Thu May 17, 2012 8:31 pm

Re: Porting a Turtle/n3/SPARQL TextMate bundle

Postby arvesolland on Sun Oct 14, 2012 10:54 pm

Did you end up getting this to work in the end ?
I tried replacing the "&lt; and &gt; with < and >", but it dosent work for me, gives me "Unexpected end tag" error instead.

Any other suggestion on how to get n3 syntax highlighting to work in sublime text ?? :)

Posts: 1
Joined: Sun Oct 14, 2012 10:38 pm

Re: Porting a Turtle/n3/SPARQL TextMate bundle

Postby StefanOllinger on Tue Nov 13, 2012 12:19 pm


this should fix it: https://github.com/dozed/n3-tmbundle/co ... a543600eeb
There was an unused capture which Sublime complains about. I guess Texmate just ignores those.

Posts: 3
Joined: Tue Nov 13, 2012 12:13 pm

Return to Plugin Development

Who is online

Users browsing this forum: No registered users and 2 guests