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