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:
10
doc/edit/vim/ftdetect/klammertext.vim
Normal file
10
doc/edit/vim/ftdetect/klammertext.vim
Normal 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
|
||||
Reference in New Issue
Block a user