Phosphorus15/intellij-prolog

operator not recognized =..

javatlacati opened this issue · 1 comments

The operator =.. is not defined, and probably some others.

Such operator is documented here.

How to reproduce

Example code:

dbretrieve2(TupleDesc, QueueNum, TupCall ) :-
      TupleDesc =.. [_:TupleList] ,%TupleHead
      repeat,
      p_getTuple(TupleList,Eof, TupCall) ,
      ( (Eof == true, p_freeQueue(QueueNum) ,! ,fail) ;
      true) .

which produces the error:

':-' or const_id expected, got '.'

proposed solution

I think the operator can be added in the file prologLexer.flex

Done! thanks for the good work.