Skip to content

Commit

Permalink
there are no custom syntax files anymore
Browse files Browse the repository at this point in the history
removed in d98ea8c
  • Loading branch information
braver authored and groteworld committed Oct 2, 2017
1 parent 937b018 commit 54c0de8
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions docs/usage.rst
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,6 @@ Color scheme
SublimeLinter has to convert color schemes for its use. For more information, see :ref:`Choosing color schemes <choosing-color-schemes>`.


Customized syntax definitions
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|sl| supports linting of embedded syntaxes, such as JavaScript and CSS within an HTML file, by specifying a scope to which the linter is limited. Unfortunately the stock syntax definitions that ship with |st| incorrectly classify the scope of embedded languages, which leads to false errors during linting. To solve this problem, at load time |sl| installs fixed versions of the ``HTML`` and ``HTML (Rails)`` syntax packages in the :file:`Packages` directory.

.. note::

The first time the fixed syntaxes are installed, you may need to restart |st| for them to be applied to source files in those syntaxes.

Assigning linters
-----------------
When a file is opened in |st|, |sl| checks the syntax assigned to the file (Python, JavaScript, etc.), and then uses that name (lowercased) to locate any linters (there may be several) that have advertised they can lint that syntax. Any found linters are assigned to that *view* of the file. |sl| assigns separate linter instances to each view, even if there are multiple views of the same file.
Expand Down

0 comments on commit 54c0de8

Please sign in to comment.