为什么关键字在 Remix IDE 中没有着色?

发布于 2025-01-17 06:47:39 字数 426 浏览 1 评论 0原文

我写了一段关于 Solidity 数组的代码。 数组代码

如代码所示,这里预定义了push()、pop()和长度。当我尝试更改他们的名称时,出现错误推送图片代码,其他关键字情况相同。

如果它们是关键字,为什么它们不变成彩色或粗体?

与其他 ide(VSCode 等)不同,Remix 不是一个特定的功能吗?

I wrote a code about arrays in solidity.
Array Code

As shown in the code push(),pop() and length are predefined here. When I tried to change their name it gives an errorPush Image Code, same case with other keywords.

If they're keywords why they don't get colored or bold?

Does Remix not a specific function for it unlike other ides(VSCode etc.) .

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

思念满溢 2025-01-24 06:47:39

它们可以得到支持,但所有的 Solidity 工具和语言本身仍然是一项正在进行的工作,Remix 也没有真正撒谎,
混音 说:

它还提供映射到 Solidity 关键字的语法突出显示。

确实如此,这些是坚固性。像 push() pop()length 这样的数组成员不是关键字,它们是 成员

They could be supported, but all solidity tooling and the language itself is still a work in progress, and Remix isn't really lying about it either,
Remix says:

It also provides syntax highlighting mapped to solidity keywords.

And it does, these are the reserved keywords in solidity. Array members like push() pop() or length are not keywords, they are members

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文