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

Svelte only returns html-comment for all locations #100

Open
runar-rkmedia opened this issue Mar 18, 2024 · 0 comments
Open

Svelte only returns html-comment for all locations #100

runar-rkmedia opened this issue Mar 18, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@runar-rkmedia
Copy link

Minimal reproducible full config

Just the minimal setup from the cloned repository

Description

All the locations return the html-commentstring.

Steps to reproduce

  1. run :TSInstall svelte and restart
  2. e: test.svelte and use content like below:
<script lang="ts">
	let foo = true
</script>

<h1>Header</h1>

<style>
h1 {
  background: blue;
}
</style>

3: run lua print(require('ts_context_commentstring.internal').calculate_commentstring{location = require('ts_context_commentstring.utils').get_cursor_location()}) at various locations, in the script-tag, html-part, and in the css. Could also try key gcc which should comment.

Expected behavior

I am expecting different commentstrings for each location.

Actual behavior

Same comment in all location (html-comment)

Additional context

This originally occurred in my nvim-setup based on astronvim.

@runar-rkmedia runar-rkmedia added the bug Something isn't working label Mar 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant