diff --git a/guides/adding_languages.html b/guides/adding_languages.html index 4ca9433ea..cb5a338af 100644 --- a/guides/adding_languages.html +++ b/guides/adding_languages.html @@ -169,7 +169,17 @@ directory.

configLanguage server configuration

Queries

-

For a language to have syntax-highlighting and indentation among other things, you have to add queries. Add a directory for your language with the path runtime/queries/<name>/. The tree-sitter website gives more info on how to write queries.

+

For a language to have syntax-highlighting and indentation among +other things, you have to add queries. Add a directory for your +language with the path runtime/queries/<name>/. The tree-sitter +website +gives more info on how to write queries.

+
+

NOTE: When evaluating queries, the first matching query takes +precedence, which is different from other editors like neovim where +the last matching query supercedes the ones before it. See +this issue for an example.

+

Common Issues