8000 Improve error message for identifiers with Unicode · Issue #1349 · tact-lang/tact · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Improve error message for identifiers with Unicode #1349
Open
@xpyctumo

Description

@xpyctumo

Are you using the latest released (or pre-released, a.k.a. "next") version?

  • I'm using the latest Tact version

What happened?

Due to #1348 we can see what errors for traits, contracts, messages, fun(ctions), const, structs shown different errors:

  • Expected identifier
  • Expected "_", "A".."Z", or "a".."z"
  • Expected "A".."Z" or "("
"<unknown>:1:7: Expected "_", "A".."Z", or "a".."z"
Line 1, col 7:
> 1 | trait ОперацияД { }

What did you expect?

I expect see error like "Unsupported unicode symbols"

Steps to reproduce

Create contracts with unicode symbols in identifiers like this:

const Константа: Int = 42;
contract Контракт {}

And other examples you can approach here https://github.com/tact-lang/tact/pull/1348/files

Metadata

Metadata

Assignees

No one assigned

    Labels

    scope: errorsError reporting mechanism (src/error)scope: parserImplementation of parser (src/grammar)

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0