microsoft / microsoft/TypeScript-TmLanguage
JS function bracket is `meta` instead of `punctuation` when call the function
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 471
- Forks
- 149
- PR merge metrics
- No merged PRs in 30d
Description
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:
- create a file, copy the following code and paste it. select
javascriptmode
function func1(word1) {
return word1;
};
func1("hello world");
- Inspect TM scopes
Does this issue occur when all extensions are disabled?: Yes
brackets are punctuation when define function

brackets are meta when call the function

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?
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
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.
Assessment
- Tech stack
- javascript, typescript
- Domain
- tooling
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100