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:
Jaakko Paju 2024-01-22 20:51:56 +02:00 committed by GitHub
parent 52a43bcdfc
commit 9ed3dc52e0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 4 additions and 4 deletions

View File

@ -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"

View File

@ -263,7 +263,7 @@
"return" @keyword.control.return
(comment) @comment
[(comment) (block_comment)] @comment
;; `case` is a conditional keyword in case_block

View File

@ -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