]> git.sthu.org Git - vimconf.git/commitdiff
syntax: Add easychair2 syntax definition
authorStefan Huber <stefan.huber@fh-salzburg.ac.at>
Mon, 8 Jan 2024 13:51:23 +0000 (14:51 +0100)
committerStefan Huber <stefan.huber@fh-salzburg.ac.at>
Mon, 8 Jan 2024 13:51:23 +0000 (14:51 +0100)
ftdetect/easychair2.vim [new file with mode: 0644]
syntax/easychair2.vim [new file with mode: 0644]

diff --git a/ftdetect/easychair2.vim b/ftdetect/easychair2.vim
new file mode 100644 (file)
index 0000000..3dc8be2
--- /dev/null
@@ -0,0 +1 @@
+au BufRead,BufNewFile *-review-[0-9]\+r[0-9]\+.txt set filetype=easychair2
diff --git a/syntax/easychair2.vim b/syntax/easychair2.vim
new file mode 100644 (file)
index 0000000..280c5b9
--- /dev/null
@@ -0,0 +1,29 @@
+" Vim syntax file
+" Language:         Easychair conference system review form
+" Maintainer:       Stefan Huber
+"
+"
+" Changelog:
+"   2010-12-12: Initial version
+"   2024-01-08: Update to new syntax
+
+" Quit when a syntax file was already loaded
+if version < 600
+  syntax clear
+elseif exists("b:current_syntax")
+  finish
+endif
+
+runtime! syntax/tex.vim
+
+unlet! b:current_syntax
+
+syn region ec2Section start="==\*==" end="$"
+syn region ec2Subsection start="==+==" end="$"
+syn region ec2Comment start="==-==" end="$"
+
+hi def link ec2Comment Comment
+hi def link ec2Section Directory
+hi def link ec2Subsection Directory
+
+let b:current_syntax = "easychair2"