Created
September 28, 2013 18:44
-
-
Save 5nizza/6745113 to your computer and use it in GitHub Desktop.
Slightly modified version of Roberto Vigo's smt2 syntax file for vim.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
" 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