#79 please enable syntax highlighting for hash keys


It would be a nice feature (several people in my company requested it) if EPIC would be able to _configure_ and use a user-defined color for hash keys.

So that in

%hash = ( key => 'value' );

key would be highlighted instead of black. I guess that whatever is left of "=>" can be colored with this setting if it isn't quoted.

This would be a small addition with big benefits.

Thanks for considering, and thanks so much for EPIC!


  • Nobody/Anonymous

    Logged In: NO

    perhaps also for these keys: $var{key} = 'value'.
    Thanks for considering!

  • Dan Dascalescu

    Dan Dascalescu - 2009-07-02

    Please implement this feature because currently (EPIC 0.6.35), hash keys that happen to be Perl reserved words are highlighted as Perl reserved words. For example:

    my %stock = (
    open => 55,
    last => 57,
    close => undef,

    Alll these keys should be highlighted as strings, not as Perl keywords.

  • Oliver Trosien

    Oliver Trosien - 2016-05-15

    The epic grammar is (mainly) contextless, but regarding hash keys I agree this is rather annoying. We should try to improve here.


Log in to post a comment.