[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: New long comments in 5.1
- From: Jamie Webb <j@...>
- Date: Sun, 20 Jun 2004 18:03:36 +0100
On Sunday 20 June 2004 16:39, Jadek wrote:
> Regarding /* */, I have nothing against them, however they don't quite mesh
> the line comment style.
If /* ... */ were adopted, I think // should be too, with -- maybe removed in
Lua 6. Otherwise, -# ... #- is always a possibility, but I can't think of a
good string syntax to match. Maybe use #- ... -# and #" ... "#? That's nicely
consistent and extends readily to ###- ... -###.
> Also, at least one case has been brought up where
> they could appear in valid code.
Are you sure? * and / are both binary-only operators in Lua, so I don't see
how they could appear in sequence.
Incidentally, whoever it was who mentioned syntax highlighting, couldn't you
--[[ ... ]]
--[*[ ... ]*]
--[**[ ... ]**]
etc., up to to say 20, to be independent comment syntaxes?
-- Jamie Webb