Skip to content

Commit b876268

Browse files
committed
Update Logtalk runtime files for the latest language spec
Signed-off-by: Paulo Moura <pmoura@logtalk.org>
1 parent 62d8f3d commit b876268

2 files changed

Lines changed: 6 additions & 3 deletions

File tree

runtime/ftplugin/logtalk.dict

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,7 @@ deprecated
7272
discontiguous
7373
div
7474
domain_error
75+
consistency_error
7576
duplicated_directives
7677
dynamic
7778
dynamic_declarations
@@ -144,6 +145,7 @@ min
144145
missing_directives
145146
mod
146147
mode
148+
mode_non_terminal
147149
modules
148150
multifile
149151
nl

runtime/syntax/logtalk.vim

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"
33
" Language: Logtalk
44
" Maintainer: Paulo Moura <pmoura@logtalk.org>
5-
" Last Change: December 16, 2023
5+
" Last Change: October 6, 2025
66

77

88

@@ -37,7 +37,7 @@ syn region logtalkAtom start=+'+ skip=+\\'+ end=+'+ contains=logtalkEscapeSequ
3737
syn match logtalkEscapeSequence contained "\\\([\\abfnrtv\"\']\|\(x[a-fA-F0-9]\+\|[0-7]\+\)\\\)"
3838

3939

40-
" Logtalk message sending operators
40+
" Logtalk message-sending operators
4141

4242
syn match logtalkOperator "::"
4343
syn match logtalkOperator "\(0'\)\@<!:"
@@ -85,6 +85,7 @@ syn region logtalkDir matchgroup=logtalkDirTag start=":- encoding(" matchgroup
8585
syn region logtalkDir matchgroup=logtalkDirTag start=":- initialization(" matchgroup=logtalkDirTag end=")\." contains=ALL
8686
syn region logtalkDir matchgroup=logtalkDirTag start=":- info(" matchgroup=logtalkDirTag end=")\." contains=ALL
8787
syn region logtalkDir matchgroup=logtalkDirTag start=":- mode(" matchgroup=logtalkDirTag end=")\." contains=logtalkOperator, logtalkAtom
88+
syn region logtalkDir matchgroup=logtalkDirTag start=":- mode_non_terminal(" matchgroup=logtalkDirTag end=")\." contains=logtalkOperator, logtalkAtom
8889
syn region logtalkDir matchgroup=logtalkDirTag start=":- dynamic(" matchgroup=logtalkDirTag end=")\." contains=ALL
8990
syn match logtalkDirTag ":- built_in\."
9091
syn match logtalkDirTag ":- dynamic\."
@@ -189,7 +190,7 @@ syn match logtalkOperator "-->"
189190
syn match logtalkOperator "->"
190191
syn match logtalkKeyword "\<throw\ze("
191192
syn match logtalkKeyword "\<\(instantiation\|system\)_error\>"
192-
syn match logtalkKeyword "\<\(uninstantiation\|type\|domain\|existence\|permission\|representation\|evaluation\|resource\|syntax\)_error\ze("
193+
syn match logtalkKeyword "\<\(uninstantiation\|type\|domain\|consistency\|existence\|permission\|representation\|evaluation\|resource\|syntax\)_error\ze("
193194

194195

195196
" Term unification

0 commit comments

Comments
 (0)