Editor support generalized: shared core, language server, Vim and VS Code (from dev eb5baf9cbe59)

doc/edit/ now holds a shared Python implementation of the language's
structural layer (klammertext_edit.py) and a dependency-free language
server (klammertext_ls.py), with integrations for Emacs, Sublime Text,
Vim, and Visual Studio Code.  The editor test suite in tst/ covers the
core's API and CLI, the language server protocol, the VS Code
extension, headless Vim, and Emacs byte-equality.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
2026-07-27 15:01:49 +02:00
parent 73ed7f3d5d
commit f855c5ccae
27 changed files with 3918 additions and 1170 deletions

View File

@@ -0,0 +1,10 @@
" Klammertext filetype detection (.kt source files, .k klammer definitions).
"
" NOTE: .kt is also Kotlin's extension, and recent Vim/Neovim runtimes map
" *.kt to the kotlin filetype. This file overrides that unconditionally
" (`set filetype=`, not `setfiletype`, so it wins over the runtime's
" earlier detection). If you edit both Kotlin and Klammertext, replace the
" *.kt line with a content heuristic of your choice, or drop it and set the
" filetype per file with a modeline (# vim: ft=klammertext) or :set.
au BufRead,BufNewFile *.kt set filetype=klammertext
au BufRead,BufNewFile *.k set filetype=klammertext