From d9be302f7499c203ab274bc2b37f11150a2f8834 Mon Sep 17 00:00:00 2001 From: Lewis Russell Date: Mon, 7 Aug 2023 13:42:24 +0100 Subject: fix(spell): do not spell check certain types of strings (#5203) - Document that only certain kinds of strings are spell checked, and reasons why they may not. - Remove spell checking for bash strings. --- queries/bash/highlights.scm | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'queries/bash') diff --git a/queries/bash/highlights.scm b/queries/bash/highlights.scm index 23bf03e69..063c2b920 100644 --- a/queries/bash/highlights.scm +++ b/queries/bash/highlights.scm @@ -40,12 +40,15 @@ "!=" ] @operator +; Do *not* spell check strings since they typically have some sort of +; interpolation in them, or, are typically used for things like filenames, URLs, +; flags and file content. [ (string) (raw_string) (ansi_c_string) (heredoc_body) -] @string @spell +] @string (variable_assignment (word) @string) -- cgit v1.2.3-70-g09d2