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

Color curly brackets based on role #13

Open
zopsicle opened this issue Sep 27, 2023 · 0 comments
Open

Color curly brackets based on role #13

zopsicle opened this issue Sep 27, 2023 · 0 comments

Comments

@zopsicle
Copy link

zopsicle commented Sep 27, 2023

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
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

No branches or pull requests

1 participant