[TxMt] JsDoc comments folding + Keyword highlight

wodory wodory at nhn.com
Tue May 11 04:27:07 UTC 2010


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.  

 
-- 
View this message in context: http://old.nabble.com/JsDoc-comments-folding-%2B-Keyword-highlight-tp28519451p28519451.html
Sent from the textmate users mailing list archive at Nabble.com.




More information about the textmate mailing list