mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-17 02:40:09 -04:00
fix(rust): comment marker should not be @operator (#7135)
This commit is contained in:
parent
c436d45eee
commit
6a3c6a42a6
1 changed files with 14 additions and 11 deletions
|
|
@ -214,17 +214,6 @@
|
||||||
(identifier) @function.macro .))
|
(identifier) @function.macro .))
|
||||||
|
|
||||||
; Literals
|
; Literals
|
||||||
[
|
|
||||||
(line_comment)
|
|
||||||
(block_comment)
|
|
||||||
] @comment @spell
|
|
||||||
|
|
||||||
(line_comment
|
|
||||||
(doc_comment)) @comment.documentation
|
|
||||||
|
|
||||||
(block_comment
|
|
||||||
(doc_comment)) @comment.documentation
|
|
||||||
|
|
||||||
(boolean_literal) @boolean
|
(boolean_literal) @boolean
|
||||||
|
|
||||||
(integer_literal) @number
|
(integer_literal) @number
|
||||||
|
|
@ -463,3 +452,17 @@
|
||||||
macro: (identifier) @keyword.debug
|
macro: (identifier) @keyword.debug
|
||||||
"!" @keyword.debug
|
"!" @keyword.debug
|
||||||
(#eq? @keyword.debug "dbg"))
|
(#eq? @keyword.debug "dbg"))
|
||||||
|
|
||||||
|
; Comments
|
||||||
|
[
|
||||||
|
(line_comment)
|
||||||
|
(block_comment)
|
||||||
|
(outer_doc_comment_marker)
|
||||||
|
(inner_doc_comment_marker)
|
||||||
|
] @comment @spell
|
||||||
|
|
||||||
|
(line_comment
|
||||||
|
(doc_comment)) @comment.documentation
|
||||||
|
|
||||||
|
(block_comment
|
||||||
|
(doc_comment)) @comment.documentation
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue