mirror of
https://github.com/vim/vim.git
synced 2026-06-12 04:19:06 +02:00
b9bba99712
Problem: filetype: Tolk files are not recognized
Solution: Detect *.tolk files as tolk filetype, include a syntax and
filetype plugin (redavy)
Tolk is a new-generation language for writing smart contracts on TON
blockchain, which is #1 in speed among other chains.
Reference:
https://docs.ton.org/blockchain-basics/tolk/overview
closes: #20320
Signed-off-by: redavy <hello.redavy@proton.me>
Signed-off-by: Christian Brabandt <cb@256bit.org>
23 lines
563 B
VimL
23 lines
563 B
VimL
" Vim filetype plugin file
|
|
" Language: Tolk
|
|
" Maintainer: redavy <hello.redavy@proton.me>
|
|
" Upstream: https://github.com/redavy/vim-tolk
|
|
" Last Update: 24 May 2026
|
|
|
|
if exists("b:did_ftplugin")
|
|
finish
|
|
endif
|
|
let b:did_ftplugin = 1
|
|
|
|
setlocal commentstring=//\ %s
|
|
|
|
if get(g:, 'tolk_recommended_style', get(g:, 'recommended_style', 1))
|
|
setlocal tabstop=2
|
|
setlocal shiftwidth=2
|
|
setlocal expandtab
|
|
setlocal softtabstop=2
|
|
setlocal cindent
|
|
endif
|
|
|
|
let b:undo_ftplugin = "setlocal commentstring< tabstop< shiftwidth< expandtab< softtabstop< cindent<"
|