Fix svelte injections / outline (#8194)
This PR fixes the buffer symbol search to show `js` and `ts` buffer symbols when using svelte components with `ts`. Does also seem to improve `ts` capabilities (probably because there has been a conflict of `js` and `ts` before). Unfortunately when changing the script tag from no lang attribute to `ts` one needs to update the file (input anyting) to get correct buffer symbol search. Before:  After:  Release Notes: - Fixed svelte outlines for `TS`.
This commit is contained in:
parent
42ac9880c6
commit
576f8d3ef3
1 changed files with 6 additions and 2 deletions
|
@ -1,7 +1,11 @@
|
|||
; injections.scm
|
||||
; --------------
|
||||
(script_element
|
||||
(raw_text) @content
|
||||
((script_element
|
||||
(start_tag
|
||||
(attribute
|
||||
(quoted_attribute_value (attribute_value) @_language))?)
|
||||
(raw_text) @content)
|
||||
(#eq? @_language "")
|
||||
(#set! "language" "javascript"))
|
||||
|
||||
((script_element
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue