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 類型
缺陷
描述清晰度
基本清楚
活躍度
停滯
技術堆疊
javascript, typescript
領域
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
分支
150
PR 合併指標
30 天內沒有已合併 PR

環境準備

這個專案沒有提供開發容器、Dockerfile 或貢獻指南,環境需要你自己搭建:先看它的 README,通用步驟見我們的新手貢獻指南。

從這裡開始

  1. 先讀完整個 Issue,再讀專案的貢獻指南。
  2. 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
  3. Fork 儲存庫,在一個分支上完成修改。
  4. 送出 Pull Request,並在描述裡引用這個 Issue 編號。

microsoft/TypeScript-TmLanguage 的其他 Issue

查看 microsoft/TypeScript-TmLanguage 的全部 Issue

相似的 Issue

更多 TypeScript Issue

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。