You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've been using something like this in after/syntax/javascript/graphql.vim attempting to highlight graphql as tagged template literals within javascript files using @pangloss' vim-javascript:
It works for Relay.QL or graphql tagged template strings:
exportdefaultRelay.createContainer(MyComponent,{fragments: {root: =>Relay.QL` fragment on MyType { field anotherField connection { moreFields } } `}})
This sort-of works. It doesn't recognise javascript template expressions correctly, i.e. in graphql`foo ${bar} baz`bar isn't parsed as javascript, it just continues to parse them as graphql varables/constants, and I can't figure that out.
It might be nice if there were support built-in here!
The text was updated successfully, but these errors were encountered:
I've been using something like this in
after/syntax/javascript/graphql.vim
attempting to highlight graphql as tagged template literals within javascript files using @pangloss' vim-javascript:It works for
Relay.QL
orgraphql
tagged template strings:This sort-of works. It doesn't recognise javascript template expressions correctly, i.e. in
graphql`foo ${bar} baz`
bar
isn't parsed as javascript, it just continues to parse them as graphql varables/constants, and I can't figure that out.It might be nice if there were support built-in here!
The text was updated successfully, but these errors were encountered: