aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Clason <c.clason@uni-graz.at>2024-07-08 10:48:01 +0200
committerChristian Clason <c.clason@uni-graz.at>2024-07-08 12:14:44 +0200
commit3b4481d3a575ace2ef78a6e95a1b1491e58e452c (patch)
treeab0c10759fd1b879f81b42ebce4bb55a08834f60
parentf7274fde0682f9cc7e74abf2fae189f678be4df9 (diff)
downloadrneovim-3b4481d3a575ace2ef78a6e95a1b1491e58e452c.tar.gz
rneovim-3b4481d3a575ace2ef78a6e95a1b1491e58e452c.tar.bz2
rneovim-3b4481d3a575ace2ef78a6e95a1b1491e58e452c.zip
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 <ribru17@hotmail.com>
-rw-r--r--runtime/ftplugin/lex.vim14
1 files changed, 14 insertions, 0 deletions
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 <ribru17@gmail.com>
+" 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<'