Permalink
Browse files

fixed regex

darcs-hash:20090206190734-23886-d2dad20afbe73c6dce260c34ec167d44c968e0cf.gz
  • Loading branch information...
Michael Klier
Michael Klier committed Feb 6, 2009
1 parent 7d064aa commit 52986720be61f1387ae8cd4edbba2ddbcbb74ded
Showing with 2 additions and 3 deletions.
  1. +2 −3 syntax.php
@@ -36,11 +36,10 @@ function getType(){ return 'substition'; }
function getSort(){ return 321; }
function connectTo($mode) {
$this->Lexer->addSpecialPattern("/\*.*?\*/", $mode, 'plugin_comment');
$this->Lexer->addSpecialPattern("//.*?$", $mode, 'plugin_comment');
$this->Lexer->addSpecialPattern("^/\*.*?\*|\s+/\*.*?\*/", $mode, 'plugin_comment');
}
function handle($match, $state, $pos, &$handler){ return ''; }
function render($mode, &$renderer, $data) { return true; }
}
// vim:ts=4:sw=4:et:enc=-utf-8:
// vim:ts=4:sw=4:et:enc=utf-8:

1 comment on commit 5298672

@dwagelaar

This comment has been minimized.

dwagelaar commented on 5298672 Apr 9, 2010

Hmm, this change breaks comment replacement for me... What exactly was fixed here?
N.B. reverting to the old code fixed my problem.

Please sign in to comment.