cppo icon indicating copy to clipboard operation
cppo copied to clipboard

question: why comments are ignored

Open bobzhang opened this issue 8 years ago • 3 comments

it is quite common that comments are abstracted as well, for example:

#define Make(t)\
  (** [t] *) \
  type elt  =  t  

In general, you wish both to bel replaced

bobzhang avatar Apr 26 '17 02:04 bobzhang

I like the idea. I just didn't think about it originally.

If anyone wants to work on this feature, go for it.

mjambon avatar Apr 26 '17 21:04 mjambon

Would not be that don't treat comment in a special way good enough? Did I miss anything?

bobzhang avatar Apr 27 '17 03:04 bobzhang

Yes, I think it would be enough. (* and *) need to be identified as tokens other than simple parentheses but other than that, the contents could be anything.

If we uncover incompatibilities with existing code, I think it's reasonable to just document them and release cppo with a new major version number.

mjambon avatar Apr 27 '17 18:04 mjambon