Dear guys
I have two questions. These looks piecs of cake... however, I cannot solve it. :-(
1. Folding JsDoc-Toolkit comment
As you know, JsDoc-toolkit (and the similar auto-document-generation tools) creates document with the comment as below:
/** * Description of constructor. * @class Description of class. * @constructs */
Sometimes, the comments are too long to review the codes, I REALLY wanna fold them. So I add rules to grammer like that:
foldingStartMarker = '(^.*{[^}]*$|^.*([^)]*$|^.*/*(?!.**/).*$)'; foldingStopMarker = '(^\s*}|^\s*)|^(?!.*/*).**/)';
Unfortunately, it's just working as below:
/** * Description of constructor. * @class Description of class. * @constructs */
Colud you tell me how I can fold the original jsdoc comments with space?
2. Highlight Keywords.
The framework I use has a object, $Class, so I wanna highlight this object as keyword.
However, it's impossible because of "$" even I add this keyword into the grammer file. I use a escape character and Regular express format, it doesnot working.
Please give the advice to highlight a string with "$".
Best regards.