Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

CSPM comments

#16

The CSPM compiler doesn't currently support comments.

Reported by Douglas Creager · January 12th, 2009 @ 10:55 PM

State: resolved
Milestone: 1.0-α4
Assigned to: Douglas Creager Douglas Creager

Activity

  1. Douglas Creager
    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

      b
    
    

    As 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...

    January 13th, 2009 @ 12:00 AM

  2. Douglas Creager
    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...

    January 13th, 2009 @ 12:04 AM

  3. Douglas Creager
    Douglas Creager
    • Milestone set to 1.0-α4
    • State changed from new to resolved

    January 13th, 2009 @ 12:08 AM

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.