Skip to content

Instantly share code, notes, and snippets.

@muupan
Created September 8, 2013 04:44
  • Star 2 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save muupan/6481900 to your computer and use it in GitHub Desktop.
A sintax file for Game Description Language (GDL) in Knowledge Interchange Format (KIF).
" A sintax file for Game Description Language (GDL) in Knowledge
" Interchange Format (KIF).
"
" Put this file in .vim/syntax/ and and add set filetype gdl-kif
" Example:
" au BufRead,BufNewFile *.kif set filetype=gdl-kif
syntax region gdlKifLineComment start=+;+ end=+$+
syntax match gdlKifArrow '<='
syntax keyword gdlKifFactRelation base init true next
syntax keyword gdlKifActionRelation input legal does
syntax keyword gdlKifRoleRelation role
syntax keyword gdlKifTemporalRelation goal terminal
syntax keyword gdlKifGeneralRelation not or distinct
syntax match gdlKifVariable '?\w\+'
highlight default link gdlKifLineComment Comment
highlight default link gdlKifArrow Operator
highlight default link gdlKifFactRelation Conditional
highlight default link gdlKifActionRelation Repeat
highlight default link gdlKifRoleRelation Keyword
highlight default link gdlKifTemporalRelation Keyword
highlight default link gdlKifGeneralRelation Operator
highlight default link gdlKifVariable Identifier
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment