Skip to content

Commit

Permalink
Modify linter to work with SL4 (#36)
Browse files Browse the repository at this point in the history
Minor edit to make linter.py work with SublimeLinter4. Also removed unused SublimeLinter.lint.util load.
  • Loading branch information
TBody authored and 315234 committed Apr 27, 2018
1 parent dff10cc commit dcf4f24
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion linter.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
import sublime, os, sys
try:
sys.path.append(os.path.join(sublime.packages_path(), 'SublimeLinter'))
from SublimeLinter.lint import Linter, util
from SublimeLinter.lint import Linter
sys.path.remove(os.path.join(sublime.packages_path(), 'SublimeLinter'))
except (ImportError):
print("SublimeFortran: Failed to load SublimeLinter")
Expand All @@ -33,6 +33,7 @@ class GfortranFixedForm(Linter):
r'(?:(?P<error>Error|Fatal\sError)|(?P<warning>Warning)): (?P<message>.*$)'
)
tempfile_suffix = "f"
on_stderr = True

class GfortranModern(Linter):
"""Provides an interface to gfortran."""
Expand All @@ -52,3 +53,4 @@ class GfortranModern(Linter):
r'(?:(?P<error>Error|Fatal\sError)|(?P<warning>Warning)): (?P<message>.*$)'
)
tempfile_suffix = "f90"
on_stderr = True

0 comments on commit dcf4f24

Please sign in to comment.