Update Scala tree-sitter grammar (#9348)
* Update Scala tree-sitter grammar * Support block comments Modify comment handling in textobjects and highlights to support new TS-scala node type 'block_comment'
This commit is contained in:
parent
52a43bcdfc
commit
9ed3dc52e0
3 changed files with 4 additions and 4 deletions
|
@ -1393,7 +1393,7 @@ language-servers = [ "metals" ]
|
|||
|
||||
[[grammar]]
|
||||
name = "scala"
|
||||
source = { git = "https://github.com/tree-sitter/tree-sitter-scala", rev = "23d21310fe4ab4b3273e7a6810e781224a3e7fe1" }
|
||||
source = { git = "https://github.com/tree-sitter/tree-sitter-scala", rev = "7891815f42dca9ed6aeb464c2edc39d479ab965c" }
|
||||
|
||||
[[language]]
|
||||
name = "dockerfile"
|
||||
|
|
|
@ -263,7 +263,7 @@
|
|||
|
||||
"return" @keyword.control.return
|
||||
|
||||
(comment) @comment
|
||||
[(comment) (block_comment)] @comment
|
||||
|
||||
;; `case` is a conditional keyword in case_block
|
||||
|
||||
|
|
|
@ -51,8 +51,8 @@
|
|||
|
||||
; Comment queries
|
||||
|
||||
(comment) @comment.inside
|
||||
(comment) @comment.around ; Does not match consecutive block comments
|
||||
[(comment) (block_comment)] @comment.inside
|
||||
[(comment) (block_comment)] @comment.around ; Does not match consecutive block comments
|
||||
|
||||
|
||||
; Test queries
|
||||
|
|
Loading…
Add table
Reference in a new issue