Skip to content

Instantly share code, notes, and snippets.

@sjl
Forked from muupan/gdl-kif.vim
Created January 22, 2016 10:26
Show Gist options
  • Save sjl/eff7c6f01fb9050434cf to your computer and use it in GitHub Desktop.
Save sjl/eff7c6f01fb9050434cf 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