1010How to prevent duplicate list items?
- Feb 13, 2004I have code such as:
newtype Bottle = Bot Int
data Line = Simple String | Complex Bottle String
verse n = 10
Now, in Haskell newtype creates a new type by the name given
(Bottle) and data creates a data statement by the name given (Line)
but all other constructs on the first col are variables.
So, I would like my Item list to show something like:
var verse n
Now, I accomplished that, however, I also have two other items
appearing which should not:
var type Bottle
var data Line
Here is my itemlist setup:
set-variable .fhook-haskell.item-list-s1 "^\\(\\w*\\)[ \t]*="
set-variable .fhook-haskell.item-list-r1 "\ecBvar \\1\ecA"
set-variable .fhook-haskell.item-list-s2 "^data \\(\\w.*\\)[ \t]*="
set-variable .fhook-haskell.item-list-r2 "\ecBdata \\1\ecA"
set-variable .fhook-haskell.item-list-s3 "^newtype \\(\\w.*\\)
set-variable .fhook-haskell.item-list-r3 "\ecBtype \\1\ecA"
I can see why type and data lines are being matched twice, but I
have tried many methods to cause the var entry to *not* match
anything begining with data or newtype.
Does anyone know how to accomplish this?
- Next post in topic >>