Skip to content

Commit

Permalink
vim plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
imeckler committed Sep 16, 2014
1 parent 470d83d commit 4080938
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 0 deletions.
1 change: 1 addition & 0 deletions vim/ftdetect/proof.vim
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
autocmd BufNewFile,BufReadPost *.proof set filetype=proof
2 changes: 2 additions & 0 deletions vim/ftplugin/proof.vim
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
setlocal foldmethod=indent
setlocal foldignore=
24 changes: 24 additions & 0 deletions vim/syntax/proof.vim
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
" Vim syntax file
" Language: Structured Proof Markup Language
" Maintainer: Izaak Meckler

if exists("b:current_syntax")
finish
end

" proof is case sensitive
syn case match

" Keywords
syn keyword proofKeywords theorem definition claim cases let take assume prove macros comment because suppose then
syn match proofKeywords /such that/

syn include @LATEX syntax/tex.vim
syn region proofTexBlock start="\v\[\|" end="\v\|\]" keepend contains=@LATEX
" syn region proofTexBlock start="begintex" end="endtex" keepend contains=@LATEX

let b:current_syntax = "proof"

hi def link proofKeywords Constant


0 comments on commit 4080938

Please sign in to comment.