From f1eddd7966d7c835b52b00107f972f2cd8f4a107 Mon Sep 17 00:00:00 2001 From: pmoura Date: Tue, 28 May 2002 11:37:56 +0000 Subject: [PATCH] Logtalk 2.12.0. git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@496 b08c6af1-5177-4d33-ba66-4b1c6b8b522a --- Logtalk/wenv/NOTES | 56 ++++++ Logtalk/wenv/logtalk.pats | 1 + Logtalk/wenv/logtalk.syn | 310 ++++++++++++++++++++++++++++ Logtalk/wenv/logtalk.vim | 400 ++++++++++++++++++++++++++++++++++++ Logtalk/wenv/logtalk.xml | 412 ++++++++++++++++++++++++++++++++++++++ 5 files changed, 1179 insertions(+) create mode 100644 Logtalk/wenv/NOTES create mode 100644 Logtalk/wenv/logtalk.pats create mode 100644 Logtalk/wenv/logtalk.syn create mode 100644 Logtalk/wenv/logtalk.vim create mode 100644 Logtalk/wenv/logtalk.xml diff --git a/Logtalk/wenv/NOTES b/Logtalk/wenv/NOTES new file mode 100644 index 000000000..1977ad8ce --- /dev/null +++ b/Logtalk/wenv/NOTES @@ -0,0 +1,56 @@ +================================================================= +Logtalk - Object oriented extension to Prolog +Release 2.12.0 + +Copyright (c) 1998-2002 Paulo Moura. All Rights Reserved. +================================================================= + + +This directory contains some files that provide syntax highlighting +for editing Logtalk source files with common text editors. + + +logtalk.xml + + edit mode file for jEdit 4.0 (http://www.jedit.org/) + + If this file is not included with your version of jEdit or if the + included file is older than the one provided here, copy this file + to the "modes" subdirectory in jEdit directory installation. Next, + check the "catalog" file in the same subdirectory and add (if not + present) the following entry: + + + + +logtalk.vim + + syntax file for VIM 6.1 (http://www.vim.org) + + If this file is not included with your version of VIM or if the + included file is older than the one provided here, copy this file + to the "syntax" sub-directory in your VIM installation directory + and add the following entry to the "filetype.vim" configuration + file (if not present): + + " Logtalk + au BufNewFile,BufRead *.lgt setf logtalk + + +logtalk.syn + + syntax file for TextPad 4.5 (http://www.textpad.com) + + To install, copy this file to the SAMPLES subdirectory in the TextPad + application directory and define a new document class for Logtalk source + files. THIS SYNTAX FILE IS UNDER DEVELOPMENT. + + +logtalk.pats + + syntax highlighting patterns file for NEdit 5.2 (http://www.nedit.org) + + To install, follow the instructions included in the file itself or take + a look at: + + http://www.nedit.org/download/patterns.shtml diff --git a/Logtalk/wenv/logtalk.pats b/Logtalk/wenv/logtalk.pats new file mode 100644 index 000000000..027a67d76 --- /dev/null +++ b/Logtalk/wenv/logtalk.pats @@ -0,0 +1 @@ +! Syntax highlighting patterns file for Logtalk (http://www.logtalk.org) ! ! Author: Paulo Moura (pmoura at logtalk.org) ! ! Last changed in: May, 21 ! ! ! To install this patterns file: ! ! 1. Load this file by starting nedit from the command line: ! ! % nedit -import logtalk.pats ! ! 2. Go to the Preferences menu and verify that the patterns were loaded ! correctly. ! ! 3. If everything is correct, choose the option Save Defaults from the ! Preferences menu. ! ! nedit.fileVersion: 5.2 nedit.highlightPatterns: Logtalk:1:0{\n\ Entity directives:":\\-\\sobject|:\\-\\sprotocol|:\\-\\scategory|:\\-\\send_object|:\\-\\send_protocol|:\\-\\send_category":::Keyword::\n\ Entity relations:"<(instantiates|specializes|extends|imports|implements)>":::Keyword::\n\ Directives:":\\-\\sinitialization|:\\-\\sinfo|:\\-\\smode|:\\-\\sdynamic|:\\-\\sdiscontiguous|:\\-\\spublic|:\\-\\sprotected|:\\-\\sprivate|:\\-\\smetapredicate|:\\-\\sop|:\\-\\scalls|:\\-\\suses":::Keyword::\n\ Clause operators:":\\-|\\.":::Keyword::\n\ Term testing:"<[^+?@-](var|atom|integer|float|atomic|compound|nonvar|number)>":::Subroutine1::\n\ Message sending operators:"::|\\^\\^":::Keyword::\n\ Control constructs:"!|,|;|\\-\\>|<(true|fail|call|catch|throw)>":::Subroutine::\n\ Block comment:"/\\*":"\\*/"::Comment::\n\ Line comment:"%":"$"::Comment::\n\ String:"'":"'"::String::\n\ Built-in methods:"<(parameter|self|sender|this|current_predicate|predicate_property|abolish|asserta|assertz|retractall|retract|bagof|findall|forall|setof|before|after)>":::Subroutine::\n\ Arithmetic operators:"|\\+|\\*|\\-|/|=:=|=\\\\=|=\\<|\\>=|\\<|\\>":::Subroutine1::\n\ Built-in predicates:"<(current_object|current_protocol|current_category|create_object|create_protocol|create_category|object_property|protocol_property|category_property|abolish_object|abolish_protocol|abolish_vategory|extends_object|extends_protocol|omplements_protocol|instantiates_object|specializes_object|imports_category|abolish_events|current_events|define_events|current_logtalk_flag|set_logtalk_flag|logtalk_compile|logtalk_load|forall|logtalk_version|retractall)>":::Subroutine1::\n\ Term unification:"=||\\\\=":::Subroutine1::\n\ Term comparison:"@=\\<|==|\\\\==|@\\>=|@\\<|@\\>":::Subroutine1::\n\ Term creation and decomposition:"<(functor|arg|copy_term)>|=\\.\\.":::Subroutine1::\n\ Mode operators:"\\?|@":::Subroutine1::\n\ Stream selection and control:"<(current_input|current_output|set_input|set_output|open|close|flush_output|stream_property|at_end_of_stream|set_stream_position)>":::Subroutine1::\n\ Character input-output:"<(get_char|get_code|peek_char|peek_code|put_char|put_code|nl)>":::Subroutine1::\n\ Byte input-output:"<(get_byte|peek_byte|put_byte)>":::Subroutine1::\n\ Term input-output:"<(read_term|read|write_canonical|write_term|writeq|write|current_op|op|current_char_conversion|char_conversion)>":::Subroutine1::\n\ Logic and control:"\\\\\\+|<(once|repeat)>":::Subroutine::\n\ Atomic term processing:"<(atom_length|atom_concat|sub_atom|atom_chars|atom_codes|char_code|number_chars|number_codes)>":::Subroutine1::\n\ Implementation defined hooks:"<(set_prolog_flag|current_prolog_flag)>":::Subroutine1::\n\ Evaluable functors:"\\+|-|\\*|//|/|<(rem|mod|abs|sign|float_integer_part|float_fractional_part|float|floor|truncate|round|ceiling)>":::Subroutine1::\n\ Other arithemtic functors:"\\*\\*|<(sin|cos|atan|exp|log|sqrt)>":::Subroutine1::\n\ Bitwise functors:">>|<<|/\\\\|\\\\/|\\\\":::Subroutine1::\n\ } nedit.languageModes: Logtalk:.lgt::::4:4:\n\ \ No newline at end of file diff --git a/Logtalk/wenv/logtalk.syn b/Logtalk/wenv/logtalk.syn new file mode 100644 index 000000000..408dcffab --- /dev/null +++ b/Logtalk/wenv/logtalk.syn @@ -0,0 +1,310 @@ +; TextPad syntax definitions for Logtalk (http://www.logtalk.org/) +; +; Author: Paulo Moura +; Last changed in: May 21, 2002 +; +; Tags used and sugested colors: +; Keywords 1 message sending operators blue +; Keywords 2 entity enclosing directives purple +; Keywords 3 entity directives purple +; Keywords 4 built-in predicates +; Keywords 5 built-in methods + + +C=1 + +[Syntax] +Namespace1 = 6 +IgnoreCase = NO +InitKeyWordChars = +KeyWordChars = a-zA-Z0-9_:^;*+,-./;<=>?@[\]^{|} +KeyWordLength = +BracketChars = +OperatorChars = <=>?@[\]| +PreprocStart = +SyntaxStart = +SyntaxEnd = +HexPrefix = 0x +CommentStart = /* +CommentEnd = */ +CommentStartAlt = +CommentEndAlt = +SingleComment = % +SingleCommentCol = +SingleCommentAlt = +SingleCommentColAlt = +SingleCommentEsc = +StringsSpanLines = Yes +StringStart = ' +StringEnd = ' +StringAlt = " +StringEsc = ' +CharStart = +CharEnd = +CharEsc = + + +[Keywords 1] + +; Logtalk message sending operators + +^^ +:- +. +, +; +:: + + +; Logtalk external call +{ +} + + +[Keywords 2] + +; Logtalk opening entity directives +object +protocol +category + + +; Logtalk closing entity directives +end_object +end_protocol +end_category + +; Logtalk entity relations +instantiates +specializes +extends +imports +implements + + +[Keywords 3] + +; Logtalk directives +initialization +info +mode +dynamic +discontiguous +public +protected +private +metapredicate +op +calls +uses + + +[Keywords 4] + +; Logtalk built-in predicates +current_object +current_protocol +current_category +create_object +create_protocol +create_category +object_property +protocol_property +category_property +abolish_object +abolish_protocol +abolish_category +extends_object +extends_protocol +implements_protocol +instantiates_object +specializes_object +imports_category +abolish_events +current_event +define_events +current_logtalk_flag +set_logtalk_flag +logtalk_compile +logtalk_load +forall +logtalk_version +retractall + + +[Keywords 5] + +; Logtalk built-in methods +parameter +self +sender +this +current_predicate +predicate_property +abolish +asserta +assertz +clause +retract +retractall +bagof +findall +forall +setof +before +after + +; Mode operators +? +@ + +; Control constructs +true +fail +call +! +, +; +-> +catch +throw + +; Term unification += +unify_with_occurs_check +\= + +; Term testing +var +atom +integer +float +atomic +compound +nonvar +number + +; Term comparison +@=< +== +\== +@< +@> +@>= + +; Term creation and decomposition +functor +arg +=.. +copy_term + +; Arithemtic evaluation +is + +; Arithemtic comparison +=:= +=\= +< +=< +> +>= + +; Stream selection and control +current_input +current_output +set_input +set_output +open +close +flush_output +stream_property +at_end_of_stream +set_stream_position + +; Character input/output +get_char +get_code +peek_char +peek_code +put_char +put_code +nl + +; Byte input/output +get_byte +peek_byte +put_byte + +; Term input/output +read_term +read +write_term +write +writeq +write_canonical +op +current_op +char_conversion +current_char_conversion + +; Logic and control +\+ +once +repeat + +; Atomic term processing +atom_length +atom_concat +sub_atom +atom_chars +atom_codes +char_code +number_chars +number_codes + +; Implementation defined hooks functions +set_prolog_flag +current_prolog_flag +halt + +; Evaluable functors ++ +- +* +// +/ +rem +mod +abs +sign +float_integer_part +float_fractional_part +float +floor +truncate +round +ceiling + +; Other arithemtic functors +** +sin +cos +atan +exp +log +sqrt + +; Bitwise functors +>> +<< +/\ +\/ +\ + +; Logtalk end-of-clause +. + +; Logtalk list operator +| + + diff --git a/Logtalk/wenv/logtalk.vim b/Logtalk/wenv/logtalk.vim new file mode 100644 index 000000000..58644f25c --- /dev/null +++ b/Logtalk/wenv/logtalk.vim @@ -0,0 +1,400 @@ +" Vim syntax file +" +" Language: Logtalk +" Maintainer: Paulo Moura +" Last Change: 2002 May 18 + + +" 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 + + +" Logtalk clause functor + +syn match logtalkOperator ":-" + + +" Logtalk quoted atoms and strings + +syn region logtalkString start=+"+ skip=+\\"+ end=+"+ +syn region logtalkAtom start=+'+ skip=+\\'+ end=+'+ + + +" Logtalk message sending operators + +syn match logtalkOperator "::" +syn match logtalkOperator "\^\^" + + +" Logtalk external call + +syn region logtalkExtCall matchgroup=logtalkExtCallTag start="{" matchgroup=logtalkExtCallTag end="}" contains=ALL + + +" Logtalk opening entity directives + +syn region logtalkOpenEntityDir matchgroup=logtalkOpenEntityDirTag start=":- object(" matchgroup=logtalkOpenEntityDirTag end=")\." contains=ALL +syn region logtalkOpenEntityDir matchgroup=logtalkOpenEntityDirTag start=":- protocol(" matchgroup=logtalkOpenEntityDirTag end=")\." contains=ALL +syn region logtalkOpenEntityDir matchgroup=logtalkOpenEntityDirTag start=":- category(" matchgroup=logtalkOpenEntityDirTag end=")\." contains=ALL + + +" Logtalk closing entity directives + +syn match logtalkCloseEntityDir ":- end_object\." +syn match logtalkCloseEntityDir ":- end_protocol\." +syn match logtalkCloseEntityDir ":- end_category\." + + +" Logtalk entity relations + +syn region logtalkEntityRel matchgroup=logtalkEntityRelTag start="instantiates(" matchgroup=logtalkEntityRelTag end=")" contains=logtalkEntity contained +syn region logtalkEntityRel matchgroup=logtalkEntityRelTag start="specializes(" matchgroup=logtalkEntityRelTag end=")" contains=logtalkEntity contained +syn region logtalkEntityRel matchgroup=logtalkEntityRelTag start="extends(" matchgroup=logtalkEntityRelTag end=")" contains=logtalkEntity contained +syn region logtalkEntityRel matchgroup=logtalkEntityRelTag start="imports(" matchgroup=logtalkEntityRelTag end=")" contains=logtalkEntity contained +syn region logtalkEntityRel matchgroup=logtalkEntityRelTag start="implements(" matchgroup=logtalkEntityRelTag end=")" contains=logtalkEntity contained + + +" Logtalk directives + +syn region logtalkDir matchgroup=logtalkDirTag start=":- initialization(" matchgroup=logtalkDirTag end=")\." contains=ALL +syn region logtalkDir matchgroup=logtalkDirTag start=":- info(" matchgroup=logtalkDirTag end=")\." contains=ALL +syn region logtalkDir matchgroup=logtalkDirTag start=":- mode(" matchgroup=logtalkDirTag end=")\." contains=logtalkOperator,logtalkAtom +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 +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 + +syn keyword logtalkBuiltIn current_object +syn keyword logtalkBuiltIn current_protocol +syn keyword logtalkBuiltIn current_category + +syn keyword logtalkBuiltIn create_object +syn keyword logtalkBuiltIn create_protocol +syn keyword logtalkBuiltIn create_category + +syn keyword logtalkBuiltIn object_property +syn keyword logtalkBuiltIn protocol_property +syn keyword logtalkBuiltIn category_property + +syn keyword logtalkBuiltIn abolish_object +syn keyword logtalkBuiltIn abolish_protocol +syn keyword logtalkBuiltIn abolish_category + +syn keyword logtalkBuiltIn extends_object +syn keyword logtalkBuiltIn extends_protocol +syn keyword logtalkBuiltIn implements_protocol +syn keyword logtalkBuiltIn instantiates_object +syn keyword logtalkBuiltIn specializes_object +syn keyword logtalkBuiltIn imports_category + +syn keyword logtalkBuiltIn abolish_events +syn keyword logtalkBuiltIn current_event +syn keyword logtalkBuiltIn define_events + +syn keyword logtalkBuiltIn current_logtalk_flag +syn keyword logtalkBuiltIn set_logtalk_flag + +syn keyword logtalkBuiltIn logtalk_compile +syn keyword logtalkBuiltIn logtalk_load + +syn keyword logtalkBuiltIn forall +syn keyword logtalkBuiltIn logtalk_version +syn keyword logtalkBuiltIn retractall + + +" Logtalk built-in methods + +syn keyword logtalkBuiltInMethod parameter +syn keyword logtalkBuiltInMethod self +syn keyword logtalkBuiltInMethod sender +syn keyword logtalkBuiltInMethod this + +syn keyword logtalkBuiltInMethod current_predicate +syn keyword logtalkBuiltInMethod predicate_property + +syn keyword logtalkBuiltInMethod abolish +syn keyword logtalkBuiltInMethod asserta +syn keyword logtalkBuiltInMethod assertz +syn keyword logtalkBuiltInMethod clause +syn keyword logtalkBuiltInMethod retract +syn keyword logtalkBuiltInMethod retractall + +syn keyword logtalkBuiltInMethod bagof +syn keyword logtalkBuiltInMethod findall +syn keyword logtalkBuiltInMethod forall +syn keyword logtalkBuiltInMethod setof + +syn keyword logtalkBuiltInMethod before +syn keyword logtalkBuiltInMethod after + + +" Mode operators + +syn match logtalkOperator "?" +syn match logtalkOperator "@" + + +" Control constructs + +syn keyword logtalkKeyword true +syn keyword logtalkKeyword fail +syn keyword logtalkKeyword call +syn match logtalkOperator "!" +syn match logtalkOperator "," +syn match logtalkOperator ";" +syn match logtalkOperator "->" +syn keyword logtalkKeyword catch +syn keyword logtalkKeyword throw + + +" Term unification + +syn match logtalkOperator "=" +syn keyword logtalkKeyword unify_with_occurs_check +syn match logtalkOperator "\\=" + + +" Term testing + +syn keyword logtalkKeyword var +syn keyword logtalkKeyword atom +syn keyword logtalkKeyword integer +syn keyword logtalkKeyword float +syn keyword logtalkKeyword atomic +syn keyword logtalkKeyword compound +syn keyword logtalkKeyword nonvar +syn keyword logtalkKeyword number + + +" Term comparison + +syn match logtalkOperator "@=<" +syn match logtalkOperator "==" +syn match logtalkOperator "\\==" +syn match logtalkOperator "@<" +syn match logtalkOperator "@>" +syn match logtalkOperator "@>=" + + +" Term creation and decomposition + +syn keyword logtalkKeyword functor +syn keyword logtalkKeyword arg +syn match logtalkOperator "=\.\." +syn keyword logtalkKeyword copy_term + + +" Arithemtic evaluation + +syn keyword logtalkOperator is + + +" Arithemtic comparison + +syn match logtalkOperator "=:=" +syn match logtalkOperator "=\\=" +syn match logtalkOperator "<" +syn match logtalkOperator "=<" +syn match logtalkOperator ">" +syn match logtalkOperator ">=" + + +" Stream selection and control + +syn keyword logtalkKeyword current_input +syn keyword logtalkKeyword current_output +syn keyword logtalkKeyword set_input +syn keyword logtalkKeyword set_output +syn keyword logtalkKeyword open +syn keyword logtalkKeyword close +syn keyword logtalkKeyword flush_output +syn keyword logtalkKeyword stream_property +syn keyword logtalkKeyword at_end_of_stream +syn keyword logtalkKeyword set_stream_position + + +" Character input/output + +syn keyword logtalkKeyword get_char +syn keyword logtalkKeyword get_code +syn keyword logtalkKeyword peek_char +syn keyword logtalkKeyword peek_code +syn keyword logtalkKeyword put_char +syn keyword logtalkKeyword put_code +syn keyword logtalkKeyword nl + + +" Byte input/output + +syn keyword logtalkKeyword get_byte +syn keyword logtalkKeyword peek_byte +syn keyword logtalkKeyword put_byte + + +" Term input/output + +syn keyword logtalkKeyword read_term +syn keyword logtalkKeyword read +syn keyword logtalkKeyword write_term +syn keyword logtalkKeyword write +syn keyword logtalkKeyword writeq +syn keyword logtalkKeyword write_canonical +syn keyword logtalkKeyword op +syn keyword logtalkKeyword current_op +syn keyword logtalkKeyword char_conversion +syn keyword logtalkKeyword current_char_conversion + + +" Logic and control + +syn match logtalkOperator "\\+" +syn keyword logtalkKeyword once +syn keyword logtalkKeyword repeat + + +" Atomic term processing + +syn keyword logtalkKeyword atom_length +syn keyword logtalkKeyword atom_concat +syn keyword logtalkKeyword sub_atom +syn keyword logtalkKeyword atom_chars +syn keyword logtalkKeyword atom_codes +syn keyword logtalkKeyword char_code +syn keyword logtalkKeyword number_chars +syn keyword logtalkKeyword number_codes + + +" Implementation defined hooks functions + +syn keyword logtalkKeyword set_prolog_flag +syn keyword logtalkKeyword current_prolog_flag +syn keyword logtalkKeyword halt + + +" Evaluable functors + +syn match logtalkOperator "+" +syn match logtalkOperator "-" +syn match logtalkOperator "\*" +syn match logtalkOperator "//" +syn match logtalkOperator "/" +syn keyword logtalkKeyword rem +syn keyword logtalkKeyword mod +syn keyword logtalkKeyword abs +syn keyword logtalkKeyword sign +syn keyword logtalkKeyword float_integer_part +syn keyword logtalkKeyword float_fractional_part +syn keyword logtalkKeyword float +syn keyword logtalkKeyword floor +syn keyword logtalkKeyword truncate +syn keyword logtalkKeyword round +syn keyword logtalkKeyword ceiling + + +" Other arithemtic functors + +syn match logtalkOperator "\*\*" +syn keyword logtalkKeyword sin +syn keyword logtalkKeyword cos +syn keyword logtalkKeyword atan +syn keyword logtalkKeyword exp +syn keyword logtalkKeyword log +syn keyword logtalkKeyword sqrt + + +" Bitwise functors + +syn match logtalkOperator ">>" +syn match logtalkOperator "<<" +syn match logtalkOperator "/\\" +syn match logtalkOperator "\\/" +syn match logtalkOperator "\\" + + +" Logtalk end-of-clause + +syn match logtalkOperator "\." + + +" Logtalk list operator + +syn match logtalkOperator "|" + + +" Logtalk comments + +syn region logtalkBlockComment start="/\*" end="\*/" +syn match logtalkLineComment "%.*" + + +syn sync ccomment maxlines=50 + + +" 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 + else + command -nargs=+ HiLink hi def link + endif + + HiLink logtalkBlockComment Comment + HiLink logtalkLineComment Comment + + HiLink logtalkOpenEntityDir Normal + HiLink logtalkOpenEntityDirTag Statement + + HiLink logtalkEntity Normal + + HiLink logtalkEntityRel Normal + HiLink logtalkEntityRelTag Statement + + HiLink logtalkCloseEntityDir Statement + + HiLink logtalkDir Normal + HiLink logtalkDirTag Statement + + HiLink logtalkAtom String + HiLink logtalkString String + + HiLink logtalkKeyword Keyword + + HiLink logtalkBuiltIn Keyword + HiLink logtalkBuiltInMethod Keyword + + HiLink logtalkOperator Operator + + HiLink logtalkExtCall Normal + HiLink logtalkExtCallTag Operator + + delcommand HiLink + +endif + + +let b:current_syntax = "logtalk" + +set ts=4 diff --git a/Logtalk/wenv/logtalk.xml b/Logtalk/wenv/logtalk.xml new file mode 100644 index 000000000..1bb7b080e --- /dev/null +++ b/Logtalk/wenv/logtalk.xml @@ -0,0 +1,412 @@ + + + + + + + + + + + + + + + + + + + + + + % + + /* + */ + + + + + ' + ' + + + " + " + + + + + { + } + + + + + :- object( + ). + + + :- protocol( + ). + + + :- category( + ). + + + + + :- end_object + . + + + :- end_protocol + . + + + :- end_category + . + + + + + + :- initialization( + ). + + + :- info( + ). + + + :- mode( + ). + + + :- dynamic( + ). + + + :- dynamic + . + + + :- discontiguous( + ). + + + :- public( + ). + + + :- protected( + ). + + + :- private( + ). + + + :- metapredicate( + ). + + + :- op( + ). + + + :- calls( + ). + + + :- uses( + ). + + + + :: + : + ^^ + + + ( + ) + { + } + + + + + + current_object + current_protocol + current_category + + create_object + create_protocol + create_category + + object_property + protocol_property + category_property + + abolish_object + abolish_protocol + abolish_category + + extends_object + extends_protocol + implements_protocol + instantiates_object + specializes_object + imports_category + + abolish_events + current_event + define_events + + current_logtalk_flag + set_logtalk_flag + + logtalk_compile + logtalk_load + + forall + logtalk_version + retractall + + + + parameter + self + sender + this + + current_predicate + predicate_property + + abolish + asserta + assertz + clause + retract + retractall + + bagof + findall + forall + setof + + before + after + + + ? + @ + + + true + fail + call + ! + , + ; + -> + catch + throw + + + = + unify_with_occurs_check + \= + + + var + atom + integer + float + atomic + compound + nonvar + number + + + @=< + == + \== + @< + @> + @>= + + + functor + arg + =.. + copy_term + + + is + + + =:= + =\= + < + =< + > + >= + + + clause + current_predicate + + + asserta + assertz + retract + abolish + + + findall + bagof + setof + + + current_input + current_output + set_input + set_output + open + close + flush_output + stream_property + at_end_of_stream + set_stream_position + + + get_char + get_code + peek_char + peek_code + put_char + put_code + nl + + + get_byte + peek_byte + put_byte + + + read_term + read + write_term + write + writeq + write_canonical + op + current_op + char_conversion + current_char_conversion + + + \+ + once + repeat + + + atom_length + atom_concat + sub_atom + atom_chars + atom_codes + char_code + number_chars + number_codes + + + set_prolog_flag + current_prolog_flag + halt + + + + + - + * + // + / + rem + mod + abs + sign + float_integer_part + float_fractional_part + float + floor + truncate + round + ceiling + + + ** + sin + cos + atan + exp + log + sqrt + + + >> + << + /\ + \/ + \ + + . + + + + + + + + instantiates( + ) + + + specializes( + ) + + + extends( + ) + + + imports( + ) + + + implements( + ) + + + + + + + + + + + + + + +