Yeah, I already saw that but it doesn’t really work at all. “* Create a new file in sublimelinter/modules. If your linter uses an external executable, you will probably want to copy perl.py. If your linter uses built in code, copy objective-j.py. The convention is to name the file the same as the language that will be linted.”
I copied objective-j.py and changed some stuff so it’ll work with HaXe. Surprisingly it works, but the linter lints everything because it doesn’t recognize the HaXe syntax. So I was just basically wondering how I could get that to work; and yes, I’m thinking onto learning Python, but I was wondering if I could wing it and get it to work. This is what I had:
[code]from capp_lint import LintChecker
from base_linter import BaseLinter
CONFIG = {
‘language’: ‘HaXe’
}
class Linter(BaseLinter):
def built_in_check(self, view, code, filename):
checker = LintChecker(view)
checker.lint_text(code, filename)
return checker.errors
def parse_errors(self, view, errors, lines, errorUnderlines, violationUnderlines, warningUnderlines, errorMessages, violationMessages, warningMessages):
for error in errors:
lineno = error'lineNum']
self.add_message(lineno, lines, error'message'], errorMessages if type == LintChecker.ERROR_TYPE_ILLEGAL else warningMessages)
for position in error.get('positions', ]):
self.underline_range(view, lineno, position, errorUnderlines if type == LintChecker.ERROR_TYPE_ILLEGAL else warningUnderlines)
[/code]
I named the file “haxe.py”
If I’m doing anything wrong and someone knows how to implement this into SublimeLinter, please post.