ton-blockchain / intellij-ton

TON Development plugin for the IntelliJ Platform
https://plugins.jetbrains.com/plugin/23382-ton
GNU General Public License v3.0
66 stars 8 forks source link

Exclamation point is not considered a valid symbol for function name #156

Closed Skydev0h closed 3 months ago

Skydev0h commented 5 months ago

The highlighter considers that ! cannot be used in function name.

image

While in reality it is perfectly fine and the code works.

Using the latest v2.0.4 plugin.

andreypfau commented 5 months ago

Thank you for report, Will be fixed in next release

andreypfau commented 5 months ago

I encountered a problem due to which I had to change the behavior of the lexer and parser, namely how the AST tree is built for ModifyExpression a~foo() and the usual ApplyExpression a foo(), foo(). Because of this, we will have to do a global refactoring of the code base so that there is no degradation in the functionality of current features in the IDE. It can take some time. Refactoring will also lead to issue #107 being fixed

But I hope to finish this soon, and the behavior of identifiers will be exactly the same as in the original FunC compiler. Thank you and stay tuned

andreypfau commented 3 months ago

Fixed in 2.1.0