robin/laufey
git clone https://git.robinwobin.dev/robin/laufey
a98a6996c2
master
1" Vim syntax file 2" Language: ART-IM and ART*Enterprise 3" Maintainer: Dorai Sitaram <ds26@gte.com> 4" URL: http://www.ccs.neu.edu/~dorai/vimplugins/vimplugins.html 5" Last Change: 2011 Dec 28 by Thilo Six 6 7if exists ( "b:current_syntax" ) 8finish 9endif 10 11let s: cpo_save = & cpo 12set cpo & vim 13 14syn case ignore 15 16syn keywordartspform => and assert bind 17syn keyword artspform declare def -art-fun deffacts defglobal defrule defschema do 18syn keyword artspform else for if in $ not or 19syn keyword artspform progn retract salience schema test then while 20 21syn match artvariable "? [ ^ \t";()|&~ ] \+ " 22 23syn match artglobalvar "?\* [ ^ \t";()|&~ ] \+\* " 24 25syn match artinstance "! [ ^ \t";()|&~ ] \+ " 26 27syn match delimiter "[ ()|&~ ] " 28 29syn region string start = /" /skip = /\\ [ \\" ] /end = /" / 30 31syn match number "\< [ -+ ] \=\( [ 0-9 ] \+\(\. [ 0-9 ] * \)\=\|\. [ 0-9 ] \+\)\> " 32 33syn match comment ";. * $ " 34 35syn match comment "#+:\=ignore "nextgroup = artignore skipwhite skipnl 36 37syn region artignore start = "( "end = ") "contained contains = artignore , comment 38 39syn region artignore start = /" /skip = /\\ [ \\" ] /end = /" /contained 40 41hi def link artinstance type 42hi def link artglobalvar preproc 43hi def link artignore comment 44hi def link artspform statement 45hi def link artvariable function 46 47let b: current_syntax = "art" 48 49let & cpo = s: cpo_save 50unlet s: cpo_save