Menu

#979 Haskell syntax highlighting of "qualified"

v1.22
open
nobody
None
5
2013-07-21
2013-07-10
No

If you import a module as "qualified", the package will be colored yellow rather than blue, e.g.:

1
2
import qualified Prelude hiding (tan, cos)
import Prelude hiding (tan, cos)

In the former case, import is bold blue, qualified is bold blue, Prelude is yellow, and hiding is black. In the latter (correct) case, import and hiding are bold blue and Prelude is blue.

With Geany 1.23.1

See: https://sourceforge.net/p/geany/bugs/977/

Discussion

  • Anonymous

    Anonymous - 2013-07-10

    Heh, this gives me Stroop effect :)

    Any chance you could tinker with the [styling] section of this file and come up with something that looks OK? I have no how that stuff "should look", not knowing a lick of Haskell (I don't think any Geany devs do, AFAIK).

     
  • Lex Trotman

    Lex Trotman - 2013-07-11

    On 11 July 2013 09:27, Matthew Brush codebrainz@users.sf.net wrote:

    Heh, this gives me Stroop effecthttp://en.wikipedia.org/wiki/Stroop_effect:)

    Any chance you could tinker with the [styling] section of this filehttps://github.com/geany/geany/blob/master/data/filetypes.haskelland come up with something that looks OK? I have no how that stuff "should
    look", not knowing a lick of Haskell (I don't think any Geany devs do,
    AFAIK).

    This is a problem in the Scintilla lexer, the words Prelude and hiding have
    different style numbers between the lines, 8 and 1 on the first line and 7
    and 2 on the second so if this is wrong it should be reported to Scintilla
    www.scintilla.org.

     
  • xa

    xa - 2013-07-21

    This is caused by geany having "qualified" (and "as") listed in keywords. Neither they are keywords, nor is there any need to list them, because lexer highlights them specifically.

     

Log in to post a comment.