We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 0887237 + 0d1d55f commit 86d8e70Copy full SHA for 86d8e70
1 file changed
linter.py
@@ -20,7 +20,9 @@
20
class PHP(Linter):
21
"""Provides an interface to php -l."""
22
23
- syntax = ('php', 'html')
+ defaults = {
24
+ 'selector': 'source.php, text.html.basic'
25
+ }
26
regex = (
27
r'^(?:Parse|Fatal) (?P<error>error):(\s*(?P<type>parse|syntax) error,?)?\s*'
28
r'(?P<message>(?:unexpected \'(?P<near>[^\']+)\')?.*) (?:in - )?on line (?P<line>\d+)'
0 commit comments