Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

JS function bracket is `meta` instead of `punctuation` when call the function

未关闭
#770 1 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
3/5
预计耗时
1-2 天
新手友好度
35/100
Issue 类型
缺陷
描述清晰度
基本清楚
活跃度
停滞
领域
tooling

调研方向

首先,使用报告中的 JavaScript 代码片段,并对函数调用括号使用 Inspect TM Scopes,在 VS Code 中复现该问题。将这些括号的 scopes 与函数声明中的括号进行比较,并确定预期的分类;完成的标准是 grammar 行为已解决,并通过此次复现得到验证。

由索引模型根据 Issue 内容生成。

描述

Suggestion

Version: 1.37.1
Commit: f06011ac164ae4dc8e753a3fe7f9549844d15e35
Date: 2019-08-15T16:16:34.800Z
Electron: 4.2.7
Chrome: 69.0.3497.128
Node.js: 10.11.0
V8: 6.9.427.31-electron.0
OS: Darwin x64 18.2.0

Steps to Reproduce:

  1. create a file, copy the following code and paste it. select javascript mode
function func1(word1) {
  return word1;
};

func1("hello world");
  1. Inspect TM scopes

Does this issue occur when all extensions are disabled?: Yes

brackets are punctuation when define function
image

brackets are meta when call the function
image

I test this basic code in other languages like golang, ruby. brackets are always punctuation instead of meta.

Should JS function bracket be meta instead of punctuation when calling the function?

主要语言
TypeScript
星标
471
派生
149
PR 合并指标
30 天内没有已合并 PR

贡献指南

这个仓库没有索引到贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

microsoft/TypeScript-TmLanguage 的其他 Issue

查看 microsoft/TypeScript-TmLanguage 的全部 Issue

相似的 Issue

更多 TypeScript Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。