Skip to content

Color curly brackets based on role #13

Open
@zopsicle

Description

@zopsicle

Currently, curly brackets are always colored purple. It would be convenient if they were colored according to the role of the block, like identifiers are.

a←{@}    # subject role; white curly brackets
B←{𝕩}    # function role; green curly brackets
_c←{𝔽}   # 1-modifier role; orchid curly brackets
_d_←{𝔾}  # 2-modifier role; orange curly brackets

I don’t know the exact rules for deducing the role, but there are some non-trivial cases so this might not be very easy to implement in a CodeMirror language, such as:

{'a'}{𝔽}10
#    #
#    # 1-modifier role
#
# function role

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions