You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I found the first problem (unclosed typescriptTypeArguments) working backwards from the second problem (unclosed typescriptTemplateLiteralType), so I'm describing them both here.
declareleta: string;declareletb: string;declareconstdefinitelyNotInsideATemplateLiteral: ()=>void;// a<b matches as typescriptif(a<b){`${a}`;}definitelyNotInsideATemplateLiteral();
Here's the appearance in nvim, using the solarized colorscheme.
Evaluating map(synstack(line('.'), col('.')), 'synIDattr(v:val, "name")') at various points:
The start of the template literal line: ['typescriptConditionalParen', 'typescriptTypeArguments', 'typescriptObjectType']
The start of the function call line: ['typescriptConditionalParen', 'typescriptTypeArguments', 'typescriptTemplateLiteralType']
The text was updated successfully, but these errors were encountered:
I don't think this has to do with the arrow function. The arrow function appearing in the example is only there so typescript errors don't clutter things. It could be typed Function and the issue would still occur.
Changing a<b to a <b stop it from matching as typescriptTypeArguments.
I found the first problem (unclosed typescriptTypeArguments) working backwards from the second problem (unclosed typescriptTemplateLiteralType), so I'm describing them both here.
Here's the appearance in nvim, using the solarized colorscheme.
Evaluating
map(synstack(line('.'), col('.')), 'synIDattr(v:val, "name")')
at various points:The start of the template literal line:
['typescriptConditionalParen', 'typescriptTypeArguments', 'typescriptObjectType']
The start of the function call line:
['typescriptConditionalParen', 'typescriptTypeArguments', 'typescriptTemplateLiteralType']
The text was updated successfully, but these errors were encountered: