Skip to content

JS function bracket is meta instead of punctuation when call the function #770

@wlchn

Description

@wlchn

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?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions