mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-20 20:30:05 -04:00
35 lines
625 B
Scheme
35 lines
625 B
Scheme
; Indentation rules for ObjectScript UDL (nvim-treesitter)
|
|
; --- Class Definition ---
|
|
(class_body
|
|
"{" @indent.begin
|
|
"}" @indent.end)
|
|
|
|
; --- Block-style commands with braces ---
|
|
(command_while
|
|
"{" @indent.begin
|
|
"}" @indent.end)
|
|
|
|
(command_for
|
|
"{" @indent.begin
|
|
"}" @indent.end)
|
|
|
|
(command_if
|
|
"{" @indent.begin
|
|
"}" @indent.end)
|
|
|
|
(elseif_block
|
|
"{" @indent.begin
|
|
"}" @indent.end)
|
|
|
|
(else_block
|
|
"{" @indent.begin
|
|
"}" @indent.end)
|
|
|
|
; --- Generic brace and parenthesis handling ---
|
|
"{" @indent.begin
|
|
|
|
"}" @indent.end
|
|
|
|
("(" @indent.align
|
|
(#set! indent.open_delimiter "(")
|
|
(#set! indent.close_delimiter ")"))
|