lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


On Sunday 20 June 2004 16:39, Jadek wrote:
> Regarding /* */, I have nothing against them, however they don't quite mesh
> with
> 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 
just consider
--[[ ... ]]
--[*[ ... ]*]
--[**[ ... ]**]
etc., up to to say 20, to be independent comment syntaxes?

-- Jamie Webb