#897 Incorrect vala syntax highlighting


Using Vala syntax highlighting, numbers extend their green colour to the '.to_string()' method.
The bug can be reproduced just by writing " 42.to_string() ".
I'm using Geany 1.22-2 from the Archlinux repository.


  • Lex Trotman

    Lex Trotman - 2012-10-13

    Scintilla (the editing component we use, www.scintilla.org) does not have a Vala lexer, so we use the C lexer as the nearest approximation so that at least some highlighting is available.

    Unfortunately 42.to_string() is illegal C so the lexer isn't programmed to handle it. Whilst you might be able to get a patch that makes the C lexer do the Vala thing accepted by Scintilla if it was simple and added no bugs to the C parsing, the proper solution is to add a Vala lexer to Scintilla.

  • axeoth

    axeoth - 2013-02-01

    @elextr Should not this be closed, then?

  • Colomban Wendling

    • labels: Filetypes --> Filetypes, Vala, Scintilla
    • Found in: --> v1.22
    • Fixed in: --> None

Log in to post a comment.

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

Sign up for the SourceForge newsletter:

JavaScript is required for this form.

No, thanks