#1420 CoffeeScript doesn't use C-style comments

Bug
open-accepted
Scintilla (788)
5
2012-12-30
2012-11-07
Eric Promislow
No

The CoffeeScript lexer marks /* ... */ as a comment, but this is incorrect -- cs interprets it as the start of a regex.

Since there's no conclusive cs spec, just the sample page at its project site, I'm going to assume that the lexer
should always color '/' as either the start of a regex or a division operator, and ignore the possibility that it starts
a block comment.

Will add a patch....

Related

Bugs: #1518

Discussion

  • Neil Hodgson
    Neil Hodgson
    2012-12-30

    This has removed some features but has not removed all of the code for the removed features:
    Message: Variable 'keywords3' is assigned a value that is never used.
    Message: Variable 'stylingWithinPreprocessor' is assigned a value that is never used.
    Message: Variable 'styleBeforeDCKeyword' is assigned a value that is never used.
    Message: Variable 'continuationLine' is assigned a value that is never used.

    It would also be a low priority idea to completely separate this lexer from LexCPP by switching SCE_C_* to SCE_COFFEESCRIPT_*.

     
  • Neil Hodgson
    Neil Hodgson
    2012-12-30

    • milestone: --> Bug
    • status: open --> open-accepted