forked from Quramy/vim-js-pretty-template
-
Notifications
You must be signed in to change notification settings - Fork 1
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
cannot use with typescript #4
Comments
it appears to be an issue with the parent repository as well Quramy#15 |
so I was able to repro my issue with an even smaller configuration, without using this plugin. All it takes is the following snippet in unlet b:current_syntax
syn include @SQL syntax/sql.vim
syn region sqlTemplate start=+sql`+
\ end=+`+
\ contains=@SQL v --noplugin test.ts // highlighted as sql
sql`SELECT * WHERE`
// not highlighted as sql
const x = sql`SELECT * WHERE` I suppose that means its time to move this issue upstream to neovim. |
andykais
changed the title
does not play nicely with yats.vim
cannot use with typescript
May 25, 2021
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
When writing typescript, you must specify a typescript syntax highlighter. A popular one is Darkholme/yats.vim. It does not always work well with templated strings. Attached are a working and non-working tagged template string
The text was updated successfully, but these errors were encountered: