Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add highlighting for identifiers in nested scope #91

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

sapek
Copy link

@sapek sapek commented Aug 7, 2015

Defined hsIdentifierNested syntax highlighting item for identifiers
defined in where clause. It matches identifier preceded by whitespaces
when it is followed by = on the same line or the next line starting with
whitespace preceded |. The = is not considered when it is within {} to
handle syntax like:

    Foo {foo = bar} <- action

or

    foo (\x -> x {foo = bar})

By default hsIdentifierNested is highlighted as Identifier but it is
a distinct item from hsIdentifier to allow not highlighting it or
using a different color than for top level identifiers.

Defined `hsIdentifierNested` syntax highlighting item for identifiers
defined in `where` clause. It matches identifier preceded by whitespaces
when it is followed by = on the same line or the next line starting with
whitespace preceded |. The = is not considered when it is within {} to
handle syntax like:

        Foo {foo = bar} <- action
or
        foo (\x -> x {foo = bar})

By default `hsIdentifierNested` is highlighted as `Identifier` but it is
a distinct item from `hsIdentifier` to allow not highlighting it or
using a different color than for top level identifiers.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant