2002-05-28 12:37:56 +01:00
|
|
|
" Vim syntax file
|
|
|
|
"
|
|
|
|
" Language: Logtalk
|
2002-09-14 19:14:17 +01:00
|
|
|
" Maintainer: Paulo Moura <pmoura@logtalk.org>
|
2005-08-08 13:13:45 +01:00
|
|
|
" Last Change: June 6, 2005
|
2002-05-28 12:37:56 +01:00
|
|
|
|
|
|
|
|
|
|
|
" Quit when a syntax file was already loaded:
|
|
|
|
|
|
|
|
if version < 600
|
|
|
|
syntax clear
|
|
|
|
elseif exists("b:current_syntax")
|
|
|
|
finish
|
|
|
|
endif
|
|
|
|
|
|
|
|
|
|
|
|
" Logtalk is case sensitive:
|
|
|
|
|
|
|
|
syn case match
|
|
|
|
|
|
|
|
|
2004-02-09 14:18:27 +00:00
|
|
|
" Logtalk variables
|
|
|
|
|
|
|
|
syn match logtalkVariable "\<\(\u\|_\)\(\w\)*\>"
|
|
|
|
|
|
|
|
|
2002-05-28 12:37:56 +01:00
|
|
|
" Logtalk clause functor
|
|
|
|
|
|
|
|
syn match logtalkOperator ":-"
|
|
|
|
|
|
|
|
|
|
|
|
" Logtalk quoted atoms and strings
|
|
|
|
|
|
|
|
syn region logtalkString start=+"+ skip=+\\"+ end=+"+
|
2004-02-09 14:18:27 +00:00
|
|
|
syn region logtalkAtom start=+'+ skip=+\\'+ end=+'+
|
2002-05-28 12:37:56 +01:00
|
|
|
|
|
|
|
|
|
|
|
" Logtalk message sending operators
|
|
|
|
|
|
|
|
syn match logtalkOperator "::"
|
|
|
|
syn match logtalkOperator "\^\^"
|
|
|
|
|
|
|
|
|
|
|
|
" Logtalk external call
|
|
|
|
|
2004-02-09 14:18:27 +00:00
|
|
|
syn region logtalkExtCall matchgroup=logtalkExtCallTag start="{" matchgroup=logtalkExtCallTag end="}" contains=ALL
|
2002-05-28 12:37:56 +01:00
|
|
|
|
|
|
|
|
|
|
|
" Logtalk opening entity directives
|
|
|
|
|
2005-08-08 13:13:45 +01:00
|
|
|
syn region logtalkOpenEntityDir matchgroup=logtalkOpenEntityDirTag start=":- object(" matchgroup=logtalkOpenEntityDirTag end=")\." contains=logtalkEntity,logtalkVariable,logtalkNumber,logtalkOperator,logtalkEntityRel
|
|
|
|
syn region logtalkOpenEntityDir matchgroup=logtalkOpenEntityDirTag start=":- protocol(" matchgroup=logtalkOpenEntityDirTag end=")\." contains=logtalkEntity,logtalkVariable,logtalkNumber,logtalkOperator,logtalkEntityRel
|
|
|
|
syn region logtalkOpenEntityDir matchgroup=logtalkOpenEntityDirTag start=":- category(" matchgroup=logtalkOpenEntityDirTag end=")\." contains=logtalkEntity,logtalkVariable,logtalkNumber,logtalkOperator,logtalkEntityRel
|
2002-05-28 12:37:56 +01:00
|
|
|
|
|
|
|
|
|
|
|
" Logtalk closing entity directives
|
|
|
|
|
2005-08-08 13:13:45 +01:00
|
|
|
syn match logtalkCloseEntityDir ":- end_object\."
|
|
|
|
syn match logtalkCloseEntityDir ":- end_protocol\."
|
|
|
|
syn match logtalkCloseEntityDir ":- end_category\."
|
2002-05-28 12:37:56 +01:00
|
|
|
|
|
|
|
|
|
|
|
" Logtalk entity relations
|
|
|
|
|
2005-08-08 13:13:45 +01:00
|
|
|
syn region logtalkEntityRel matchgroup=logtalkEntityRelTag start="instantiates(" matchgroup=logtalkEntityRelTag end=")" contains=logtalkEntity,logtalkVariable,logtalkNumber,logtalkOperator contained
|
|
|
|
syn region logtalkEntityRel matchgroup=logtalkEntityRelTag start="specializes(" matchgroup=logtalkEntityRelTag end=")" contains=logtalkEntity,logtalkVariable,logtalkNumber,logtalkOperator contained
|
|
|
|
syn region logtalkEntityRel matchgroup=logtalkEntityRelTag start="extends(" matchgroup=logtalkEntityRelTag end=")" contains=logtalkEntity,logtalkVariable,logtalkNumber,logtalkOperator contained
|
|
|
|
syn region logtalkEntityRel matchgroup=logtalkEntityRelTag start="imports(" matchgroup=logtalkEntityRelTag end=")" contains=logtalkEntity,logtalkVariable,logtalkNumber,logtalkOperator contained
|
|
|
|
syn region logtalkEntityRel matchgroup=logtalkEntityRelTag start="implements(" matchgroup=logtalkEntityRelTag end=")" contains=logtalkEntity,logtalkVariable,logtalkNumber,logtalkOperator contained
|
2002-05-28 12:37:56 +01:00
|
|
|
|
|
|
|
|
|
|
|
" Logtalk directives
|
|
|
|
|
2004-09-15 00:11:12 +01:00
|
|
|
syn region logtalkDir matchgroup=logtalkDirTag start=":- alias(" matchgroup=logtalkDirTag end=")\." contains=ALL
|
2005-04-23 00:57:45 +01:00
|
|
|
syn region logtalkDir matchgroup=logtalkDirTag start=":- encoding(" matchgroup=logtalkDirTag end=")\." contains=ALL
|
2002-05-28 12:37:56 +01:00
|
|
|
syn region logtalkDir matchgroup=logtalkDirTag start=":- initialization(" matchgroup=logtalkDirTag end=")\." contains=ALL
|
|
|
|
syn region logtalkDir matchgroup=logtalkDirTag start=":- info(" matchgroup=logtalkDirTag end=")\." contains=ALL
|
2005-04-23 00:57:45 +01:00
|
|
|
syn region logtalkDir matchgroup=logtalkDirTag start=":- mode(" matchgroup=logtalkDirTag end=")\." contains=logtalkOperator, logtalkAtom
|
2002-05-28 12:37:56 +01:00
|
|
|
syn region logtalkDir matchgroup=logtalkDirTag start=":- dynamic(" matchgroup=logtalkDirTag end=")\." contains=ALL
|
|
|
|
syn match logtalkDirTag ":- dynamic\."
|
|
|
|
syn region logtalkDir matchgroup=logtalkDirTag start=":- discontiguous(" matchgroup=logtalkDirTag end=")\." contains=ALL
|
2004-09-15 00:11:12 +01:00
|
|
|
syn region logtalkDir matchgroup=logtalkDirTag start=":- multifile(" matchgroup=logtalkDirTag end=")\." contains=ALL
|
2002-05-28 12:37:56 +01:00
|
|
|
syn region logtalkDir matchgroup=logtalkDirTag start=":- public(" matchgroup=logtalkDirTag end=")\." contains=ALL
|
|
|
|
syn region logtalkDir matchgroup=logtalkDirTag start=":- protected(" matchgroup=logtalkDirTag end=")\." contains=ALL
|
|
|
|
syn region logtalkDir matchgroup=logtalkDirTag start=":- private(" matchgroup=logtalkDirTag end=")\." contains=ALL
|
|
|
|
syn region logtalkDir matchgroup=logtalkDirTag start=":- metapredicate(" matchgroup=logtalkDirTag end=")\." contains=ALL
|
|
|
|
syn region logtalkDir matchgroup=logtalkDirTag start=":- op(" matchgroup=logtalkDirTag end=")\." contains=ALL
|
|
|
|
syn region logtalkDir matchgroup=logtalkDirTag start=":- calls(" matchgroup=logtalkDirTag end=")\." contains=ALL
|
|
|
|
syn region logtalkDir matchgroup=logtalkDirTag start=":- uses(" matchgroup=logtalkDirTag end=")\." contains=ALL
|
|
|
|
|
|
|
|
|
|
|
|
" Logtalk built-in predicates
|
|
|
|
|
2005-08-08 13:13:45 +01:00
|
|
|
syn match logtalkBuiltIn "\<\(abolish\|c\(reate\|urrent\)\)_\(object\|protocol\|category\)\ze("
|
2002-05-28 12:37:56 +01:00
|
|
|
|
2004-06-06 23:46:45 +01:00
|
|
|
syn match logtalkBuiltIn "\<\(object\|protocol\|category\)_property\ze("
|
2002-05-28 12:37:56 +01:00
|
|
|
|
2004-06-06 23:46:45 +01:00
|
|
|
syn match logtalkBuiltIn "\<extends_\(object\|protocol\)\ze("
|
|
|
|
syn match logtalkBuiltIn "\<imp\(orts_category\|lements_protocol\)\ze("
|
|
|
|
syn match logtalkBuiltIn "\<\(instantiates\|specializes\)_class\ze("
|
2002-05-28 12:37:56 +01:00
|
|
|
|
2004-06-06 23:46:45 +01:00
|
|
|
syn match logtalkBuiltIn "\<\(abolish\|define\)_events\ze("
|
2004-02-09 14:18:27 +00:00
|
|
|
syn match logtalkBuiltIn "\<current_event\ze("
|
2002-05-28 12:37:56 +01:00
|
|
|
|
2004-06-06 23:46:45 +01:00
|
|
|
syn match logtalkBuiltIn "\<\(current\|set\)_logtalk_flag\ze("
|
2002-05-28 12:37:56 +01:00
|
|
|
|
2005-02-10 00:02:06 +00:00
|
|
|
syn match logtalkBuiltIn "\<logtalk_\(compile\|l\(ibrary_path\|oad\)\)\ze("
|
2002-05-28 12:37:56 +01:00
|
|
|
|
2004-10-17 23:37:16 +01:00
|
|
|
syn match logtalkBuiltIn "\<\(for\|retract\)all\ze("
|
2002-05-28 12:37:56 +01:00
|
|
|
|
|
|
|
|
|
|
|
" Logtalk built-in methods
|
|
|
|
|
2004-02-09 14:18:27 +00:00
|
|
|
syn match logtalkBuiltInMethod "\<parameter\ze("
|
2004-06-06 23:46:45 +01:00
|
|
|
syn match logtalkBuiltInMethod "\<se\(lf\|nder\)\ze("
|
2004-02-09 14:18:27 +00:00
|
|
|
syn match logtalkBuiltInMethod "\<this\ze("
|
2002-05-28 12:37:56 +01:00
|
|
|
|
2004-02-09 14:18:27 +00:00
|
|
|
syn match logtalkBuiltInMethod "\<current_predicate\ze("
|
|
|
|
syn match logtalkBuiltInMethod "\<predicate_property\ze("
|
2002-05-28 12:37:56 +01:00
|
|
|
|
2005-08-08 13:13:45 +01:00
|
|
|
syn match logtalkBuiltInMethod "\<a\(bolish\|ssert\(a\|z\)\)\ze("
|
2004-02-09 14:18:27 +00:00
|
|
|
syn match logtalkBuiltInMethod "\<clause\ze("
|
2005-08-08 13:13:45 +01:00
|
|
|
syn match logtalkBuiltInMethod "\<retract\(all\)\?\ze("
|
2002-05-28 12:37:56 +01:00
|
|
|
|
2004-06-06 23:46:45 +01:00
|
|
|
syn match logtalkBuiltInMethod "\<\(bag\|set\)of\ze("
|
|
|
|
syn match logtalkBuiltInMethod "\<f\(ind\|or\)all\ze("
|
2002-05-28 12:37:56 +01:00
|
|
|
|
2004-02-09 14:18:27 +00:00
|
|
|
syn match logtalkBuiltInMethod "\<before\ze("
|
|
|
|
syn match logtalkBuiltInMethod "\<after\ze("
|
2002-05-28 12:37:56 +01:00
|
|
|
|
2004-09-30 21:28:42 +01:00
|
|
|
syn match logtalkBuiltInMethod "\<expand_term\ze("
|
2004-02-09 14:18:27 +00:00
|
|
|
syn match logtalkBuiltInMethod "\<phrase\ze("
|
2003-07-09 01:20:55 +01:00
|
|
|
|
2002-05-28 12:37:56 +01:00
|
|
|
|
|
|
|
" Mode operators
|
|
|
|
|
|
|
|
syn match logtalkOperator "?"
|
|
|
|
syn match logtalkOperator "@"
|
|
|
|
|
|
|
|
|
|
|
|
" Control constructs
|
|
|
|
|
2004-02-09 14:18:27 +00:00
|
|
|
syn match logtalkKeyword "\<true\>"
|
|
|
|
syn match logtalkKeyword "\<fail\>"
|
2004-06-06 23:46:45 +01:00
|
|
|
syn match logtalkKeyword "\<ca\(ll\|tch\)\ze("
|
2002-05-28 12:37:56 +01:00
|
|
|
syn match logtalkOperator "!"
|
2004-06-06 23:46:45 +01:00
|
|
|
" syn match logtalkOperator ","
|
2002-05-28 12:37:56 +01:00
|
|
|
syn match logtalkOperator ";"
|
2003-07-09 01:20:55 +01:00
|
|
|
syn match logtalkOperator "-->"
|
2002-05-28 12:37:56 +01:00
|
|
|
syn match logtalkOperator "->"
|
2004-02-09 14:18:27 +00:00
|
|
|
syn match logtalkKeyword "\<throw\ze("
|
2002-05-28 12:37:56 +01:00
|
|
|
|
|
|
|
|
|
|
|
" Term unification
|
|
|
|
|
|
|
|
syn match logtalkOperator "="
|
2004-02-09 14:18:27 +00:00
|
|
|
syn match logtalkKeyword "\<unify_with_occurs_check\ze("
|
2002-05-28 12:37:56 +01:00
|
|
|
syn match logtalkOperator "\\="
|
|
|
|
|
|
|
|
|
|
|
|
" Term testing
|
|
|
|
|
2004-02-09 14:18:27 +00:00
|
|
|
syn match logtalkKeyword "\<var\ze("
|
2005-08-08 13:13:45 +01:00
|
|
|
syn match logtalkKeyword "\<atom\(ic\)\?\ze("
|
2004-02-09 14:18:27 +00:00
|
|
|
syn match logtalkKeyword "\<integer\ze("
|
|
|
|
syn match logtalkKeyword "\<float\ze("
|
|
|
|
syn match logtalkKeyword "\<compound\ze("
|
2004-06-06 23:46:45 +01:00
|
|
|
syn match logtalkKeyword "\<n\(onvar\|umber\)\ze("
|
2002-05-28 12:37:56 +01:00
|
|
|
|
|
|
|
|
|
|
|
" Term comparison
|
|
|
|
|
|
|
|
syn match logtalkOperator "@=<"
|
|
|
|
syn match logtalkOperator "=="
|
|
|
|
syn match logtalkOperator "\\=="
|
|
|
|
syn match logtalkOperator "@<"
|
|
|
|
syn match logtalkOperator "@>"
|
|
|
|
syn match logtalkOperator "@>="
|
|
|
|
|
|
|
|
|
|
|
|
" Term creation and decomposition
|
|
|
|
|
2004-02-09 14:18:27 +00:00
|
|
|
syn match logtalkKeyword "\<functor\ze("
|
|
|
|
syn match logtalkKeyword "\<arg\ze("
|
2002-05-28 12:37:56 +01:00
|
|
|
syn match logtalkOperator "=\.\."
|
2004-02-09 14:18:27 +00:00
|
|
|
syn match logtalkKeyword "\<copy_term\ze("
|
2002-05-28 12:37:56 +01:00
|
|
|
|
|
|
|
|
|
|
|
" Arithemtic evaluation
|
|
|
|
|
2005-04-23 00:57:45 +01:00
|
|
|
syn match logtalkOperator "\<is\>"
|
2002-05-28 12:37:56 +01:00
|
|
|
|
|
|
|
|
|
|
|
" Arithemtic comparison
|
|
|
|
|
|
|
|
syn match logtalkOperator "=:="
|
|
|
|
syn match logtalkOperator "=\\="
|
|
|
|
syn match logtalkOperator "<"
|
|
|
|
syn match logtalkOperator "=<"
|
|
|
|
syn match logtalkOperator ">"
|
|
|
|
syn match logtalkOperator ">="
|
|
|
|
|
|
|
|
|
|
|
|
" Stream selection and control
|
|
|
|
|
2005-08-08 13:13:45 +01:00
|
|
|
syn match logtalkKeyword "\<\(current\|set\)_\(in\|out\)put\ze("
|
2004-02-09 14:18:27 +00:00
|
|
|
syn match logtalkKeyword "\<open\ze("
|
|
|
|
syn match logtalkKeyword "\<close\ze("
|
|
|
|
syn match logtalkKeyword "\<flush_output\ze("
|
|
|
|
syn match logtalkKeyword "\<flush_output\>"
|
|
|
|
syn match logtalkKeyword "\<stream_property\ze("
|
|
|
|
syn match logtalkKeyword "\<at_end_of_stream\ze("
|
|
|
|
syn match logtalkKeyword "\<at_end_of_stream\>"
|
|
|
|
syn match logtalkKeyword "\<set_stream_position\ze("
|
2002-05-28 12:37:56 +01:00
|
|
|
|
|
|
|
|
2004-06-06 23:46:45 +01:00
|
|
|
" Character and byte input/output
|
2002-05-28 12:37:56 +01:00
|
|
|
|
2005-08-08 13:13:45 +01:00
|
|
|
syn match logtalkKeyword "\<\(get\|p\(eek\|ut\)\)_\(c\(har\|ode\)\|byte\)\ze("
|
2004-02-09 14:18:27 +00:00
|
|
|
syn match logtalkKeyword "\<nl\ze("
|
|
|
|
syn match logtalkKeyword "\<nl\>"
|
2002-05-28 12:37:56 +01:00
|
|
|
|
|
|
|
|
|
|
|
" Term input/output
|
|
|
|
|
2005-08-08 13:13:45 +01:00
|
|
|
syn match logtalkKeyword "\<read\(_term\)\?\ze("
|
|
|
|
syn match logtalkKeyword "\<write\(q\|_\(canonical\|term\)\)\?\ze("
|
|
|
|
syn match logtalkKeyword "\<\(current_\)\?op\ze("
|
|
|
|
syn match logtalkKeyword "\<\(current\)\?char_conversion\ze("
|
2002-05-28 12:37:56 +01:00
|
|
|
|
|
|
|
|
|
|
|
" Logic and control
|
|
|
|
|
|
|
|
syn match logtalkOperator "\\+"
|
2004-02-09 14:18:27 +00:00
|
|
|
syn match logtalkKeyword "\<once\ze("
|
|
|
|
syn match logtalkKeyword "\<repeat\>"
|
2002-05-28 12:37:56 +01:00
|
|
|
|
|
|
|
|
|
|
|
" Atomic term processing
|
|
|
|
|
2005-08-08 13:13:45 +01:00
|
|
|
syn match logtalkKeyword "\<atom_\(length\|c\(hars\|o\(ncat\|des\)\)\)\ze("
|
2004-02-09 14:18:27 +00:00
|
|
|
syn match logtalkKeyword "\<sub_atom\ze("
|
|
|
|
syn match logtalkKeyword "\<char_code\ze("
|
2005-08-08 13:13:45 +01:00
|
|
|
syn match logtalkKeyword "\<number_\(c\(hars\|odes\)\)\ze("
|
2002-05-28 12:37:56 +01:00
|
|
|
|
|
|
|
|
|
|
|
" Implementation defined hooks functions
|
|
|
|
|
2004-06-06 23:46:45 +01:00
|
|
|
syn match logtalkKeyword "\<\(current\|set\)_prolog_flag\ze("
|
2004-02-09 14:18:27 +00:00
|
|
|
syn match logtalkKeyword "\<halt\ze("
|
|
|
|
syn match logtalkKeyword "\<halt\>"
|
2002-05-28 12:37:56 +01:00
|
|
|
|
|
|
|
|
|
|
|
" Evaluable functors
|
|
|
|
|
|
|
|
syn match logtalkOperator "+"
|
|
|
|
syn match logtalkOperator "-"
|
|
|
|
syn match logtalkOperator "\*"
|
|
|
|
syn match logtalkOperator "//"
|
|
|
|
syn match logtalkOperator "/"
|
2005-08-08 13:13:45 +01:00
|
|
|
syn match logtalkKeyword "\<r\(ound\|em\)\ze("
|
2004-02-09 14:18:27 +00:00
|
|
|
syn match logtalkKeyword "\<rem\>"
|
|
|
|
syn match logtalkKeyword "\<mod\ze("
|
|
|
|
syn match logtalkKeyword "\<mod\>"
|
|
|
|
syn match logtalkKeyword "\<abs\ze("
|
|
|
|
syn match logtalkKeyword "\<sign\ze("
|
2005-08-08 13:13:45 +01:00
|
|
|
syn match logtalkKeyword "\<flo\(or\|at\(_\(integer\|fractional\)_part\)\?\)\ze("
|
2004-02-09 14:18:27 +00:00
|
|
|
syn match logtalkKeyword "\<truncate\ze("
|
|
|
|
syn match logtalkKeyword "\<ceiling\ze("
|
2002-05-28 12:37:56 +01:00
|
|
|
|
|
|
|
|
|
|
|
" Other arithemtic functors
|
|
|
|
|
|
|
|
syn match logtalkOperator "\*\*"
|
2004-06-06 23:46:45 +01:00
|
|
|
syn match logtalkKeyword "\<s\(in\|qrt\)\ze("
|
2004-02-09 14:18:27 +00:00
|
|
|
syn match logtalkKeyword "\<cos\ze("
|
|
|
|
syn match logtalkKeyword "\<atan\ze("
|
|
|
|
syn match logtalkKeyword "\<exp\ze("
|
|
|
|
syn match logtalkKeyword "\<log\ze("
|
2002-05-28 12:37:56 +01:00
|
|
|
|
|
|
|
|
|
|
|
" Bitwise functors
|
|
|
|
|
|
|
|
syn match logtalkOperator ">>"
|
|
|
|
syn match logtalkOperator "<<"
|
|
|
|
syn match logtalkOperator "/\\"
|
|
|
|
syn match logtalkOperator "\\/"
|
|
|
|
syn match logtalkOperator "\\"
|
|
|
|
|
|
|
|
|
2005-08-08 13:13:45 +01:00
|
|
|
" Logtalk list operator
|
2002-05-28 12:37:56 +01:00
|
|
|
|
2005-08-08 13:13:45 +01:00
|
|
|
syn match logtalkOperator "|"
|
2002-05-28 12:37:56 +01:00
|
|
|
|
|
|
|
|
2005-08-08 13:13:45 +01:00
|
|
|
" Logtalk numbers
|
2002-05-28 12:37:56 +01:00
|
|
|
|
2005-08-08 13:13:45 +01:00
|
|
|
syn match logtalkNumber "\<\d\+\>"
|
|
|
|
syn match logtalkNumber "\<\d\+\.\d\+\>"
|
|
|
|
syn match logtalkNumber "\<\d\+[eE][-+]\=\d\+\>"
|
|
|
|
syn match logtalkNumber "\<\d\+\.\d\+[eE][-+]\=\d\+\>"
|
|
|
|
syn match logtalkNumber "\<0'.\>"
|
|
|
|
syn match logtalkNumber "\<0b[0-1]\+\>"
|
|
|
|
syn match logtalkNumber "\<0o\o\+\>"
|
|
|
|
syn match logtalkNumber "\<0x\x\+\>"
|
|
|
|
|
|
|
|
|
|
|
|
" Logtalk end-of-clause
|
|
|
|
|
|
|
|
syn match logtalkOperator "\."
|
2002-05-28 12:37:56 +01:00
|
|
|
|
|
|
|
|
|
|
|
" Logtalk comments
|
|
|
|
|
2005-08-08 13:13:45 +01:00
|
|
|
syn region logtalkBlockComment start="/\*" end="\*/" fold
|
2002-05-28 12:37:56 +01:00
|
|
|
syn match logtalkLineComment "%.*"
|
|
|
|
|
|
|
|
|
2005-08-08 13:13:45 +01:00
|
|
|
" Logtalk entity folding
|
2004-02-09 14:18:27 +00:00
|
|
|
|
2005-08-08 13:13:45 +01:00
|
|
|
syn region logtalkEntity transparent fold keepend start=":- object(" end=":- end_object\." contains=ALL
|
|
|
|
syn region logtalkEntity transparent fold keepend start=":- protocol(" end=":- end_protocol\." contains=ALL
|
|
|
|
syn region logtalkEntity transparent fold keepend start=":- category(" end=":- end_category\." contains=ALL
|
2004-02-09 14:18:27 +00:00
|
|
|
|
|
|
|
|
2005-04-23 00:57:45 +01:00
|
|
|
syn sync ccomment logtalkBlockComment maxlines=50
|
2002-05-28 12:37:56 +01:00
|
|
|
|
|
|
|
|
|
|
|
" Define the default highlighting.
|
|
|
|
" For version 5.7 and earlier: only when not done already
|
|
|
|
" For version 5.8 and later: only when an item doesn't have highlighting yet
|
|
|
|
|
|
|
|
if version >= 508 || !exists("did_logtalk_syn_inits")
|
|
|
|
if version < 508
|
|
|
|
let did_logtalk_syn_inits = 1
|
|
|
|
command -nargs=+ HiLink hi link <args>
|
|
|
|
else
|
|
|
|
command -nargs=+ HiLink hi def link <args>
|
|
|
|
endif
|
|
|
|
|
2004-02-09 14:18:27 +00:00
|
|
|
HiLink logtalkBlockComment Comment
|
|
|
|
HiLink logtalkLineComment Comment
|
2002-05-28 12:37:56 +01:00
|
|
|
|
|
|
|
HiLink logtalkOpenEntityDir Normal
|
2004-02-09 14:18:27 +00:00
|
|
|
HiLink logtalkOpenEntityDirTag PreProc
|
2002-05-28 12:37:56 +01:00
|
|
|
|
2004-02-09 14:18:27 +00:00
|
|
|
HiLink logtalkEntity Normal
|
2002-05-28 12:37:56 +01:00
|
|
|
|
2004-02-09 14:18:27 +00:00
|
|
|
HiLink logtalkEntityRel Normal
|
|
|
|
HiLink logtalkEntityRelTag PreProc
|
2002-05-28 12:37:56 +01:00
|
|
|
|
2004-02-09 14:18:27 +00:00
|
|
|
HiLink logtalkCloseEntityDir PreProc
|
2002-05-28 12:37:56 +01:00
|
|
|
|
2004-02-09 14:18:27 +00:00
|
|
|
HiLink logtalkDir Normal
|
|
|
|
HiLink logtalkDirTag PreProc
|
2003-07-09 01:20:55 +01:00
|
|
|
|
2004-02-09 14:18:27 +00:00
|
|
|
HiLink logtalkAtom String
|
|
|
|
HiLink logtalkString String
|
2002-05-28 12:37:56 +01:00
|
|
|
|
2004-02-09 14:18:27 +00:00
|
|
|
HiLink logtalkNumber Number
|
2002-05-28 12:37:56 +01:00
|
|
|
|
2004-02-09 14:18:27 +00:00
|
|
|
HiLink logtalkKeyword Keyword
|
2002-05-28 12:37:56 +01:00
|
|
|
|
2004-02-09 14:18:27 +00:00
|
|
|
HiLink logtalkBuiltIn Keyword
|
2002-05-28 12:37:56 +01:00
|
|
|
HiLink logtalkBuiltInMethod Keyword
|
|
|
|
|
2004-02-09 14:18:27 +00:00
|
|
|
HiLink logtalkOperator Operator
|
|
|
|
|
|
|
|
HiLink logtalkExtCall Normal
|
|
|
|
HiLink logtalkExtCallTag Operator
|
2002-05-28 12:37:56 +01:00
|
|
|
|
2004-02-09 14:18:27 +00:00
|
|
|
HiLink logtalkVariable Identifier
|
2002-05-28 12:37:56 +01:00
|
|
|
|
|
|
|
delcommand HiLink
|
|
|
|
|
|
|
|
endif
|
|
|
|
|
|
|
|
|
|
|
|
let b:current_syntax = "logtalk"
|
|
|
|
|
2004-02-09 14:18:27 +00:00
|
|
|
setlocal ts=4
|
2005-08-08 13:13:45 +01:00
|
|
|
setlocal fdm=syntax
|
|
|
|
setlocal fdc=2
|