Gruntfuggly / todo-tree

Use ripgrep to find TODO tags and display the results in a tree view
Other
1.42k stars 137 forks source link

wls Files picking up the end comment symbol #611

Open JRWest2000 opened 2 years ago

JRWest2000 commented 2 years ago

wls files use ( ~~~~ ) symbols to mark comments. The // TODO & // FIXME can only be used inside comments. when you view the TODOs in the side panel the ending *) is added to the message.

for example ( // TODO change this ) displays as TODO change this *)

Gruntfuggly commented 2 years ago

The extension uses this module for matching and removing comment characters: https://www.npmjs.com/package/comment-patterns

It doesn't look like it supports 'wls' files. Can you point me at a definition of the comments for 'wls' and I'll see if I can find a workaround?

JRWest2000 commented 2 years ago

It is the Wolfram/Mathematica language with one official VS Code extinction and many third party Extensions. The Definition of a comment is very simple it starts with a bracket followed by an Astrik and ends with a Astrik followed by a bracket with anything in between including any kind of special character or linefeeds. That is the standard right and left Parentheses ‘()’. So a comment is anything between ( and ) with absolutely no restrictions on the content of the comment. This means a comment will continue all the way to the bottom of the document unless it is explicitly ended with an asterisk and a closing bracket. Note that this means that comments can include comments as long as they have both a start and end symbol