| Conditions | 1 |
| Paths | 1 |
| Total Lines | 11 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 2 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 26 | public function getRules() |
||
| 27 | { |
||
| 28 | $rules = parent::getRules(); |
||
| 29 | $rules['symbol.selector.tag'] = new Rule(new RegexMatcher('/(?>[\s{};]|^)(?=(\w+).*\{)/m'), ['context' => Rule::everywhere()]); |
||
| 30 | $rules['symbol.selector.class']->setContext(Rule::everywhere()); |
||
| 31 | $rules['symbol.selector.class.pseudo']->setContext(Rule::everywhere()); |
||
| 32 | $rules['symbol.selector.id']->setContext(Rule::everywhere()); |
||
| 33 | $rules['variable'] = new Rule(new RegexMatcher('/(\$[\w-]+)/'), ['context' => Rule::everywhere()]); |
||
| 34 | $rules['operator.self'] = new Rule(new SubStringMatcher('&'), ['context' => Rule::everywhere()]); |
||
| 35 | return $rules; |
||
| 36 | } |
||
| 37 | |||
| 42 | } |