mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-19 03:40:04 -04:00
allow negative assertion in injection tests (#4107)
* tests(vue, svelte): strengthen tests * fix(html, vue, svelte): fix wrong test format * allow negative assertions in injection tests
This commit is contained in:
parent
0922634d37
commit
85d9534491
5 changed files with 84 additions and 135 deletions
|
|
@ -1,29 +1,14 @@
|
|||
<script>
|
||||
import Button from "./Button.svelte";
|
||||
// ^ javascript
|
||||
</script>
|
||||
<script lang="ts">
|
||||
const foo: number = 1
|
||||
// ^ typescript
|
||||
</script>
|
||||
<script> import Button from "./Button.svelte"; </script>
|
||||
<!-- ^ javascript -->
|
||||
<script lang="ts"> const foo: number = 1
</script>
|
||||
<!-- ^ typescript -->
|
||||
<!-- ^ !javascript -->
|
||||
|
||||
<style>
|
||||
main {
|
||||
font-family: sans-serif;
|
||||
text-align: center;
|
||||
/* ^ css
|
||||
*/
|
||||
}
|
||||
</style>
|
||||
<style lang="scss">
|
||||
main {
|
||||
font-family: sans-serif;
|
||||
text-align: center;
|
||||
&:hover {
|
||||
// ^ scss
|
||||
}
|
||||
}
|
||||
</style>
|
||||
<style> main { font-family: sans-serif; text-align: center; } </style>
|
||||
<!-- ^ css -->
|
||||
<style lang="scss"> main { &:hover { } } </style>
|
||||
<!-- ^ scss -->
|
||||
<!-- ^ !css -->
|
||||
|
||||
<main>
|
||||
<h1>Test file</h1>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue