mirror of
https://github.com/cmur2/joe-syntax.git
synced 2024-12-22 02:54:23 +01:00
Predicate highlight for Prolog
This is done by using mark/endmark and recolormark facilities of jsf.
This commit is contained in:
parent
fe6271c08a
commit
051fb7e61b
21
prolog.jsf
21
prolog.jsf
@ -19,7 +19,11 @@
|
|||||||
"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
|
|
||||||
|
# marking -> predicate hilite
|
||||||
|
# buffering -> keyword hilite
|
||||||
|
"a-z" atom mark buffer
|
||||||
|
|
||||||
"A-Z" variable recolor=-1
|
"A-Z" variable recolor=-1
|
||||||
"_" _variable
|
"_" _variable
|
||||||
"[]" brace recolor=-1
|
"[]" brace recolor=-1
|
||||||
@ -94,7 +98,7 @@
|
|||||||
|
|
||||||
# list of keywords includes some predicates...
|
# list of keywords includes some predicates...
|
||||||
:atom Idle
|
:atom Idle
|
||||||
* idle noeat strings
|
* atom_end noeat markend strings
|
||||||
"append" kw
|
"append" kw
|
||||||
"atom" kw
|
"atom" kw
|
||||||
"atomic" kw
|
"atomic" kw
|
||||||
@ -127,6 +131,19 @@ done
|
|||||||
:kw Keyword
|
:kw Keyword
|
||||||
* idle noeat
|
* idle noeat
|
||||||
|
|
||||||
|
:atom_end Idle
|
||||||
|
* idle noeat
|
||||||
|
" " atom_end
|
||||||
|
"(" pred_end recolormark
|
||||||
|
":" maybe_pred_end
|
||||||
|
|
||||||
|
:pred_end Bad
|
||||||
|
* idle noeat
|
||||||
|
|
||||||
|
:maybe_pred_end Idle
|
||||||
|
* idle noeat
|
||||||
|
"-" pred_end recolormark
|
||||||
|
|
||||||
:variable Variable
|
:variable Variable
|
||||||
* idle noeat
|
* idle noeat
|
||||||
"a-zA-Z0-9_" variable
|
"a-zA-Z0-9_" variable
|
||||||
|
Loading…
Reference in New Issue
Block a user