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

syntax not applied to .vue files #26

Closed
ghost opened this issue May 9, 2019 · 1 comment · Fixed by #48
Closed

syntax not applied to .vue files #26

ghost opened this issue May 9, 2019 · 1 comment · Fixed by #48
Labels

Comments

@ghost
Copy link

ghost commented May 9, 2019

Vim Version

NVIM v0.3.4
Build type: Release
LuaJIT 2.1.0-beta3
Compilation: /usr/lib/ccache/bin/cc -fstack-clash-protection -D_FORTIFY_SOURCE=2 -mtune=generic -O2 -pipe  -g -Wconversion -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1 -O2 -DNDEBUG -DMIN_LOG_LEVEL=3 -Wall -Wextra -pedantic -Wno-unused-parameter -Wstrict-prototypes -std=gnu99 -Wimplicit-fallthrough -Wvla -fstack-protector-strong -fdiagnostics-color=auto -Wno-array-bounds -DINCLUDE_GENERATED_DECLARATIONS -D_GNU_SOURCE -DNVIM_MSGPACK_HAS_FLOAT32 -DNVIM_UNIBI_HAS_VAR_FROM -I/builddir/neovim-0.3.4/build/config -I/builddir/neovim-0.3.4/src -I/usr/include -I/builddir/neovim-0.3.4/build/src/nvim/auto -I/builddir/neovim-0.3.4/build/include
Compiled by void-buildslave@a-hel-fi

Features: +acl +iconv -jemalloc +tui 
See ":help feature-compile"

   system vimrc file: "$VIM/sysinit.vim"
  fall-back for $VIM: "/usr/share/nvim"

Run :checkhealth for more info

the syntax is getting applied in template strings just fine on .js files, but on .vue files that contain javascript inside them it doesn't work. any idea/workaround?

@jparise
Copy link
Owner

jparise commented May 9, 2019

Extra support is needed to embed GraphQL syntax in other file types. See #6 for the initial work on JavaScript support, for example.

It sounds like something similar is needed for Vue fields. What (vim) filetype do they use? Are you using a vim extension for Vue support?

jparise added a commit that referenced this issue Dec 18, 2019
This change adds GraphQL syntax support for JavaScript embedded within
Vue templates.

At the moment, this requires the extended JavaScript language support
provided by the vim-javascript plugin because there's a deficiency in
our base JavaScript support that prevents embedded GraphQL from being
recognized within embedded JavaScript. I'll work on that separately.

Closes #26
jparise added a commit that referenced this issue Dec 18, 2019
This change adds GraphQL syntax support for JavaScript embedded within
Vue templates.

At the moment, this requires the extended JavaScript language support
provided by the vim-javascript plugin because there's a deficiency in
our base JavaScript support that prevents embedded GraphQL from being
recognized within embedded JavaScript. I'll work on that separately.

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

Successfully merging a pull request may close this issue.

1 participant