Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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
You can’t perform that action at this time.