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.
On 11 May 2010, at 06:27, wodory wrote:
- Folding JsDoc-Toolkit comment
[…]
Folding is based on indent. Start/stop line must have the same indent, this comes up regularly, but it remains a current limitation.
- Highlight Keywords.
[…] Please give the advice to highlight a string with "$".
Please give an example of what you tried :)
A rule like { match = '$this'; name = 'keyword'; } should work fine.