616605dd8dfd

Initial commit
[view raw] [browse files]
author Steve Losh <steve@stevelosh.com>
date Fri, 22 Jan 2016 10:31:03 +0000
parents
children 088c3aaa6776
branches/tags (none)
files README.markdown ftplugin/gdl.vim syntax/gdl.vim

Changes

--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/README.markdown	Fri Jan 22 10:31:03 2016 +0000
@@ -0,0 +1,6 @@
+vim-gdl
+=======
+
+Vim support for GDL (Game Description Language).
+
+Based on [this syntax file](https://gist.github.com/muupan/6481900).
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/ftplugin/gdl.vim	Fri Jan 22 10:31:03 2016 +0000
@@ -0,0 +1,2 @@
+setlocal foldmethod=marker foldmarker={{{,}}}
+setlocal lisp iskeyword+=?
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/syntax/gdl.vim	Fri Jan 22 10:31:03 2016 +0000
@@ -0,0 +1,22 @@
+" Originally from https://gist.github.com/muupan/6481900
+"
+" A syntax file for Game Description Language (GDL) in Knowledge
+" Interchange Format (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 '?\k\+'
+
+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