mirror of
https://github.com/cmur2/joe-syntax.git
synced 2024-12-22 12:54:23 +01:00
Extended prolog.jsf
New features: - multiline comments - brace detection (magenta) for e.g. lists - long list of keywords
This commit is contained in:
parent
5b95c54985
commit
7904eb9dbf
54
prolog.jsf
54
prolog.jsf
@ -8,19 +8,41 @@
|
|||||||
=Keyword bold
|
=Keyword bold
|
||||||
=Bad bold red
|
=Bad bold red
|
||||||
|
|
||||||
|
# since lists are important...
|
||||||
|
=Brace magenta
|
||||||
|
|
||||||
:idle Idle
|
:idle Idle
|
||||||
* idle
|
* idle
|
||||||
"%" comment recolor=-1
|
"\n" idle
|
||||||
|
"%" line_comment recolor=-1
|
||||||
|
"/" maybe_comment
|
||||||
"0-9" first_digit recolor=-1
|
"0-9" first_digit recolor=-1
|
||||||
"'" string_sq_1 recolor=-1
|
"'" string_sq_1 recolor=-1
|
||||||
"\"" string_dq_1 recolor=-1
|
"\"" string_dq_1 recolor=-1
|
||||||
"a-z" atom buffer
|
"a-z" atom buffer
|
||||||
"A-Z" variable recolor=-1
|
"A-Z" variable recolor=-1
|
||||||
"_" _variable
|
"_" _variable
|
||||||
|
"[]" brace recolor=-1
|
||||||
|
|
||||||
|
:line_comment Comment
|
||||||
|
* line_comment
|
||||||
|
"\n" idle
|
||||||
|
|
||||||
|
:maybe_comment Idle
|
||||||
|
* idle noeat
|
||||||
|
"*" comment recolor=-2
|
||||||
|
|
||||||
:comment Comment
|
:comment Comment
|
||||||
* comment
|
* comment
|
||||||
"\n" idle
|
"*" maybe_end_comment
|
||||||
|
|
||||||
|
:maybe_end_comment Comment
|
||||||
|
* comment
|
||||||
|
"/" idle
|
||||||
|
"*" maybe_end_comment
|
||||||
|
|
||||||
|
:brace Brace
|
||||||
|
* idle noeat
|
||||||
|
|
||||||
:string_sq_1 Constant
|
:string_sq_1 Constant
|
||||||
* string_sq noeat
|
* string_sq noeat
|
||||||
@ -70,11 +92,35 @@
|
|||||||
* idle noeat
|
* idle noeat
|
||||||
"0-9" enum
|
"0-9" enum
|
||||||
|
|
||||||
|
# list of keywords includes some predicates...
|
||||||
:atom Idle
|
:atom Idle
|
||||||
* idle noeat strings
|
* idle noeat strings
|
||||||
"write" kw
|
"append" kw
|
||||||
"nl" kw
|
"atom" kw
|
||||||
|
"atomic" kw
|
||||||
|
"call" kw
|
||||||
|
"catch" kw
|
||||||
|
"clause" kw
|
||||||
|
"close" kw
|
||||||
"fail" kw
|
"fail" kw
|
||||||
|
"findall" kw
|
||||||
|
"float" kw
|
||||||
|
"halt" kw
|
||||||
|
"integer" kw
|
||||||
|
"is" kw
|
||||||
|
"member" kw
|
||||||
|
"nl" kw
|
||||||
|
"nonvar" kw
|
||||||
|
"number" kw
|
||||||
|
"once" kw
|
||||||
|
"op" kw
|
||||||
|
"open" kw
|
||||||
|
"read" kw
|
||||||
|
"repeat" kw
|
||||||
|
"throw" kw
|
||||||
|
"true" kw
|
||||||
|
"var" kw
|
||||||
|
"write" kw
|
||||||
done
|
done
|
||||||
"a-zA-Z0-9_" atom
|
"a-zA-Z0-9_" atom
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user