Hello. I was looking for some help from some RE experts.
We have a lot (as in hundreds of files) of javascript code that uses the following declaration format:
function MyJScriptFunction() {
}
Because the "function" keyword and the function name are not on the same line, the Javascript parser cannot populate the function list with functions declared like this.
Is there a way to tweak the Javascript bundle so that it recognizes functions declared as described above?
---------------------------- B.C.
On 16. Jan 2007, at 03:22, Jacob Rus wrote:
bcheninfo wrote:
Is there a way to tweak the Javascript bundle so that it recognizes functions declared as described above?
Not in the current version of TextMate. I believe allan will figure out a way for TM 2.0 though.
I am not too optimistic -- there will be the look ahead requisite system, but using it to match function declarations over multiple lines is likely not straight forward, it is only for fixed constructs that span multiple lines (e.g. setext style headings).
Though with JS there is the function keyword, so the function matching rule could maybe be changed to using begin/end.