diff options
| author | Lewis Russell <lewis6991@gmail.com> | 2023-08-07 13:42:24 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-08-07 13:42:24 +0100 |
| commit | d9be302f7499c203ab274bc2b37f11150a2f8834 (patch) | |
| tree | c4a864913a8da54fdb4e7f0aaf40fb88ed7b7a27 /queries/bash | |
| parent | Update parsers: wing (diff) | |
| download | nvim-treesitter-d9be302f7499c203ab274bc2b37f11150a2f8834.tar nvim-treesitter-d9be302f7499c203ab274bc2b37f11150a2f8834.tar.gz nvim-treesitter-d9be302f7499c203ab274bc2b37f11150a2f8834.tar.bz2 nvim-treesitter-d9be302f7499c203ab274bc2b37f11150a2f8834.tar.lz nvim-treesitter-d9be302f7499c203ab274bc2b37f11150a2f8834.tar.xz nvim-treesitter-d9be302f7499c203ab274bc2b37f11150a2f8834.tar.zst nvim-treesitter-d9be302f7499c203ab274bc2b37f11150a2f8834.zip | |
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.
Diffstat (limited to 'queries/bash')
| -rw-r--r-- | queries/bash/highlights.scm | 5 |
1 files changed, 4 insertions, 1 deletions
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) |
