annotate runtime/syntax/logtalk.vim @ 24458:1d126cb683c1 v8.2.2769

patch 8.2.2769: Modula-3 config files are not recognized Commit: https://github.com/vim/vim/commit/6bc00699c5049c40761d212bef1b490e2af7944c Author: Bram Moolenaar <Bram@vim.org> Date: Thu Apr 15 14:29:17 2021 +0200 patch 8.2.2769: Modula-3 config files are not recognized Problem: Modula-3 config files are not recognized. Solution: Add filetype patterns. (Doug Kearns)
author Bram Moolenaar <Bram@vim.org>
date Thu, 15 Apr 2021 14:30:04 +0200
parents 5c5908e81e93
children d46f974fd69e
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1 " Vim syntax file
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
2 "
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
3 " Language: Logtalk
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
4 " Maintainer: Paulo Moura <pmoura@logtalk.org>
14519
5c5908e81e93 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 10051
diff changeset
5 " Last Change: August 3, 2018
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
6
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
7
10048
43efa4f5a8ea commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents: 3312
diff changeset
8 " quit when a syntax file was already loaded
43efa4f5a8ea commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents: 3312
diff changeset
9 if exists("b:current_syntax")
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
10 finish
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
11 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
12
3312
b7811ab264bf updated for version 7.3.423
Bram Moolenaar <bram@vim.org>
parents: 2034
diff changeset
13 let s:cpo_save = &cpo
b7811ab264bf updated for version 7.3.423
Bram Moolenaar <bram@vim.org>
parents: 2034
diff changeset
14 set cpo&vim
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
15
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
16 " Logtalk is case sensitive:
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
17
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
18 syn case match
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
19
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
20
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
21 " Logtalk variables
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
22
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
23 syn match logtalkVariable "\<\(\u\|_\)\(\w\)*\>"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
24
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
25
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
26 " Logtalk clause functor
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
27
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
28 syn match logtalkOperator ":-"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
29
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
30
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
31 " Logtalk quoted atoms and strings
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
32
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
33 syn region logtalkString start=+"+ skip=+\\"+ end=+"+
1668
0b796e045c42 updated for version 7.2b-000
vimboss
parents: 714
diff changeset
34 syn region logtalkAtom start=+'+ skip=+\\'+ end=+'+ contains=logtalkEscapeSequence
0b796e045c42 updated for version 7.2b-000
vimboss
parents: 714
diff changeset
35
0b796e045c42 updated for version 7.2b-000
vimboss
parents: 714
diff changeset
36 syn match logtalkEscapeSequence contained "\\\([\\abfnrtv\"\']\|\(x[a-fA-F0-9]\+\|[0-7]\+\)\\\)"
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
37
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
38
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
39 " Logtalk message sending operators
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
40
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
41 syn match logtalkOperator "::"
1668
0b796e045c42 updated for version 7.2b-000
vimboss
parents: 714
diff changeset
42 syn match logtalkOperator ":"
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
43 syn match logtalkOperator "\^\^"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
44
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
45
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
46 " Logtalk external call
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
47
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
48 syn region logtalkExtCall matchgroup=logtalkExtCallTag start="{" matchgroup=logtalkExtCallTag end="}" contains=ALL
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
49
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
50
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
51 " Logtalk opening entity directives
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
52
2034
7bc41231fbc7 Update runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 1668
diff changeset
53 syn region logtalkOpenEntityDir matchgroup=logtalkOpenEntityDirTag start=":- object(" matchgroup=logtalkOpenEntityDirTag end=")\." contains=logtalkEntity,logtalkVariable,logtalkNumber,logtalkOperator,logtalkString,logtalkAtom,logtalkEntityRel,logtalkLineComment
7bc41231fbc7 Update runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 1668
diff changeset
54 syn region logtalkOpenEntityDir matchgroup=logtalkOpenEntityDirTag start=":- protocol(" matchgroup=logtalkOpenEntityDirTag end=")\." contains=logtalkEntity,logtalkVariable,logtalkNumber,logtalkOperator,logtalkEntityRel,logtalkLineComment
7bc41231fbc7 Update runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 1668
diff changeset
55 syn region logtalkOpenEntityDir matchgroup=logtalkOpenEntityDirTag start=":- category(" matchgroup=logtalkOpenEntityDirTag end=")\." contains=logtalkEntity,logtalkVariable,logtalkNumber,logtalkOperator,logtalkEntityRel,logtalkLineComment
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
56
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
57
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
58 " Logtalk closing entity directives
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
59
308
74e9d19831c2 updated for version 7.0081
vimboss
parents: 294
diff changeset
60 syn match logtalkCloseEntityDir ":- end_object\."
74e9d19831c2 updated for version 7.0081
vimboss
parents: 294
diff changeset
61 syn match logtalkCloseEntityDir ":- end_protocol\."
74e9d19831c2 updated for version 7.0081
vimboss
parents: 294
diff changeset
62 syn match logtalkCloseEntityDir ":- end_category\."
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
63
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
64
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
65 " Logtalk entity relations
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
66
1668
0b796e045c42 updated for version 7.2b-000
vimboss
parents: 714
diff changeset
67 syn region logtalkEntityRel matchgroup=logtalkEntityRelTag start="instantiates(" matchgroup=logtalkEntityRelTag end=")" contains=logtalkEntity,logtalkVariable,logtalkNumber,logtalkOperator,logtalkString,logtalkAtom contained
0b796e045c42 updated for version 7.2b-000
vimboss
parents: 714
diff changeset
68 syn region logtalkEntityRel matchgroup=logtalkEntityRelTag start="specializes(" matchgroup=logtalkEntityRelTag end=")" contains=logtalkEntity,logtalkVariable,logtalkNumber,logtalkOperator,logtalkString,logtalkAtom contained
0b796e045c42 updated for version 7.2b-000
vimboss
parents: 714
diff changeset
69 syn region logtalkEntityRel matchgroup=logtalkEntityRelTag start="extends(" matchgroup=logtalkEntityRelTag end=")" contains=logtalkEntity,logtalkVariable,logtalkNumber,logtalkOperator,logtalkString,logtalkAtom contained
0b796e045c42 updated for version 7.2b-000
vimboss
parents: 714
diff changeset
70 syn region logtalkEntityRel matchgroup=logtalkEntityRelTag start="imports(" matchgroup=logtalkEntityRelTag end=")" contains=logtalkEntity,logtalkVariable,logtalkNumber,logtalkOperator,logtalkString,logtalkAtom contained
0b796e045c42 updated for version 7.2b-000
vimboss
parents: 714
diff changeset
71 syn region logtalkEntityRel matchgroup=logtalkEntityRelTag start="implements(" matchgroup=logtalkEntityRelTag end=")" contains=logtalkEntity,logtalkVariable,logtalkNumber,logtalkOperator,logtalkString,logtalkAtom contained
0b796e045c42 updated for version 7.2b-000
vimboss
parents: 714
diff changeset
72 syn region logtalkEntityRel matchgroup=logtalkEntityRelTag start="complements(" matchgroup=logtalkEntityRelTag end=")" contains=logtalkEntity,logtalkVariable,logtalkNumber,logtalkOperator,logtalkString,logtalkAtom contained
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
73
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
74
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
75 " Logtalk directives
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
76
3312
b7811ab264bf updated for version 7.3.423
Bram Moolenaar <bram@vim.org>
parents: 2034
diff changeset
77 syn region logtalkDir matchgroup=logtalkDirTag start=":- if(" matchgroup=logtalkDirTag end=")\." contains=ALL
b7811ab264bf updated for version 7.3.423
Bram Moolenaar <bram@vim.org>
parents: 2034
diff changeset
78 syn region logtalkDir matchgroup=logtalkDirTag start=":- elif(" matchgroup=logtalkDirTag end=")\." contains=ALL
b7811ab264bf updated for version 7.3.423
Bram Moolenaar <bram@vim.org>
parents: 2034
diff changeset
79 syn match logtalkDirTag ":- else\."
b7811ab264bf updated for version 7.3.423
Bram Moolenaar <bram@vim.org>
parents: 2034
diff changeset
80 syn match logtalkDirTag ":- endif\."
214
48c9c2bf59af updated for version 7.0060
vimboss
parents: 21
diff changeset
81 syn region logtalkDir matchgroup=logtalkDirTag start=":- alias(" matchgroup=logtalkDirTag end=")\." contains=ALL
3312
b7811ab264bf updated for version 7.3.423
Bram Moolenaar <bram@vim.org>
parents: 2034
diff changeset
82 syn region logtalkDir matchgroup=logtalkDirTag start=":- coinductive(" matchgroup=logtalkDirTag end=")\." contains=ALL
1668
0b796e045c42 updated for version 7.2b-000
vimboss
parents: 714
diff changeset
83 syn region logtalkDir matchgroup=logtalkDirTag start=":- encoding(" matchgroup=logtalkDirTag end=")\." contains=ALL
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
84 syn region logtalkDir matchgroup=logtalkDirTag start=":- initialization(" matchgroup=logtalkDirTag end=")\." contains=ALL
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
85 syn region logtalkDir matchgroup=logtalkDirTag start=":- info(" matchgroup=logtalkDirTag end=")\." contains=ALL
214
48c9c2bf59af updated for version 7.0060
vimboss
parents: 21
diff changeset
86 syn region logtalkDir matchgroup=logtalkDirTag start=":- mode(" matchgroup=logtalkDirTag end=")\." contains=logtalkOperator, logtalkAtom
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
87 syn region logtalkDir matchgroup=logtalkDirTag start=":- dynamic(" matchgroup=logtalkDirTag end=")\." contains=ALL
14519
5c5908e81e93 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 10051
diff changeset
88 syn match logtalkDirTag ":- built_in\."
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
89 syn match logtalkDirTag ":- dynamic\."
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
90 syn region logtalkDir matchgroup=logtalkDirTag start=":- discontiguous(" matchgroup=logtalkDirTag end=")\." contains=ALL
214
48c9c2bf59af updated for version 7.0060
vimboss
parents: 21
diff changeset
91 syn region logtalkDir matchgroup=logtalkDirTag start=":- multifile(" matchgroup=logtalkDirTag end=")\." contains=ALL
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
92 syn region logtalkDir matchgroup=logtalkDirTag start=":- public(" matchgroup=logtalkDirTag end=")\." contains=ALL
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
93 syn region logtalkDir matchgroup=logtalkDirTag start=":- protected(" matchgroup=logtalkDirTag end=")\." contains=ALL
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
94 syn region logtalkDir matchgroup=logtalkDirTag start=":- private(" matchgroup=logtalkDirTag end=")\." contains=ALL
1668
0b796e045c42 updated for version 7.2b-000
vimboss
parents: 714
diff changeset
95 syn region logtalkDir matchgroup=logtalkDirTag start=":- meta_predicate(" matchgroup=logtalkDirTag end=")\." contains=ALL
3312
b7811ab264bf updated for version 7.3.423
Bram Moolenaar <bram@vim.org>
parents: 2034
diff changeset
96 syn region logtalkDir matchgroup=logtalkDirTag start=":- meta_non_terminal(" matchgroup=logtalkDirTag end=")\." contains=ALL
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
97 syn region logtalkDir matchgroup=logtalkDirTag start=":- op(" matchgroup=logtalkDirTag end=")\." contains=ALL
3312
b7811ab264bf updated for version 7.3.423
Bram Moolenaar <bram@vim.org>
parents: 2034
diff changeset
98 syn region logtalkDir matchgroup=logtalkDirTag start=":- set_logtalk_flag(" matchgroup=logtalkDirTag end=")\." contains=ALL
1668
0b796e045c42 updated for version 7.2b-000
vimboss
parents: 714
diff changeset
99 syn region logtalkDir matchgroup=logtalkDirTag start=":- synchronized(" matchgroup=logtalkDirTag end=")\." contains=ALL
0b796e045c42 updated for version 7.2b-000
vimboss
parents: 714
diff changeset
100 syn match logtalkDirTag ":- synchronized\."
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
101 syn region logtalkDir matchgroup=logtalkDirTag start=":- uses(" matchgroup=logtalkDirTag end=")\." contains=ALL
1668
0b796e045c42 updated for version 7.2b-000
vimboss
parents: 714
diff changeset
102 syn match logtalkDirTag ":- threaded\."
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
103
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
104
3312
b7811ab264bf updated for version 7.3.423
Bram Moolenaar <bram@vim.org>
parents: 2034
diff changeset
105 " Prolog directives
b7811ab264bf updated for version 7.3.423
Bram Moolenaar <bram@vim.org>
parents: 2034
diff changeset
106
b7811ab264bf updated for version 7.3.423
Bram Moolenaar <bram@vim.org>
parents: 2034
diff changeset
107 syn region logtalkDir matchgroup=logtalkDirTag start=":- ensure_loaded(" matchgroup=logtalkDirTag end=")\." contains=ALL
b7811ab264bf updated for version 7.3.423
Bram Moolenaar <bram@vim.org>
parents: 2034
diff changeset
108 syn region logtalkDir matchgroup=logtalkDirTag start=":- include(" matchgroup=logtalkDirTag end=")\." contains=ALL
b7811ab264bf updated for version 7.3.423
Bram Moolenaar <bram@vim.org>
parents: 2034
diff changeset
109 syn region logtalkDir matchgroup=logtalkDirTag start=":- set_prolog_flag(" matchgroup=logtalkDirTag end=")\." contains=ALL
b7811ab264bf updated for version 7.3.423
Bram Moolenaar <bram@vim.org>
parents: 2034
diff changeset
110
b7811ab264bf updated for version 7.3.423
Bram Moolenaar <bram@vim.org>
parents: 2034
diff changeset
111
714
0f9f4761ad9c updated for version 7.0216
vimboss
parents: 308
diff changeset
112 " Module directives
0f9f4761ad9c updated for version 7.0216
vimboss
parents: 308
diff changeset
113
0f9f4761ad9c updated for version 7.0216
vimboss
parents: 308
diff changeset
114 syn region logtalkDir matchgroup=logtalkDirTag start=":- module(" matchgroup=logtalkDirTag end=")\." contains=ALL
0f9f4761ad9c updated for version 7.0216
vimboss
parents: 308
diff changeset
115 syn region logtalkDir matchgroup=logtalkDirTag start=":- export(" matchgroup=logtalkDirTag end=")\." contains=ALL
3312
b7811ab264bf updated for version 7.3.423
Bram Moolenaar <bram@vim.org>
parents: 2034
diff changeset
116 syn region logtalkDir matchgroup=logtalkDirTag start=":- reexport(" matchgroup=logtalkDirTag end=")\." contains=ALL
714
0f9f4761ad9c updated for version 7.0216
vimboss
parents: 308
diff changeset
117 syn region logtalkDir matchgroup=logtalkDirTag start=":- use_module(" matchgroup=logtalkDirTag end=")\." contains=ALL
0f9f4761ad9c updated for version 7.0216
vimboss
parents: 308
diff changeset
118
0f9f4761ad9c updated for version 7.0216
vimboss
parents: 308
diff changeset
119
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
120 " Logtalk built-in predicates
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
121
294
1c1cbdc42f75 updated for version 7.0077
vimboss
parents: 289
diff changeset
122 syn match logtalkBuiltIn "\<\(abolish\|c\(reate\|urrent\)\)_\(object\|protocol\|category\)\ze("
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
123
10
4e2284e71352 updated for version 7.0002
vimboss
parents: 7
diff changeset
124 syn match logtalkBuiltIn "\<\(object\|protocol\|category\)_property\ze("
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
125
3312
b7811ab264bf updated for version 7.3.423
Bram Moolenaar <bram@vim.org>
parents: 2034
diff changeset
126 syn match logtalkBuiltIn "\<co\(mplements_object\|nforms_to_protocol\)\ze("
1668
0b796e045c42 updated for version 7.2b-000
vimboss
parents: 714
diff changeset
127 syn match logtalkBuiltIn "\<extends_\(object\|protocol\|category\)\ze("
10
4e2284e71352 updated for version 7.0002
vimboss
parents: 7
diff changeset
128 syn match logtalkBuiltIn "\<imp\(orts_category\|lements_protocol\)\ze("
1668
0b796e045c42 updated for version 7.2b-000
vimboss
parents: 714
diff changeset
129 syn match logtalkBuiltIn "\<\(instantiat\|specializ\)es_class\ze("
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
130
10
4e2284e71352 updated for version 7.0002
vimboss
parents: 7
diff changeset
131 syn match logtalkBuiltIn "\<\(abolish\|define\)_events\ze("
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
132 syn match logtalkBuiltIn "\<current_event\ze("
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
133
14519
5c5908e81e93 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 10051
diff changeset
134 syn match logtalkBuiltIn "\<\(create\|current\|set\)_logtalk_flag\ze("
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
135
14519
5c5908e81e93 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 10051
diff changeset
136 syn match logtalkBuiltIn "\<logtalk_\(compile\|l\(ibrary_path\|oad\|oad_context\)\|make\(_target_action\)\?\)\ze("
5c5908e81e93 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 10051
diff changeset
137 syn match logtalkBuiltIn "\<logtalk_make\>"
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
138
214
48c9c2bf59af updated for version 7.0060
vimboss
parents: 21
diff changeset
139 syn match logtalkBuiltIn "\<\(for\|retract\)all\ze("
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
140
1668
0b796e045c42 updated for version 7.2b-000
vimboss
parents: 714
diff changeset
141 syn match logtalkBuiltIn "\<threaded\(_\(call\|once\|ignore\|exit\|peek\|wait\|notify\)\)\?\ze("
14519
5c5908e81e93 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 10051
diff changeset
142 syn match logtalkBuiltIn "\<threaded_engine\(_\(create\|destroy\|self\|next\|next_reified\|yield\|post\|fetch\)\)\?\ze("
1668
0b796e045c42 updated for version 7.2b-000
vimboss
parents: 714
diff changeset
143
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
144
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
145 " Logtalk built-in methods
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
146
14519
5c5908e81e93 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 10051
diff changeset
147 syn match logtalkBuiltInMethod "\<context\ze("
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
148 syn match logtalkBuiltInMethod "\<parameter\ze("
10
4e2284e71352 updated for version 7.0002
vimboss
parents: 7
diff changeset
149 syn match logtalkBuiltInMethod "\<se\(lf\|nder\)\ze("
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
150 syn match logtalkBuiltInMethod "\<this\ze("
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
151
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
152 syn match logtalkBuiltInMethod "\<current_predicate\ze("
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
153 syn match logtalkBuiltInMethod "\<predicate_property\ze("
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
154
294
1c1cbdc42f75 updated for version 7.0077
vimboss
parents: 289
diff changeset
155 syn match logtalkBuiltInMethod "\<a\(bolish\|ssert\(a\|z\)\)\ze("
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
156 syn match logtalkBuiltInMethod "\<clause\ze("
294
1c1cbdc42f75 updated for version 7.0077
vimboss
parents: 289
diff changeset
157 syn match logtalkBuiltInMethod "\<retract\(all\)\?\ze("
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
158
10
4e2284e71352 updated for version 7.0002
vimboss
parents: 7
diff changeset
159 syn match logtalkBuiltInMethod "\<\(bag\|set\)of\ze("
4e2284e71352 updated for version 7.0002
vimboss
parents: 7
diff changeset
160 syn match logtalkBuiltInMethod "\<f\(ind\|or\)all\ze("
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
161
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
162 syn match logtalkBuiltInMethod "\<before\ze("
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
163 syn match logtalkBuiltInMethod "\<after\ze("
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
164
14519
5c5908e81e93 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 10051
diff changeset
165 syn match logtalkBuiltInMethod "\<forward\ze("
5c5908e81e93 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 10051
diff changeset
166
3312
b7811ab264bf updated for version 7.3.423
Bram Moolenaar <bram@vim.org>
parents: 2034
diff changeset
167 syn match logtalkBuiltInMethod "\<expand_\(goal\|term\)\ze("
1668
0b796e045c42 updated for version 7.2b-000
vimboss
parents: 714
diff changeset
168 syn match logtalkBuiltInMethod "\<\(goal\|term\)_expansion\ze("
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
169 syn match logtalkBuiltInMethod "\<phrase\ze("
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
170
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
171
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
172 " Mode operators
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
173
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
174 syn match logtalkOperator "?"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
175 syn match logtalkOperator "@"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
176
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
177
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
178 " Control constructs
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
179
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
180 syn match logtalkKeyword "\<true\>"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
181 syn match logtalkKeyword "\<fail\>"
14519
5c5908e81e93 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 10051
diff changeset
182 syn match logtalkKeyword "\<false\>"
10
4e2284e71352 updated for version 7.0002
vimboss
parents: 7
diff changeset
183 syn match logtalkKeyword "\<ca\(ll\|tch\)\ze("
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
184 syn match logtalkOperator "!"
10
4e2284e71352 updated for version 7.0002
vimboss
parents: 7
diff changeset
185 " syn match logtalkOperator ","
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
186 syn match logtalkOperator ";"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
187 syn match logtalkOperator "-->"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
188 syn match logtalkOperator "->"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
189 syn match logtalkKeyword "\<throw\ze("
14519
5c5908e81e93 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 10051
diff changeset
190 syn match logtalkKeyword "\<\(instantiation\|system\)_error\>"
5c5908e81e93 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 10051
diff changeset
191 syn match logtalkKeyword "\<\(type\|domain\|existence\|permission\|representation\|evaluation\|resource\|syntax\)_error\ze("
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
192
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
193
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
194 " Term unification
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
195
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
196 syn match logtalkOperator "="
14519
5c5908e81e93 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 10051
diff changeset
197 syn match logtalkKeyword "\<subsumes_term\ze("
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
198 syn match logtalkKeyword "\<unify_with_occurs_check\ze("
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
199 syn match logtalkOperator "\\="
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
200
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
201
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
202 " Term testing
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
203
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
204 syn match logtalkKeyword "\<var\ze("
294
1c1cbdc42f75 updated for version 7.0077
vimboss
parents: 289
diff changeset
205 syn match logtalkKeyword "\<atom\(ic\)\?\ze("
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
206 syn match logtalkKeyword "\<integer\ze("
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
207 syn match logtalkKeyword "\<float\ze("
3312
b7811ab264bf updated for version 7.3.423
Bram Moolenaar <bram@vim.org>
parents: 2034
diff changeset
208 syn match logtalkKeyword "\<c\(allable\|ompound\)\ze("
10
4e2284e71352 updated for version 7.0002
vimboss
parents: 7
diff changeset
209 syn match logtalkKeyword "\<n\(onvar\|umber\)\ze("
3312
b7811ab264bf updated for version 7.3.423
Bram Moolenaar <bram@vim.org>
parents: 2034
diff changeset
210 syn match logtalkKeyword "\<ground\ze("
14519
5c5908e81e93 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 10051
diff changeset
211 syn match logtalkKeyword "\<acyclic_term\ze("
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
212
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
213
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
214 " Term comparison
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
215
3312
b7811ab264bf updated for version 7.3.423
Bram Moolenaar <bram@vim.org>
parents: 2034
diff changeset
216 syn match logtalkKeyword "\<compare\ze("
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
217 syn match logtalkOperator "@=<"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
218 syn match logtalkOperator "=="
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
219 syn match logtalkOperator "\\=="
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
220 syn match logtalkOperator "@<"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
221 syn match logtalkOperator "@>"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
222 syn match logtalkOperator "@>="
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
223
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
224
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
225 " Term creation and decomposition
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
226
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
227 syn match logtalkKeyword "\<functor\ze("
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
228 syn match logtalkKeyword "\<arg\ze("
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
229 syn match logtalkOperator "=\.\."
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
230 syn match logtalkKeyword "\<copy_term\ze("
3312
b7811ab264bf updated for version 7.3.423
Bram Moolenaar <bram@vim.org>
parents: 2034
diff changeset
231 syn match logtalkKeyword "\<numbervars\ze("
14519
5c5908e81e93 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 10051
diff changeset
232 syn match logtalkKeyword "\<term_variables\ze("
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
233
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
234
14519
5c5908e81e93 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 10051
diff changeset
235 " Predicate aliases
5c5908e81e93 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 10051
diff changeset
236
5c5908e81e93 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 10051
diff changeset
237 syn match logtalkOperator "\<as\>"
5c5908e81e93 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 10051
diff changeset
238
5c5908e81e93 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 10051
diff changeset
239
5c5908e81e93 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 10051
diff changeset
240 " Arithmetic evaluation
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
241
214
48c9c2bf59af updated for version 7.0060
vimboss
parents: 21
diff changeset
242 syn match logtalkOperator "\<is\>"
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
243
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
244
14519
5c5908e81e93 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 10051
diff changeset
245 " Arithmetic comparison
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
246
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
247 syn match logtalkOperator "=:="
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
248 syn match logtalkOperator "=\\="
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
249 syn match logtalkOperator "<"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
250 syn match logtalkOperator "=<"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
251 syn match logtalkOperator ">"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
252 syn match logtalkOperator ">="
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
253
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
254
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
255 " Stream selection and control
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
256
1668
0b796e045c42 updated for version 7.2b-000
vimboss
parents: 714
diff changeset
257 syn match logtalkKeyword "\<\(curren\|se\)t_\(in\|out\)put\ze("
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
258 syn match logtalkKeyword "\<open\ze("
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
259 syn match logtalkKeyword "\<close\ze("
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
260 syn match logtalkKeyword "\<flush_output\ze("
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
261 syn match logtalkKeyword "\<flush_output\>"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
262 syn match logtalkKeyword "\<stream_property\ze("
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
263 syn match logtalkKeyword "\<at_end_of_stream\ze("
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
264 syn match logtalkKeyword "\<at_end_of_stream\>"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
265 syn match logtalkKeyword "\<set_stream_position\ze("
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
266
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
267
10
4e2284e71352 updated for version 7.0002
vimboss
parents: 7
diff changeset
268 " Character and byte input/output
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
269
294
1c1cbdc42f75 updated for version 7.0077
vimboss
parents: 289
diff changeset
270 syn match logtalkKeyword "\<\(get\|p\(eek\|ut\)\)_\(c\(har\|ode\)\|byte\)\ze("
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
271 syn match logtalkKeyword "\<nl\ze("
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
272 syn match logtalkKeyword "\<nl\>"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
273
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
274
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
275 " Term input/output
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
276
294
1c1cbdc42f75 updated for version 7.0077
vimboss
parents: 289
diff changeset
277 syn match logtalkKeyword "\<read\(_term\)\?\ze("
1c1cbdc42f75 updated for version 7.0077
vimboss
parents: 289
diff changeset
278 syn match logtalkKeyword "\<write\(q\|_\(canonical\|term\)\)\?\ze("
1c1cbdc42f75 updated for version 7.0077
vimboss
parents: 289
diff changeset
279 syn match logtalkKeyword "\<\(current_\)\?op\ze("
1668
0b796e045c42 updated for version 7.2b-000
vimboss
parents: 714
diff changeset
280 syn match logtalkKeyword "\<\(current_\)\?char_conversion\ze("
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
281
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
282
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
283 " Logic and control
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
284
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
285 syn match logtalkOperator "\\+"
3312
b7811ab264bf updated for version 7.3.423
Bram Moolenaar <bram@vim.org>
parents: 2034
diff changeset
286 syn match logtalkKeyword "\<ignore\ze("
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
287 syn match logtalkKeyword "\<once\ze("
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
288 syn match logtalkKeyword "\<repeat\>"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
289
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
290
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
291 " Atomic term processing
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
292
294
1c1cbdc42f75 updated for version 7.0077
vimboss
parents: 289
diff changeset
293 syn match logtalkKeyword "\<atom_\(length\|c\(hars\|o\(ncat\|des\)\)\)\ze("
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
294 syn match logtalkKeyword "\<sub_atom\ze("
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
295 syn match logtalkKeyword "\<char_code\ze("
1668
0b796e045c42 updated for version 7.2b-000
vimboss
parents: 714
diff changeset
296 syn match logtalkKeyword "\<number_c\(har\|ode\)s\ze("
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
297
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
298
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
299 " Implementation defined hooks functions
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
300
1668
0b796e045c42 updated for version 7.2b-000
vimboss
parents: 714
diff changeset
301 syn match logtalkKeyword "\<\(curren\|se\)t_prolog_flag\ze("
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
302 syn match logtalkKeyword "\<halt\ze("
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
303 syn match logtalkKeyword "\<halt\>"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
304
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
305
3312
b7811ab264bf updated for version 7.3.423
Bram Moolenaar <bram@vim.org>
parents: 2034
diff changeset
306 " Sorting
b7811ab264bf updated for version 7.3.423
Bram Moolenaar <bram@vim.org>
parents: 2034
diff changeset
307
b7811ab264bf updated for version 7.3.423
Bram Moolenaar <bram@vim.org>
parents: 2034
diff changeset
308 syn match logtalkKeyword "\<\(key\)\?sort\ze("
b7811ab264bf updated for version 7.3.423
Bram Moolenaar <bram@vim.org>
parents: 2034
diff changeset
309
b7811ab264bf updated for version 7.3.423
Bram Moolenaar <bram@vim.org>
parents: 2034
diff changeset
310
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
311 " Evaluable functors
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
312
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
313 syn match logtalkOperator "+"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
314 syn match logtalkOperator "-"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
315 syn match logtalkOperator "\*"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
316 syn match logtalkOperator "//"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
317 syn match logtalkOperator "/"
14519
5c5908e81e93 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 10051
diff changeset
318 syn match logtalkKeyword "\<div\ze("
294
1c1cbdc42f75 updated for version 7.0077
vimboss
parents: 289
diff changeset
319 syn match logtalkKeyword "\<r\(ound\|em\)\ze("
3312
b7811ab264bf updated for version 7.3.423
Bram Moolenaar <bram@vim.org>
parents: 2034
diff changeset
320 syn match logtalkKeyword "\<e\>"
b7811ab264bf updated for version 7.3.423
Bram Moolenaar <bram@vim.org>
parents: 2034
diff changeset
321 syn match logtalkKeyword "\<pi\>"
14519
5c5908e81e93 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 10051
diff changeset
322 syn match logtalkKeyword "\<div\>"
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
323 syn match logtalkKeyword "\<rem\>"
14519
5c5908e81e93 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 10051
diff changeset
324 syn match logtalkKeyword "\<m\(ax\|in\|od\)\ze("
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
325 syn match logtalkKeyword "\<mod\>"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
326 syn match logtalkKeyword "\<abs\ze("
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
327 syn match logtalkKeyword "\<sign\ze("
294
1c1cbdc42f75 updated for version 7.0077
vimboss
parents: 289
diff changeset
328 syn match logtalkKeyword "\<flo\(or\|at\(_\(integer\|fractional\)_part\)\?\)\ze("
14519
5c5908e81e93 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 10051
diff changeset
329 syn match logtalkKeyword "\<t\(an\|runcate\)\ze("
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
330 syn match logtalkKeyword "\<ceiling\ze("
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
331
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
332
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
333 " Other arithemtic functors
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
334
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
335 syn match logtalkOperator "\*\*"
10
4e2284e71352 updated for version 7.0002
vimboss
parents: 7
diff changeset
336 syn match logtalkKeyword "\<s\(in\|qrt\)\ze("
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
337 syn match logtalkKeyword "\<cos\ze("
14519
5c5908e81e93 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 10051
diff changeset
338 syn match logtalkKeyword "\<a\(cos\|sin\|tan\|tan2\)\ze("
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
339 syn match logtalkKeyword "\<exp\ze("
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
340 syn match logtalkKeyword "\<log\ze("
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
341
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
342
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
343 " Bitwise functors
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
344
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
345 syn match logtalkOperator ">>"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
346 syn match logtalkOperator "<<"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
347 syn match logtalkOperator "/\\"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
348 syn match logtalkOperator "\\/"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
349 syn match logtalkOperator "\\"
14519
5c5908e81e93 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 10051
diff changeset
350 syn match logtalkKeyword "\<xor\ze("
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
351
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
352
294
1c1cbdc42f75 updated for version 7.0077
vimboss
parents: 289
diff changeset
353 " Logtalk list operator
1c1cbdc42f75 updated for version 7.0077
vimboss
parents: 289
diff changeset
354
1c1cbdc42f75 updated for version 7.0077
vimboss
parents: 289
diff changeset
355 syn match logtalkOperator "|"
1c1cbdc42f75 updated for version 7.0077
vimboss
parents: 289
diff changeset
356
1c1cbdc42f75 updated for version 7.0077
vimboss
parents: 289
diff changeset
357
3312
b7811ab264bf updated for version 7.3.423
Bram Moolenaar <bram@vim.org>
parents: 2034
diff changeset
358 " Logtalk existential quantifier operator
b7811ab264bf updated for version 7.3.423
Bram Moolenaar <bram@vim.org>
parents: 2034
diff changeset
359
b7811ab264bf updated for version 7.3.423
Bram Moolenaar <bram@vim.org>
parents: 2034
diff changeset
360 syn match logtalkOperator "\^"
b7811ab264bf updated for version 7.3.423
Bram Moolenaar <bram@vim.org>
parents: 2034
diff changeset
361
b7811ab264bf updated for version 7.3.423
Bram Moolenaar <bram@vim.org>
parents: 2034
diff changeset
362
b7811ab264bf updated for version 7.3.423
Bram Moolenaar <bram@vim.org>
parents: 2034
diff changeset
363 " Logtalk numbers
294
1c1cbdc42f75 updated for version 7.0077
vimboss
parents: 289
diff changeset
364
1c1cbdc42f75 updated for version 7.0077
vimboss
parents: 289
diff changeset
365 syn match logtalkNumber "\<\d\+\>"
1c1cbdc42f75 updated for version 7.0077
vimboss
parents: 289
diff changeset
366 syn match logtalkNumber "\<\d\+\.\d\+\>"
1c1cbdc42f75 updated for version 7.0077
vimboss
parents: 289
diff changeset
367 syn match logtalkNumber "\<\d\+[eE][-+]\=\d\+\>"
1c1cbdc42f75 updated for version 7.0077
vimboss
parents: 289
diff changeset
368 syn match logtalkNumber "\<\d\+\.\d\+[eE][-+]\=\d\+\>"
14519
5c5908e81e93 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 10051
diff changeset
369 syn match logtalkNumber "\<0'[\\]\?.\|0''\|0'\"\>"
294
1c1cbdc42f75 updated for version 7.0077
vimboss
parents: 289
diff changeset
370 syn match logtalkNumber "\<0b[0-1]\+\>"
308
74e9d19831c2 updated for version 7.0081
vimboss
parents: 294
diff changeset
371 syn match logtalkNumber "\<0o\o\+\>"
294
1c1cbdc42f75 updated for version 7.0077
vimboss
parents: 289
diff changeset
372 syn match logtalkNumber "\<0x\x\+\>"
1c1cbdc42f75 updated for version 7.0077
vimboss
parents: 289
diff changeset
373
1c1cbdc42f75 updated for version 7.0077
vimboss
parents: 289
diff changeset
374
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
375 " Logtalk end-of-clause
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
376
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
377 syn match logtalkOperator "\."
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
378
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
379
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
380 " Logtalk comments
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
381
308
74e9d19831c2 updated for version 7.0081
vimboss
parents: 294
diff changeset
382 syn region logtalkBlockComment start="/\*" end="\*/" fold
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
383 syn match logtalkLineComment "%.*"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
384
3312
b7811ab264bf updated for version 7.3.423
Bram Moolenaar <bram@vim.org>
parents: 2034
diff changeset
385 syn cluster logtalkComment contains=logtalkBlockComment,logtalkLineComment
b7811ab264bf updated for version 7.3.423
Bram Moolenaar <bram@vim.org>
parents: 2034
diff changeset
386
b7811ab264bf updated for version 7.3.423
Bram Moolenaar <bram@vim.org>
parents: 2034
diff changeset
387
b7811ab264bf updated for version 7.3.423
Bram Moolenaar <bram@vim.org>
parents: 2034
diff changeset
388 " Logtalk conditional compilation folding
b7811ab264bf updated for version 7.3.423
Bram Moolenaar <bram@vim.org>
parents: 2034
diff changeset
389
b7811ab264bf updated for version 7.3.423
Bram Moolenaar <bram@vim.org>
parents: 2034
diff changeset
390 syn region logtalkIfContainer transparent keepend extend start=":- if(" end=":- endif\." containedin=ALLBUT,@logtalkComment contains=NONE
b7811ab264bf updated for version 7.3.423
Bram Moolenaar <bram@vim.org>
parents: 2034
diff changeset
391 syn region logtalkIf transparent fold keepend start=":- if(" end=":- \(else\.\|elif(\)"ms=s-1,me=s-1 contained containedin=logtalkIfContainer nextgroup=logtalkElseIf,logtalkElse contains=TOP
b7811ab264bf updated for version 7.3.423
Bram Moolenaar <bram@vim.org>
parents: 2034
diff changeset
392 syn region logtalkElseIf transparent fold keepend start=":- elif(" end=":- \(else\.\|elif(\)"ms=s-1,me=s-1 contained containedin=logtalkIfContainer nextgroup=logtalkElseIf,logtalkElse contains=TOP
b7811ab264bf updated for version 7.3.423
Bram Moolenaar <bram@vim.org>
parents: 2034
diff changeset
393 syn region logtalkElse transparent fold keepend start=":- else\." end=":- endif\." contained containedin=logtalkIfContainer contains=TOP
b7811ab264bf updated for version 7.3.423
Bram Moolenaar <bram@vim.org>
parents: 2034
diff changeset
394
b7811ab264bf updated for version 7.3.423
Bram Moolenaar <bram@vim.org>
parents: 2034
diff changeset
395
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
396
308
74e9d19831c2 updated for version 7.0081
vimboss
parents: 294
diff changeset
397 " Logtalk entity folding
74e9d19831c2 updated for version 7.0081
vimboss
parents: 294
diff changeset
398
74e9d19831c2 updated for version 7.0081
vimboss
parents: 294
diff changeset
399 syn region logtalkEntity transparent fold keepend start=":- object(" end=":- end_object\." contains=ALL
74e9d19831c2 updated for version 7.0081
vimboss
parents: 294
diff changeset
400 syn region logtalkEntity transparent fold keepend start=":- protocol(" end=":- end_protocol\." contains=ALL
74e9d19831c2 updated for version 7.0081
vimboss
parents: 294
diff changeset
401 syn region logtalkEntity transparent fold keepend start=":- category(" end=":- end_category\." contains=ALL
74e9d19831c2 updated for version 7.0081
vimboss
parents: 294
diff changeset
402
74e9d19831c2 updated for version 7.0081
vimboss
parents: 294
diff changeset
403
214
48c9c2bf59af updated for version 7.0060
vimboss
parents: 21
diff changeset
404 syn sync ccomment logtalkBlockComment maxlines=50
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
405
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
406
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
407 " Define the default highlighting.
10048
43efa4f5a8ea commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents: 3312
diff changeset
408 " Only when an item doesn't have highlighting yet
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
409
10051
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
410 hi def link logtalkBlockComment Comment
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
411 hi def link logtalkLineComment Comment
10048
43efa4f5a8ea commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents: 3312
diff changeset
412
10051
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
413 hi def link logtalkOpenEntityDir Normal
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
414 hi def link logtalkOpenEntityDirTag PreProc
1668
0b796e045c42 updated for version 7.2b-000
vimboss
parents: 714
diff changeset
415
10051
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
416 hi def link logtalkIfContainer PreProc
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
417 hi def link logtalkIf PreProc
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
418 hi def link logtalkElseIf PreProc
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
419 hi def link logtalkElse PreProc
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
420
10051
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
421 hi def link logtalkEntity Normal
3312
b7811ab264bf updated for version 7.3.423
Bram Moolenaar <bram@vim.org>
parents: 2034
diff changeset
422
10051
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
423 hi def link logtalkEntityRel Normal
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
424 hi def link logtalkEntityRelTag PreProc
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
425
10051
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
426 hi def link logtalkCloseEntityDir PreProc
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
427
10051
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
428 hi def link logtalkDir Normal
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
429 hi def link logtalkDirTag PreProc
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
430
10051
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
431 hi def link logtalkAtom String
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
432 hi def link logtalkString String
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
433 hi def link logtalkEscapeSequence SpecialChar
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
434
10051
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
435 hi def link logtalkNumber Number
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
436
10051
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
437 hi def link logtalkKeyword Keyword
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
438
10051
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
439 hi def link logtalkBuiltIn Keyword
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
440 hi def link logtalkBuiltInMethod Keyword
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
441
10051
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
442 hi def link logtalkOperator Operator
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
443
10051
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
444 hi def link logtalkExtCall Normal
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
445 hi def link logtalkExtCallTag Operator
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
446
10051
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
447 hi def link logtalkVariable Identifier
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
448
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
449
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
450
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
451 let b:current_syntax = "logtalk"
3312
b7811ab264bf updated for version 7.3.423
Bram Moolenaar <bram@vim.org>
parents: 2034
diff changeset
452
b7811ab264bf updated for version 7.3.423
Bram Moolenaar <bram@vim.org>
parents: 2034
diff changeset
453 let &cpo = s:cpo_save
b7811ab264bf updated for version 7.3.423
Bram Moolenaar <bram@vim.org>
parents: 2034
diff changeset
454 unlet s:cpo_save