mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-09 23:10:11 -04:00
Add tree-sitter parser and queries for the Concerto Modelling Language (.cto files) by the Accord Project. Concerto is a schema language for defining data models used in smart legal contracts and business networks. Queries: - highlights.scm — full syntax highlighting - folds.scm — code folding for declaration bodies and block comments - locals.scm — scope, definition, and reference tracking - indents.scm — auto-indentation for declaration bodies Grammar source: https://github.com/accordproject/concerto-tree-sitter Language spec: https://concerto.accordproject.org Note: Neovim does not yet detect .cto files natively. Users need to add: vim.filetype.add({ extension = { cto = 'concerto' } })
14 lines
259 B
Scheme
14 lines
259 B
Scheme
; Concerto Language - Fold Queries
|
|
; =================================
|
|
; Fold declaration bodies
|
|
(class_body) @fold
|
|
|
|
(enum_body) @fold
|
|
|
|
(map_body) @fold
|
|
|
|
; Fold block comments
|
|
(block_comment) @fold
|
|
|
|
; Fold decorator argument lists
|
|
(decorator_arguments) @fold
|