#1583 CoffeeScript lexer: keyword highlighting extends unconditionally on (and past) linefeed

Bug
closed-fixed
5
2014-08-13
2014-03-16
Alpha
No

With the CoffeeScript lexer, add the keyword 'null' to set two (index 1), and enter the following text into the editor:

null
test
test

Put the cursor after 'null' and press enter twice. Now the entire document (from 'null' to the end) is highlighted in the same style.

Discussion

  • Alpha

    Alpha - 2014-03-16

    Attached patch seems to resolve this.
    Also addressed in the patch is the case:

    for i in [0...myArray.length]
    

    To prevent 'myArray.length' from being highlighted as a number literal.

     
  • Neil Hodgson

    Neil Hodgson - 2014-03-16
    • labels: coffeescript --> coffeescript, scintilla
    • status: open --> open-fixed
    • assigned_to: Neil Hodgson
     
  • Neil Hodgson

    Neil Hodgson - 2014-03-21
    • status: open-fixed --> closed-fixed
     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks