2004-06-13 19:04:28 +01:00
|
|
|
; TextPad syntax definitions for Logtalk (http://www.logtalk.org/)
|
|
|
|
;
|
|
|
|
; Author: Paulo Moura
|
2006-03-26 18:31:34 +01:00
|
|
|
; Last changed in: February 24, 2006
|
2004-06-13 19:04:28 +01:00
|
|
|
;
|
|
|
|
; 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
|
2005-08-08 13:13:45 +01:00
|
|
|
StringStart = "
|
|
|
|
StringEnd = "
|
|
|
|
StringAlt =
|
|
|
|
StringEsc = \
|
|
|
|
CharStart = '
|
|
|
|
CharEnd = '
|
|
|
|
CharEsc = \
|
2004-06-13 19:04:28 +01:00
|
|
|
|
|
|
|
|
|
|
|
[Keywords 1]
|
|
|
|
|
|
|
|
; Logtalk message sending operators
|
|
|
|
|
|
|
|
^^
|
|
|
|
:-
|
|
|
|
.
|
|
|
|
,
|
|
|
|
;
|
|
|
|
::
|
|
|
|
|
|
|
|
|
|
|
|
; Logtalk external call
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
[Keywords 2]
|
|
|
|
|
|
|
|
; Logtalk opening entity directives
|
|
|
|
object
|
|
|
|
protocol
|
|
|
|
category
|
2005-12-24 18:00:21 +00:00
|
|
|
module
|
2004-06-13 19:04:28 +01:00
|
|
|
|
|
|
|
|
|
|
|
; Logtalk closing entity directives
|
|
|
|
end_object
|
|
|
|
end_protocol
|
|
|
|
end_category
|
|
|
|
|
|
|
|
; Logtalk entity relations
|
|
|
|
instantiates
|
|
|
|
specializes
|
|
|
|
extends
|
|
|
|
imports
|
|
|
|
implements
|
|
|
|
|
|
|
|
|
|
|
|
[Keywords 3]
|
|
|
|
|
|
|
|
; Logtalk directives
|
2004-09-15 00:11:12 +01:00
|
|
|
alias
|
2005-04-23 00:57:45 +01:00
|
|
|
encoding
|
2005-12-24 18:00:21 +00:00
|
|
|
export
|
2004-06-13 19:04:28 +01:00
|
|
|
initialization
|
|
|
|
info
|
|
|
|
mode
|
|
|
|
dynamic
|
|
|
|
discontiguous
|
2004-07-09 00:48:59 +01:00
|
|
|
multifile
|
2004-06-13 19:04:28 +01:00
|
|
|
public
|
|
|
|
protected
|
|
|
|
private
|
2005-12-24 18:00:21 +00:00
|
|
|
meta_predicate
|
2004-06-13 19:04:28 +01:00
|
|
|
op
|
|
|
|
calls
|
|
|
|
uses
|
2005-12-24 18:00:21 +00:00
|
|
|
use_module
|
2006-11-07 17:11:47 +00:00
|
|
|
threaded
|
2004-06-13 19:04:28 +01:00
|
|
|
|
|
|
|
|
|
|
|
[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_class
|
|
|
|
specializes_class
|
|
|
|
imports_category
|
|
|
|
abolish_events
|
|
|
|
current_event
|
|
|
|
define_events
|
|
|
|
current_logtalk_flag
|
|
|
|
set_logtalk_flag
|
|
|
|
logtalk_compile
|
|
|
|
logtalk_load
|
2005-02-10 00:02:06 +00:00
|
|
|
logtalk_library_path
|
2004-06-13 19:04:28 +01:00
|
|
|
forall
|
|
|
|
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
|
2004-09-30 21:28:42 +01:00
|
|
|
expand_term
|
2006-03-26 18:31:34 +01:00
|
|
|
term_expansion
|
2004-06-13 19:04:28 +01:00
|
|
|
phrase
|
2006-11-07 17:11:47 +00:00
|
|
|
threaded_call
|
|
|
|
threaded_exit
|
2004-06-13 19:04:28 +01:00
|
|
|
|
|
|
|
; 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
|
|
|
|
|
|
|
|
|
|
|
|
|
|