Sublime Forum

Porting a Turtle/n3/SPARQL TextMate bundle

#1

Hello
There’s a language bundle I previously used under Textmate : 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 :

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,
quinode.fr

0 Likes

#2

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 < and > with < and > did away with the error for me, but I haven’t looked into n3, so perhaps they’re necessary for some reason.

0 Likes

#3

Hi,
Did you end up getting this to work in the end ?
I tried replacing the “< and > 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 ?? :smile:

Cheers,
Arve

0 Likes

#4

Hi,

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

Regards,
Stefan

0 Likes