-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
No syntax highlighting for TSC comments #3
Comments
This is also something that will be improved in the dedicated TSC library I mentioned in #2 (comment) (and the vscode extension, for the syntax highlighting part); in fact, you will also be able to instruct the language server to warn you about possible unreachable code.
|
Gotcha, I'd missed that feature in ScriptSource. All good on that front then. |
It's a relatively common pattern in TSC, especially more advanced scripts, to leave comments to document your events. Any text in between the end of an event and the label for the next event is completely ignored by the TSC parser. This snippet demonstrates that usage:
Highlighting those sections as comments (e.g. italicizing them, etc) would be a big help for code clarity.
The commands in vanilla TSC which end an event (and thus leave any text after them as comments) are:
The text was updated successfully, but these errors were encountered: