mirror of
https://github.com/neovim/neovim.git
synced 2024-12-24 21:25:04 -07:00
136c11ca22
Problem: filetype: antlr4 files are not recognized
Solution: Detect '*.g4' as antlr4 filetype, include a simple antlr4
syntax and filetype plugin (Yinzuo Jiang)
closes: vim/vim#15191
4a7a4a3675
Co-authored-by: Yinzuo Jiang <jiangyinzuo@foxmail.com>
15 lines
381 B
VimL
15 lines
381 B
VimL
" Vim filetype plugin
|
|
" Language: ANTLR4, ANother Tool for Language Recognition v4 <www.antlr.org>
|
|
" Maintainer: Yinzuo Jiang <jiangyinzuo@foxmail.com>
|
|
" Last Change: 2024 July 09
|
|
|
|
if exists('b:did_ftplugin')
|
|
finish
|
|
endif
|
|
let b:did_ftplugin = 1
|
|
|
|
setlocal comments=sO:*\ -,mO:*\ \ ,exO:*/,s1:/*,mb:*,ex:*/,://
|
|
setlocal commentstring=//\ %s
|
|
|
|
let b:undo_ftplugin = 'setl com< cms<'
|