Skip to content
This repository has been archived by the owner on Dec 15, 2022. It is now read-only.

Coloring for parameters with default values #678

Closed
icecream17 opened this issue Jul 15, 2020 · 3 comments
Closed

Coloring for parameters with default values #678

icecream17 opened this issue Jul 15, 2020 · 3 comments

Comments

@icecream17
Copy link
Contributor

Summary

You can use default parameters in functions.

But the syntax-highlight coloring for the parameters disappear when using them:
with syntax

Motivation

For visuals - expected outcome is that the parameters with default values are also colored.
(after manual editing):
image

Describe alternatives you've considered

Can't change how the parser works for highlighting.

Additional context

Lol my comment. Yeah, html syntax coloring doesn't apply if the string is in parenthesis. But that's not what this one's about.

@icecream17
Copy link
Contributor Author

Closing now that I know how coloring works

I just had to add another scope

@icecream17
Copy link
Contributor Author

Oh, nevermind. The problem is with tree-sitter not having any scopes, the non-tree-sitter is fine

@icecream17 icecream17 reopened this Jun 5, 2021
@sadick254
Copy link
Contributor

This works as expected on the current nightly version. I am closing this for now. Let me know if it doesn't work for you. Am happy to reopen.
Screenshot 2021-10-21 at 21 46 00

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants