hi Thiago,
I'm sure a 990 Java files program is hard to maintain,
so I thought I would make your life a bit easier :)
this mail is mostly about syntax highlighting (not
very important, however, the ease of use counts).
trivial matters, nevertheless, I think, currently...
* there are some keywords not highlighted. I've
noticed "qualified", "as", "hiding" (in import
statements), "deriving", "default", ... hope you can
just add them to core.codeassist.HaskellSyntax.java
ref:
http://www.haskell.org/haskellwiki/Keywords
* highlighting the known functions (in the same file,
HaskellSyntax.java) seems quite unnecessary to me. the
list is long and ugly and by no means complete.
instead, could you make functions, operators, and
(type and classes) (my proposition: functions are
simple, operators are bold, types a different color).
the parsing issue is easy, lower case => simple, upper
case => another color, everything else => bold. should
make the reading a lot easier (my eyes are not case
sensitive) (that would make ++ or -> or ` or [] or the
@ symbol buried somewhere distictly bold, which makes
sense to me).
* in the outline, I can see type declarations "::t",
so I guess you can track it. could you make type
declarations have a different background color (ivory,
perhaps?)
* the folding is just wrong! suppose you can a piece
of code, then a blank line, then a comment. folding
the function code folds the comment, which, naturally
belongs to the next function!
could you make the foldings such that each block of
code (seperated by blank lines) and block of comments
(again seperated by blank lines) are foldable whereas
if they are next to each other (code and comments)
they are separately foldable?
same goes to import statements.
a much of ambitious target would be to have cases and
where clauses foldable. may be later ;)
another ambitious (but very useful) fold would be the
#ifdef..#endif's... people do use them.
* back to syntax highlighting... all the constant
symbols like char and string contants and integers and
what not should have the same color, right? if it's
not much of a work, can you make 0-ary constructors
the same color as well? (they are simply constants...,
like True and False and Nothing, or maybe they should
have a different color? ;))
cheers,
great work,...
Imam
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
|