Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

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

Open
#770 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
35/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Domain
tooling

Research direction

Start by reproducing the issue in VS Code with the JavaScript snippet from the report, using Inspect TM Scopes on the function call brackets. Compare those scopes with the brackets in the function declaration and determine the intended classification; done means the grammar behavior is resolved and verified against this reproduction.

Written by the indexing model from the issue text.

Description

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?

Dominant language
TypeScript
Stars
471
Forks
149
PR merge metrics
No merged PRs in 30d

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from microsoft/TypeScript-TmLanguage

All issues in microsoft/TypeScript-TmLanguage

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.