Sublime Forum

Error installing tmLanguage file

#1

I’m trying to install the Perl Template Toolkit language parser from github.com/gtcaz/tmbundles4win/ … er/Bundles. I’ve copied the .tmLanguage file to Packages/Perl Template Toolkit and restarted. I’m getting this error:

Can anyone help me fix this problem?

0 Likes

#2

Did you ever figure this out? I’m having the same issue.

0 Likes

#3

I already have this kind of error, but my knowledge of .tmLanguage is next to nothing and don’t know what the problem.
I suppose it’s a bug of ST2.

To remove the error, change all occurrence of:

<string>#embedded-code</string>

by:

<string>embedded-code</string>

But I don’t know if if the the grammar still work correctly…

0 Likes

#4

This occurs because the embedded-code rule in the repository is empty, which Sublime Text is unhappy about (there’s no point having or including an empty rule). I’ll make it a warning rather than an error in the next dev build.

0 Likes