Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

try to add syntax for typeclasses #39

Open
wants to merge 1 commit into
base: pathogen-bundle
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion syntax/coq.vim
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ endif
" Coq is case sensitive.
syn case match

syn cluster coqVernac contains=coqRequire,coqCheck,coqEval,coqNotation,coqTacNotation,coqDecl,coqThm,coqLtacDecl,coqDef,coqFix,coqInd,coqRec,coqShow
syn cluster coqVernac contains=coqRequire,coqCheck,coqEval,coqNotation,coqTacNotation,coqDecl,coqThm,coqLtacDecl,coqDef,coqFix,coqInd,coqRec,coqClass,coqShow

" Various
syn match coqError "\S\+"
Expand Down Expand Up @@ -287,6 +287,10 @@ syn region coqRecField contained contains=coqField matchgroup=coqVernacPunctua
syn region coqRecField contained contains=coqField matchgroup=coqVernacPunctuation start=";" end=":"
syn match coqField contained "[_[:alpha:]][_'[:alnum:]]*"

" Type Classes
syn region coqClass contains=coqRecProfile start="\<Class\>" matchgroup=coqVernacPunctuation end="\.\_s" keepend
syn region coqInstance contained contains=@coqTerm,coqRecContent matchgroup=coqVernacPunctuation start="\<Instance\>" end="\.\_s"

" Various (High priority)
syn region coqComment containedin=ALL contains=coqComment,coqTodo start="(\*" end="\*)" extend keepend
syn keyword coqTodo contained TODO FIXME XXX NOTE
Expand Down