| Conditions | 1 |
| Paths | 1 |
| Total Lines | 11 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 29 | public function setupRules() |
||
| 30 | { |
||
| 31 | $this->rules->addMany([ |
||
| 32 | 'comment' => new Rule(new CommentMatcher([';'], [])), |
||
| 33 | 'symbol.section' => new Rule(new RegexMatcher('/(\[[\.\w]+\])/i')), |
||
| 34 | 'variable' => new Rule(new RegexMatcher('/([\.\w]+)\s*=/i')), |
||
| 35 | 'number' => new Rule(new RegexMatcher('/(-?\d+)/i')), |
||
| 36 | |||
| 37 | 'string' => new Rule(new RegexMatcher('/=\h*(.*)/i')), |
||
| 38 | ]); |
||
| 39 | } |
||
| 40 | |||
| 47 |