CSPM comments
-
Douglas Creager
(from [fd9cdd7357a88d95e8b3400bf730bd3ed2675653]) Single-line comments
The CSPM compiler now supports single comments:
-- This is a comment
a = 5 -- this is a number b = 6 -- so is this
c = a + -- add them together
bAs shown in this example (which is in the test suite), a single-line comment counts as a newline. (If it didn't, the “a” and “b” variables wouldn't be properly defined, since a definition must end with a newline.)
Lighthouse: [#16 CSPM comments] http://github.com/hst/hst/commit...
-
Douglas Creager
(from [80bcfc675379f024f3f4c37770bb755c07e2ce8e]) Block comments
The CSPM compiler now supports block comments:
{-
This is a comment. {- Block comments should nest. -} -- Technically line comments are good inside block comments, too, -- but this has no real meaning since "--" has no special meaning-- in a block comment. -}
Lighthouse: [#16 CSPM comments status:resolved] http://github.com/hst/hst/commit...
-
Douglas Creager
- Milestone set to 1.0-α4
- State changed from new to resolved
Please Sign in or create a free account to add a new ticket.
With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.