borela / naomi

Sublime Text enhanced syntax highlighting for JavaScript ES6/ES7/ES2015/ES2016/ES2017+, Babel, FlowType, React JSX, Styled Components, HTML5, SCSS3, PHP 7, phpDoc, PHPUnit, MQL4. Basic: Git config files.
Other
558 stars 18 forks source link

[Request] GraphQL support #127

Open Whoaa512 opened 6 years ago

Whoaa512 commented 6 years ago

Given that you support inline css for Styled-Components, could you add support for highlighting GraphQL in .gql/.graphql files and inline in JS?

Example files:

https://gist.github.com/Whoaa512/7143d918aba16d9b201778897db18681

I realize the type def example I gave might not be possible since it's just a normal template literal.

borela commented 6 years ago

I think it's possible to identify graph ql template strings from the tag "gql" like I do for styled components, I'll add it as soon as I finish the build system.

DavidHe1127 commented 5 years ago

any updates on this?