From: Joachim S. <jsc...@co...> - 2017-10-07 00:08:19
|
On 06/10/17 14:51, Arthur Wang wrote: > Hi there, > > In code formatting of VSC-Prolog, I can handle comments between clauses but > it's buggy to keep comments inside of a clause. I use regex in node.js to find > comments inside of a clause because I have not found any predicates to get > information about inside comments. The problem of regex is that it's hardly > possible to distinguish '%' in printf with that '%' of line comment. In principle, regular expressions should be able to tell what is inside and what is outside of a string. > Are there any mechanisms to get inside comments in ECLiPSe like SWI-Prolog? No, there is no support for reading such comments. -- Joachim |