@@ 13-16 (lines=4) @@ | ||
10 | } |
|
11 | ||
12 | private function singleLineComments($str) { |
|
13 | if ($str->identifyChar() == Tokenizer::DIVIDE && $str->identifyChar(1) == Tokenizer::DIVIDE) { |
|
14 | $pos = $str->pos("\n"); |
|
15 | $str->move($pos !== false ? $pos : false); |
|
16 | } |
|
17 | } |
|
18 | ||
19 | public function multiLinecomments($str) { |
|
@@ 20-23 (lines=4) @@ | ||
17 | } |
|
18 | ||
19 | public function multiLinecomments($str) { |
|
20 | if ($str->identifyChar() == Tokenizer::DIVIDE && $str->identifyChar(1) == Tokenizer::MULTIPLY) { |
|
21 | $pos = $str->pos('*/'); |
|
22 | $str->move($pos !== false ? $pos+2 : false); |
|
23 | } |
|
24 | } |
|
25 | } |