From 08530d4a1492ba22580a05ff516e178479c8def7 Mon Sep 17 00:00:00 2001 From: archseer Date: Tue, 21 Dec 2021 02:04:00 +0000 Subject: [PATCH] deploy: 176fbe760a56945089de9f77e06f05f1639ba9be --- guides/adding_languages.html | 12 +++++++++++- print.html | 12 +++++++++++- searchindex.js | 2 +- searchindex.json | 2 +- 4 files changed, 24 insertions(+), 4 deletions(-) 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