mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-08 22:40:12 -04:00
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.
This commit is contained in:
parent
2051c8603d
commit
d9be302f74
2 changed files with 8 additions and 1 deletions
|
|
@ -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)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue