Sublime Forum

Sublime Linter for custom syntax

#1

Hello, how to set SublimeLinter-lua to custom syntax (e.g. Lua (MTASA))? Linter works when selected native syntax “Lua”, but not work on my syntax “Lua (MTASA)”. Thank.

0 Likes

#2

Add it to your \Sublime Text 3\Packages\User\SublimeLinter.sublime-settings in the syntax_map field:

"syntax_map": { "html (django)": "html", "html (rails)": "html", "html 5": "html", "php": "html", "python django": "python", "pythonimproved": "python" },

0 Likes

#3

[quote=“bizoo”]Add it to your \Sublime Text 3\Packages\User\SublimeLinter.sublime-settings in the syntax_map field:

"syntax_map": { "html (django)": "html", "html (rails)": "html", "html 5": "html", "php": "html", "python django": "python", "pythonimproved": "python" },[/quote]

I tried it before, not work

0 Likes

#4

As it works for me for PythonImproved, I recommend to try it again.
Look like every entry are lowercase, but not sure it’s mandatory.

0 Likes

#5

Ou, i inscribe to syntax_map name of syntax from

<key>name</key> <string>Lua (MTASA)</string>
but required filename.
Thank anyway.

0 Likes