summaryrefslogtreecommitdiffstats
path: root/runtime/ftplugin/lex.vim
diff options
context:
space:
mode:
Diffstat (limited to 'runtime/ftplugin/lex.vim')
-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 0000000..c6c47fe
--- /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<'