The example code at Private fields works as expected but the editor complains visually upon encountering a # symbol… the rest of the line is highlighted in red.
Is there a directive I could insert to prevent the lint functionality from visually complaining? Or is this a limitation of the current editor implementation?
Hi @fabiopettinati ,
Maybe you can check here and/or raise an issue…
Looking at the
For the private fields, looks like the issue has already been solved in 2020 on their GitHub repository:
The thing is that
codemirror ^5.62.0 which may not be up to date with the latest package.
As @mnse said, you can open an issue on the p5 editor repository.
Thanks to @mnse and @josephh for replying. I’ve opened an issue in the editor repository.
Syntax highlighting still not working for private fields (supported in ES2022)#2031