Function parameter color


#1

Excuse me, Is it possible to configure the styles in Atom-editor that would
function parameter has right color inside the function? See below

function greeting(hello (hello is red color - i do it)) {
  // body...
  console.log(hello (hello should be red color, now is it grey) );
}

greeting("HELLO JACK!")

Thanks.


#3

Currently it’s not possible
hello is not a parameter (variable.parameter scope), it’s an argument.

// `arg1`, `arg2` are not tagged
functionCall(arg1, arg2)
obj.methodCall(arg1, arg2)

Arguments don’t have a scope now i.e. you can’t change arguments highlighting. You can find out what scope is under cursor via editor:log-cursor-scope


#4

Ok, thank you.