diff --git a/runtime/ftplugin/lex.vim b/runtime/ftplugin/lex.vim new file mode 100644 index 0000000000..c6c47fedf0 --- /dev/null +++ b/runtime/ftplugin/lex.vim @@ -0,0 +1,14 @@ +" Vim filetype plugin +" Language: Lex and Flex +" Maintainer: Riley Bruins +" Last Change: 2024 Jul 06 + +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<'