Skip to content

Instantly share code, notes, and snippets.

@5nizza
Created September 28, 2013 18:44
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save 5nizza/6745113 to your computer and use it in GitHub Desktop.
Save 5nizza/6745113 to your computer and use it in GitHub Desktop.
Slightly modified version of Roberto Vigo's smt2 syntax file for vim.
" Vim syntax file
" Language: SMT-LIB
" Maintainer: Roberto Vigo
" Latest Revision: 23 Jan 2012
if exists("b:current_syntax")
finish
endif
" Keywords
setlocal iskeyword+=-
setlocal iskeyword+==
setlocal iskeyword+=>
setlocal iskeyword+=:
syn keyword basicLanguageKeywords assert check-sat get-proof get-model declare-sort define-sort declare-const declare-fun set-option forall :pattern exit define-fun get-value declare-datatypes
syn keyword types Bool Int Real
syn keyword bool_const false true
syn keyword operators and or not => = iff distinct > >=
syn match comments ";.*$"
syn match forall_vars "?[a-zA-Z0-9_]*"
let b:current_syntax = "smt-lib"
hi def link basicLanguageKeywords Statement
hi def link comments Comment
hi def link bool_const Boolean
hi def link operators Operator
hi def link types Type
hi def link forall_vars Identifier
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment