mirror of
https://github.com/helix-editor/helix.git
synced 2024-11-25 02:46:17 +04:00
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
@ -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…
Reference in New Issue
Block a user