semi-colon highlighting wrong section.
ctf0 opened this issue · comments
What is the console output of of the linter on this file? Most likely the output ends with something like - on line 9
, which is why the linter incorrectly points to that line. That is a problem of the parser in php, not SublimeLinter. In that case, it is intended results, though I understand the frustration of that.
here is the console
SublimeLinter: php: PostController.php ['/usr/local/bin/php', '-l', '-n', '-d', 'display_errors=On', '-d', 'log_errors=Off']
SublimeLinter: php output:
Parse error: syntax error, unexpected 'public' (T_PUBLIC), expecting ',' or ';' in - on line 9
Errors parsing -
yeah i thought that too because the linter of JS is working as expected.
Parse error: syntax error, unexpected 'public' (T_PUBLIC), expecting ',' or ';' in - on line 9
Yeah, as expected, it's a limitation of the php parser not SL.
Thanks!