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'
pull/8002/merge
Jaakko Paju 10 months ago committed by GitHub
parent 52a43bcdfc
commit 9ed3dc52e0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -1393,7 +1393,7 @@ language-servers = [ "metals" ]
[[grammar]] [[grammar]]
name = "scala" 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]] [[language]]
name = "dockerfile" name = "dockerfile"

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

@ -51,8 +51,8 @@
; Comment queries ; Comment queries
(comment) @comment.inside [(comment) (block_comment)] @comment.inside
(comment) @comment.around ; Does not match consecutive block comments [(comment) (block_comment)] @comment.around ; Does not match consecutive block comments
; Test queries ; Test queries

Loading…
Cancel
Save