From 3b4481d3a575ace2ef78a6e95a1b1491e58e452c Mon Sep 17 00:00:00 2001 From: Christian Clason Date: Mon, 8 Jul 2024 10:48:01 +0200 Subject: [PATCH] vim-patch:380f980: runtime(lex): include lex ftplugin file Spec found [here](https://docs.oracle.com/cd/E19504-01/802-5880/lex-6/index.html) closes: vim/vim#15174 https://github.com/vim/vim/commit/380f98002dace3848dacc5178289d55745efc757 Co-authored-by: Riley Bruins --- runtime/ftplugin/lex.vim | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 runtime/ftplugin/lex.vim 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<'