mirror of
https://github.com/pulsar-edit/pulsar.git
synced 2024-09-11 11:15:24 +03:00
[language-typescript] Use proper comment delimiters in TypeScript…
…when inside of a TS block within a TSX interpolation. Some mixing of TS and TSX is too ambiguous for the “Toggle Line Comments” command, but in this case we've got a brace-delimited block inside of a TSX interpolation. That's practically guaranteed to mean we've got a line with _only_ TypeScript on it, so we should use an ordinary TS line comment.
This commit is contained in:
parent
1b2163f1ad
commit
a0595b275d
@ -17,3 +17,12 @@
|
||||
'commentEnd': ' */}',
|
||||
'increaseIndentPattern': "{[^}\"']*$|\\[[^\\]\"']*$|\\([^)\"']*$|<[a-zA-Z][^/]*$|^\\s*>$",
|
||||
'decreaseIndentPattern': "^\\s*(\\s*/[*].*[*]/\\s*)*[}\\])]|^\\s*(</|/>)"
|
||||
|
||||
'.meta.tag.tsx .meta.block.ts.tsx':
|
||||
editor:
|
||||
commentStart: '// '
|
||||
comments:
|
||||
line: '//'
|
||||
block:
|
||||
start: '/*'
|
||||
end: '*/'
|
||||
|
Loading…
Reference in New Issue
Block a user