----- CUT FROM HERE ----- >>
if ( /^ ( (?: [^;\s] | (?<= #\) ; | \s++ (?! ;) )* )? ( \s* ; .* )? $/x )
----- STOP THERE -------- <<
# Comparison
* TextMate (ouch!):
* ViM:
TextMate doesn't use grammars for syntax highlighting.
Bundles->Bundle Editor->Show Bundle Editor and have a look at "L Perl".
And then read this: http://stackoverflow.com/questions/1732348/regex-match-open-tags-except-xhtm...
Cheers, Dave -- Email: david.w.h.chin AT gmail.com http://www.wfu.edu/~chindw/Work
On 6 Jun 2010, at 11:07, Bastien Dejean wrote:
[...] # Comparison
- TextMate (ouch!):
The problem is that we do not treat / itself to start regexps because it does not unambiguously start a regexp (it could be division).
So we need a heuristic — Ruby has the same problem and we have refined its heuristic at least a dozen times, yet there are still cases it can’t handle. Perl hasn’t seen that much love though.
Le 7 juin 2010 à 11:13, Allan Odgaard a écrit :
On 6 Jun 2010, at 11:07, Bastien Dejean wrote:
[...] # Comparison
- TextMate (ouch!):
The problem is that we do not treat / itself to start regexps because it does not unambiguously start a regexp (it could be division).
Non-deterministic grammars, anyone? :-P
So we need a heuristic — Ruby has the same problem and we have refined its heuristic at least a dozen times, yet there are still cases it can’t handle. Perl hasn’t seen that much love though.
textmate mailing list textmate@lists.macromates.com http://lists.macromates.com/listinfo/textmate
Édouard GILBERT edouard.gilbert@gmail.com