mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-01 19:17:02 -04:00
queries/*/highlights.scm : remove @spell for strings
This commit is contained in:
parent
d9be302f74
commit
d9e75a1736
20 changed files with 20 additions and 26 deletions
|
|
@ -96,7 +96,7 @@
|
|||
"raise"
|
||||
] @exception
|
||||
(comment) @comment @spell
|
||||
(string_literal) @string @spell
|
||||
(string_literal) @string
|
||||
(character_literal) @string
|
||||
(numeric_literal) @number
|
||||
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@
|
|||
(amount_tolerance) @number
|
||||
(currency) @property
|
||||
(key) @label
|
||||
(string) @string @spell
|
||||
(string) @string
|
||||
(narration) @string @spell
|
||||
(payee) @string @spell
|
||||
(tag) @constant
|
||||
|
|
|
|||
|
|
@ -18,7 +18,7 @@
|
|||
(#set! "priority" 105) ; Higher priority to mark the whole sexpr as a comment
|
||||
)
|
||||
(kwd_lit) @symbol
|
||||
(str_lit) @string @spell
|
||||
(str_lit) @string
|
||||
(num_lit) @number
|
||||
(char_lit) @character
|
||||
(bool_lit) @boolean
|
||||
|
|
|
|||
|
|
@ -60,7 +60,7 @@
|
|||
package: (_) @namespace)
|
||||
"cl" @namespace
|
||||
|
||||
(str_lit) @string @spell
|
||||
(str_lit) @string
|
||||
|
||||
(num_lit) @number
|
||||
|
||||
|
|
|
|||
|
|
@ -194,7 +194,7 @@
|
|||
((string_fragment) @preproc
|
||||
(#eq? @preproc "use strict"))
|
||||
|
||||
(string) @string @spell
|
||||
(string) @string
|
||||
(template_string) @string
|
||||
(escape_sequence) @string.escape
|
||||
(regex_pattern) @string.regex
|
||||
|
|
|
|||
|
|
@ -32,7 +32,7 @@
|
|||
(comment) @comment @spell
|
||||
|
||||
; Strings
|
||||
(string) @string @spell
|
||||
(string) @string
|
||||
|
||||
; Modules
|
||||
(alias) @type
|
||||
|
|
|
|||
|
|
@ -23,7 +23,7 @@
|
|||
(boolean) @boolean
|
||||
(number) @number
|
||||
|
||||
(string) @string @spell
|
||||
(string) @string
|
||||
(escape_sequence) @string.escape
|
||||
|
||||
(symbol) @variable
|
||||
|
|
|
|||
|
|
@ -76,8 +76,8 @@
|
|||
(target_type (name)) @type
|
||||
|
||||
; Strings
|
||||
(string) @string @spell
|
||||
(multiline_string) @string @spell
|
||||
(string) @string
|
||||
(multiline_string) @string
|
||||
|
||||
; Constants
|
||||
(strength_value) @constant
|
||||
|
|
|
|||
|
|
@ -197,7 +197,7 @@
|
|||
; Literals
|
||||
|
||||
(interpreted_string_literal) @string
|
||||
(raw_string_literal) @string @spell
|
||||
(raw_string_literal) @string
|
||||
(rune_literal) @string
|
||||
(escape_sequence) @string.escape
|
||||
|
||||
|
|
|
|||
|
|
@ -156,6 +156,5 @@
|
|||
;; ----------------------------------------------------------------------------
|
||||
;; Spell checking
|
||||
|
||||
(string) @spell
|
||||
(comment) @spell
|
||||
|
||||
|
|
|
|||
|
|
@ -1,10 +1,10 @@
|
|||
;; >> Literals
|
||||
|
||||
(kwd_lit) @symbol
|
||||
(str_lit) @string @spell
|
||||
(long_str_lit) @string @spell
|
||||
(buf_lit) @string @spell
|
||||
(long_buf_lit) @string @spell
|
||||
(str_lit) @string
|
||||
(long_str_lit) @string
|
||||
(buf_lit) @string
|
||||
(long_buf_lit) @string
|
||||
(num_lit) @number
|
||||
(bool_lit) @boolean
|
||||
(nil_lit) @constant.builtin
|
||||
|
|
|
|||
|
|
@ -12,8 +12,6 @@
|
|||
|
||||
(array (string) @string)
|
||||
|
||||
(string_content) @spell
|
||||
|
||||
(ERROR) @error
|
||||
|
||||
["," ":"] @punctuation.delimiter
|
||||
|
|
|
|||
|
|
@ -241,7 +241,7 @@
|
|||
|
||||
(number) @number
|
||||
|
||||
(string) @string @spell
|
||||
(string) @string
|
||||
|
||||
;; Error
|
||||
(ERROR) @error
|
||||
|
|
|
|||
|
|
@ -198,7 +198,7 @@
|
|||
|
||||
(number) @number
|
||||
|
||||
(string) @string @spell
|
||||
(string) @string
|
||||
|
||||
(nil) @constant.builtin
|
||||
|
||||
|
|
|
|||
|
|
@ -135,7 +135,7 @@
|
|||
(heredoc_body)
|
||||
(nowdoc_body)
|
||||
(shell_command_expression) ; backtick operator: `ls -la`
|
||||
] @string @spell
|
||||
] @string
|
||||
(escape_sequence) @string.escape
|
||||
|
||||
(boolean) @boolean
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@
|
|||
|
||||
(operator) @operator
|
||||
|
||||
(string) @string @spell
|
||||
(string) @string
|
||||
|
||||
(file) @string
|
||||
|
||||
|
|
|
|||
|
|
@ -20,7 +20,6 @@
|
|||
[(string)
|
||||
(here_string)
|
||||
(byte_string)] @string
|
||||
(string) @spell
|
||||
|
||||
(escape_sequence) @string.escape
|
||||
|
||||
|
|
|
|||
|
|
@ -192,8 +192,6 @@
|
|||
(comment)+ @comment.documentation
|
||||
(method))
|
||||
|
||||
(string_content) @spell
|
||||
|
||||
; Operators
|
||||
|
||||
[
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@
|
|||
(number) @number
|
||||
(character) @character
|
||||
(boolean) @boolean
|
||||
(string) @string @spell
|
||||
(string) @string
|
||||
[(comment)
|
||||
(block_comment)] @comment @spell
|
||||
|
||||
|
|
|
|||
|
|
@ -177,7 +177,7 @@
|
|||
[
|
||||
(double_quoted_string)
|
||||
(string_literal)
|
||||
] @string @spell
|
||||
] @string
|
||||
|
||||
[
|
||||
(default_nettype_compiler_directive)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue