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
In addition, an object in the decorator is not tokenized correctly. As the below image, template and changeDetection are property names but not tokenized.
With #2820, decorators will have a dedicated .decorator class.
an object in the decorator is not tokenized correctly
The syntax is too similar to type annotations. We will not able to distinguish between the two correctly. Sorry, but that isn't possible to implement with Prism.
Motivation
I'd like to highlight my code relating Angular. Angular uses
@Decorators
often like below:A decorator is technically a function, but I want to separate its color from normal functions.
Currently, decorators are tokenized as
function
inlanguage-typescript
Description
Adding
.meta
-like class to decorator name token.The text was updated successfully, but these errors were encountered: