Skip to content

Commit

Permalink
Merge pull request #1 from ssahara/greediness-fix
Browse files Browse the repository at this point in the history
make regex pattern non-greedy
  • Loading branch information
Matthias Schulte committed Feb 9, 2014
2 parents c273ff0 + 90a81a4 commit 54559dd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion syntax.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ function getPType(){ return 'normal'; }
function getSort(){ return 990; }

function connectTo($mode) {
$this->Lexer->addSpecialPattern('~~HIDEPAGE.*~~', $mode, 'plugin_hidepages');
$this->Lexer->addSpecialPattern('~~HIDEPAGE.*?~~', $mode, 'plugin_hidepages');
}

function handle($match, $state, $pos, &$handler){
Expand Down

0 comments on commit 54559dd

Please sign in to comment.