Files
tia-lsp.nvim/queries/scl/indents.scm
T
lazar 8255db7f64 chore: adjust for plugin-only scope after split
After splitting from the original scl_lsp repo, update for plugin-only scope:

- README.md: focused on Neovim plugin installation, configuration,
  commands, keybindings, and editor features
- AGENTS.md: plugin-only project structure and conventions
- test/run_tests.lua: run only plugin tests (udt, db, fb, integration)
- test/test_integration.lua: remove plc_json dependency (server module)
- queries/: move from queries/*.scm to queries/scl/*.scm (nvim-treesitter
  per-language convention)
- ftdetect/scl.vim: add filetype detection for .scl/.udt/.db files
2026-07-18 11:46:18 +02:00

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