Skip to content

Should we keep the @constant capture the way it is? #168

Answered by eed3si9n
ckipp01 asked this question in Q&A
Discussion options

You must be logged in to vote

Traditional syntax highlighting distinguishes the definition site (e.g. def foo(x: Int)) and the use site (e.g. foo(1)), with regards to the color palette of the symbol foo.

In Strange Loop talk, Max Brunsfeld criticized it starting 6:36

For me it would help me to read the code, if all of type names were their own color, but it's not that way at all. The types are actually four different color here: char is purple, uint32_t is blue green, and the type that we are defining is black first, and yellow in another spot for some reason.

I think that section underlines the design of tree-sitter when used for syntax highlighting, and something both the grammar maintainers and editor integrators…

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
1 reply
@ckipp01
Comment options

ckipp01 Jan 20, 2023
Collaborator Author

Comment options

You must be logged in to vote
1 reply
@ckipp01
Comment options

ckipp01 Jan 20, 2023
Collaborator Author

Answer selected by ckipp01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants