Menu

#763 The C lexer should consider angle brackets after #include

Bug
closed-fixed
Scintilla (812)
5
2009-04-28
2009-01-31
Kai Liu
No

Consider the following:

#include <else.h>

If the option to lex within preprocessor lines is enabled, the '<', '>', and '.' will be coloured as operators and the "else" will be coloured as a keyword, when the correct behaviour is to treat '<' as the start of a quoted string and '>' as the end of a quoted string. Angle brackets should be treated as quotes only if the line is an #include preprocessor directive.

I am submitting a patch that should address this issue.

Discussion

  • Kai Liu

    Kai Liu - 2009-01-31

    patch

     
  • Neil Hodgson

    Neil Hodgson - 2009-02-14

    Committed fix.

     
  • Neil Hodgson

    Neil Hodgson - 2009-02-14
    • assigned_to: nobody --> nyamatongwe
    • status: open --> open-fixed
     
  • Neil Hodgson

    Neil Hodgson - 2009-04-28
    • status: open-fixed --> closed-fixed
     
  • Neil Hodgson

    Neil Hodgson - 2009-04-28

    Fix released in 1.78

     

Log in to post a comment.