Menu

#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:

:::coffeescript
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:

    :::coffeescript
    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-16

    Committed as [12a3a0] and [47d68e].

     

    Related

    Commit: [12a3a0]
    Commit: [47d68e]

  • Neil Hodgson

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

Log in to post a comment.