out-of-cheese-error / the-way

A code snippets manager for your terminal.
MIT License
352 stars 16 forks source link

Cannot add new syntax files #152

Closed chopfitzroy closed 8 months ago

chopfitzroy commented 1 year ago

I am trying to run the following command:

the-way themes language ~/zola/sublime/syntaxes/extra/TypeScript.sublime-syntax

And I get the following output:

Error:
   0: SyntaxError: "~/zola/sublime/syntaxes/extra/TypeScript.sublime-syntax"

Suggestion: Couldn't load a syntax from ~/zola/sublime/syntaxes/extra/TypeScript.sublime-syntax, are you sure this is a valid .sublime-syntax file with a 'name' key?

I took a look at the syntect docs as well as the syntax definitions page for Sublime Text 3 and from what I can see these are formatted correctly.

Is there something I am missing?

Ninjani commented 8 months ago

This was because of an older fancy-regex version that didn't have support for \G (https://github.com/trishume/syntect/issues/454). Should be fixed in v0.20.1