Menu

#1951 scintilla: matlab lexer sets 'end' as a keyword in the case where it is used as a end of array indicator

Bug
closed-fixed
5
2017-08-16
2017-06-28
lostbard
No

The matlab lexer sets 'end' as a keyword in the case where it is used as a end of array indicator, where as the editor in matlab doesnt see 'end' in that case as a keyword.

In addition, the folding then incorrectly sees the end keyword as the end of the foldpoint

Patch attached that sets 'end' in same style as a number when used as a index, which then also stops the folding from setting the fold end incorrectly.

1 Attachments

Discussion

  • Neil Hodgson

    Neil Hodgson - 2017-06-28
    • labels: --> scintilla, lexer, matlab
     
  • Neil Hodgson

    Neil Hodgson - 2017-06-28

    There appears to be a typo:

    1>..\lexers\LexMatlab.cxx(265): error C2065: 'allow_end_pos': undeclared identifier
    
     
  • lostbard

    lostbard - 2017-06-29

    thats what i get for changing the variable name at the last minute. Corrected here.

     

    Last edit: lostbard 2017-06-29
  • Neil Hodgson

    Neil Hodgson - 2017-07-01
    • status: open --> open-fixed
    • assigned_to: Neil Hodgson
     
  • Neil Hodgson

    Neil Hodgson - 2017-07-01

    Committed as [15f61e].

     

    Related

    Commit: [15f61e]

  • Neil Hodgson

    Neil Hodgson - 2017-08-16
    • status: open-fixed --> closed-fixed
     

Log in to post a comment.

MongoDB Logo MongoDB