microsoft / TypeScript-TmLanguage

TextMate grammar files for TypeScript for VS Code, Sublime Text, and Atom.
MIT License
398 stars 125 forks source link

JsDoc new line asterisk not recognized as punctuation #910

Open icetbr opened 2 years ago

icetbr commented 2 years ago
/**      punctuation.definition.comment.js
 *       comment.block.documentation.js
 */      punctuation.definition.comment.js

If not desired to change the base language, would this fit in a grammar extension? I would like to apply different color to the punctuation and the comment itself.

Thanks

iDad5 commented 1 year ago

Have you tried grammar injection?

icetbr commented 1 year ago

No, because I don't like needles! :-) Well, seems like an interesting idea, when I get back to this I will try it.

iDad5 commented 1 year ago

@icetbr I have to admit, that I don’t really get what you refer to by ‚needle‘ I guess RegEx though. Your issue has reminded me that I don’t like the situation you refer to in my slowly developing theme and I will try to find a solution and share it if you like.