blob: 855119810bf1ffffedb580cc7b46435c24b7dd6a [file] [log] [blame]
Bram Moolenaar071d4272004-06-13 20:20:40 +00001" 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
Bram Moolenaarb6b046b2011-12-30 13:11:27 +01005" Last Change: 2011 Dec 28 by Thilo Six
Bram Moolenaar071d4272004-06-13 20:20:40 +00006
7if exists("b:current_syntax")
8 finish
9endif
10
Bram Moolenaarb6b046b2011-12-30 13:11:27 +010011let s:cpo_save = &cpo
12set cpo&vim
13
Bram Moolenaar071d4272004-06-13 20:20:40 +000014syn case ignore
15
16syn keyword artspform => 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"
Bram Moolenaarb6b046b2011-12-30 13:11:27 +010048
49let &cpo = s:cpo_save
50unlet s:cpo_save