languages: Fix string override to match just string_fragment
part of template_string
(#33997)
Closes #33703 `template_string` consists of `template_substitution` and `string_fragment` chunks. `template_substitution` should not be considered a string. ```ts const variable = `this is a string_fragment but ${this.is.template_substitution}`; ``` Release Notes: - Fixed auto-complete not showing on typing `.` character in template literal string in JavaScript and TypeScript files.
This commit is contained in:
parent
6efc5ecefe
commit
6b456ede49
3 changed files with 9 additions and 8 deletions
|
@ -1,9 +1,8 @@
|
||||||
(comment) @comment.inclusive
|
(comment) @comment.inclusive
|
||||||
|
|
||||||
[
|
(string) @string
|
||||||
(string)
|
|
||||||
(template_string)
|
(template_string (string_fragment) @string)
|
||||||
] @string
|
|
||||||
|
|
||||||
(jsx_element) @element
|
(jsx_element) @element
|
||||||
|
|
||||||
|
|
|
@ -1,9 +1,8 @@
|
||||||
(comment) @comment.inclusive
|
(comment) @comment.inclusive
|
||||||
|
|
||||||
[
|
(string) @string
|
||||||
(string)
|
|
||||||
(template_string)
|
(template_string (string_fragment) @string)
|
||||||
] @string
|
|
||||||
|
|
||||||
(jsx_element) @element
|
(jsx_element) @element
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,9 @@
|
||||||
(comment) @comment.inclusive
|
(comment) @comment.inclusive
|
||||||
|
|
||||||
(string) @string
|
(string) @string
|
||||||
|
|
||||||
|
(template_string (string_fragment) @string)
|
||||||
|
|
||||||
(_ value: (call_expression
|
(_ value: (call_expression
|
||||||
function: (identifier) @function_name_before_type_arguments
|
function: (identifier) @function_name_before_type_arguments
|
||||||
type_arguments: (type_arguments)))
|
type_arguments: (type_arguments)))
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue