42 lines
593 B
Scheme
42 lines
593 B
Scheme
; Indentation rules for SCL
|
|
|
|
; Indent after block keywords
|
|
[
|
|
(organization_block)
|
|
(function_block)
|
|
(var_declaration)
|
|
(if_statement)
|
|
(case_statement)
|
|
(for_statement)
|
|
(while_statement)
|
|
(repeat_statement)
|
|
(region_statement)
|
|
] @indent.begin
|
|
|
|
; Indent after THEN, DO, etc.
|
|
[
|
|
"THEN"
|
|
"DO"
|
|
"ELSE"
|
|
"ELSIF"
|
|
] @indent.branch
|
|
|
|
; Outdent at end keywords
|
|
[
|
|
"END_VAR"
|
|
"END_IF"
|
|
"END_CASE"
|
|
"END_FOR"
|
|
"END_WHILE"
|
|
"END_REPEAT"
|
|
"END_REGION"
|
|
"END_ORGANIZATION_BLOCK"
|
|
"END_FUNCTION_BLOCK"
|
|
] @indent.end
|
|
|
|
; Outdent for ELSE and ELSIF
|
|
[
|
|
"ELSE"
|
|
"ELSIF"
|
|
] @indent.dedent
|