onivim/oni

Can't assign highligt to called function name in JS

Open

#1.379 geöffnet am 27. Jan. 2018

Auf GitHub ansehen
 (16 Kommentare) (1 Reaktion) (0 zugewiesene Personen)TypeScript (336 Forks)batch import
enhancementhelp wanted

Repository-Metriken

Stars
 (11.389 Stars)
PR-Merge-Metriken
 (Keine gemergten PRs in 30 T)

Beschreibung

My test file:

import * as R from 'ramda'

console.log('test')

export let getMetaData = (node) => ({
    ...R.pick(['hasConnectedError', 'syntaxError'], node),
    title: 'node-' + node.customId
})

log in console.log gets a color via support.function but pick in R.pick does not. There is meta.function-call but it colors the whole R.pick, but I want only color pick. I tried entity.name.function - meta.function-call without luck.

token config part:

    "editor.tokenColors": [
		{
		scope: "meta.function-call",
		settings: "TestColorG",
	},
		{
		scope: "support.function",
		settings: "TestColorC",
	},
	],

Screenshot of the outcome so far: 2018-01-27-121055_596x241_scrot

2018-01-27-121140_551x481_scrot

Only support.function: 2018-01-27-121303_593x235_scrot

pick not higlighted in line 11: 2018-01-27-121345_607x593_scrot

Contributor Guide