| Conditions | 1 |
| Paths | 1 |
| Total Lines | 11 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 3 | ||
| Bugs | 1 | Features | 0 |
| 1 | <?php |
||
| 26 | public function setupRules() |
||
| 27 | { |
||
| 28 | parent::setupRules(); |
||
| 29 | |||
| 30 | $this->rules->remove('symbol.selector.tag'); |
||
| 31 | $this->rules->add('symbol.selector.tag', new Rule(new RegexMatcher('/(?>[\s{};]|^)(?=(\w+)[^;}]*\{)/m'), [ |
||
| 32 | 'context' => ['!symbol', '!string', '!number'] |
||
| 33 | ])); |
||
| 34 | |||
| 35 | $this->rules->add('variable', new Rule(new RegexMatcher('/(\$[\w-]+)/'), ['context' => $this->everywhere()])); |
||
| 36 | } |
||
| 37 | |||
| 52 |