Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Twig Syntax in JSON Files #1

Open
ychlc opened this issue Jan 22, 2018 · 2 comments
Open

Twig Syntax in JSON Files #1

ychlc opened this issue Jan 22, 2018 · 2 comments

Comments

@ychlc
Copy link

ychlc commented Jan 22, 2018

Hello!

Currently, if you try to use the Twig Syntax in .json.twig files it flags it as invalid JSON instead of twig syntax (even though the output does work correctly).

screen shot 2018-01-21 at 9 31 48 pm

@PurpleBabar
Copy link
Owner

Will take a look at it :)

@PurpleBabar
Copy link
Owner

HI @YurgenHohmeyer,

When testing, i can see that atom-twig as nothing to do with it. In the package, my predecessors extendend the Json syntax, which finds the file incorrect (due to two brackets:/).

I could remove the extension of json but you would loose all syntax coloration :/
I guess i should create a grammar file specifically for json.twig files extending the one of https://github.com/atom/language-json.

I don't have the time at the moment, but if you feel like it you can do it :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants