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