From fde890df65026232365def91e66ffcd82286c392 Mon Sep 17 00:00:00 2001 From: Gabriel Dinner-David Date: Sat, 27 May 2023 12:10:01 -0400 Subject: [PATCH 1/2] docs: specify that language-server table must be put before any arrays of tables --- book/src/languages.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/book/src/languages.md b/book/src/languages.md index c334186b5078..e0e099f5807e 100644 --- a/book/src/languages.md +++ b/book/src/languages.md @@ -99,6 +99,9 @@ with the following priorities: Language servers are configured separately in the table `language-server` in the same file as the languages `languages.toml` +> 💡 Due to limitations of toml anything in the ``language-server`` table must +> be specified before the ``[[language]]`` and ``[[grammar]]`` arrays of tables. + For example: ```toml From 6e00af0b70e8fdf2fe92a5b317a30198db68555d Mon Sep 17 00:00:00 2001 From: Gabriel Dinner-David <82682503+gabydd@users.noreply.github.com> Date: Sun, 28 May 2023 12:12:33 -0400 Subject: [PATCH 2/2] review comment Co-authored-by: Michael Davis --- book/src/languages.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/book/src/languages.md b/book/src/languages.md index e0e099f5807e..edc326b13b4b 100644 --- a/book/src/languages.md +++ b/book/src/languages.md @@ -99,8 +99,8 @@ with the following priorities: Language servers are configured separately in the table `language-server` in the same file as the languages `languages.toml` -> 💡 Due to limitations of toml anything in the ``language-server`` table must -> be specified before the ``[[language]]`` and ``[[grammar]]`` arrays of tables. +> 💡 Due to limitations of TOML, anything in the `language-server` table must +> be specified before the `[[language]]` and `[[grammar]]` arrays of tables. For example: