Open jubianchi opened 10 years ago
To solve some bugs and avoid duplicating rules, I think we should be able to define negation in rules like:
To solve this bug, I think we should be able to define negation in rules like:
$rules[] = array( array('!public', ';'), array('\1', ';', 'mark_line(__LINE__)', ';'), $matching::SHIFT_REPLACEMENT_END );
It would be even better if we could define some kind pattern like:
$rules[] = array( array('!(public|protected|private)', ';'), array('\1', ';', 'mark_line(__LINE__)', ';'), $matching::SHIFT_REPLACEMENT_END );
The negated token will have to behave a bit like the fill symbol so we can replace it easily.
Those kind of rules could then be used to fix the behavior described in #1
Hello :-),
Same as #1.
To solve some bugs and avoid duplicating rules, I think we should be able to define negation in rules like:
To solve this bug, I think we should be able to define negation in rules like:
It would be even better if we could define some kind pattern like:
The negated token will have to behave a bit like the fill symbol so we can replace it easily.
Those kind of rules could then be used to fix the behavior described in #1