[SVN] r6859 (JavaScript)

Allan Odgaard throw-away-1 at macromates.com
Tue Mar 20 11:51:44 UTC 2007


• change several patterns of the form: [A-Za-z…]+\w* into [A-Za-z…][\w…]* — I am thinking though, that ‘…’ should not be allowed for anything but the first character
• change a pattern of the fork: \w+ \.? \w* into \w+ (\. \w*)?

Both of the above would previously result in potential really bad performance, because two greedy repeats basically matching the same thing, was after each other, and that leads to exponential time complexity in input size.

Changed:
U   trunk/Bundles/JavaScript.tmbundle/Syntaxes/JavaScript.plist



More information about the textmate-dev mailing list