0
0
mirror of https://github.com/vim/vim.git synced 2025-07-04 23:07:33 -04:00
vim/runtime/syntax/confini.vim
zeertzjq 9c9200d1ea
patch 9.1.1359: filetype: GNU Radio config files are not recognized
Problem:  filetype: GNU Radio config files are not recognized.
Solution: detect GNU Radio config files as confini filetype.  Only
          allow '#' as start of comment in confini syntax (zeertzjq).

Ref:
- https://wiki.gnuradio.org/index.php/Configuration_Files

closes: #17242

Signed-off-by: zeertzjq <zeertzjq@outlook.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
2025-05-02 15:32:23 +02:00

19 lines
418 B
VimL

" Vim syntax file
" Language: confini
" Last Change:
" 2025 May 02 by Vim project commented line starts with # only
" Quit if a syntax file was already loaded
if exists("b:current_syntax")
finish
endif
" Use the cfg syntax for now, it's similar.
runtime! syntax/cfg.vim
" Only accept '#' as the start of a comment.
syn clear CfgComment
syn match CfgComment "#.*" contains=@Spell
let b:current_syntax = 'confini'