Sublime Forum

Line break directly after function name

#1

Hi guys,

when using an expression in php or js formatted like this ( which is valid syntax):
declaration:

function foo
( param1,
  param2,
  param3,
...
)
{
...
}

or call:

myvalue =
  foo
  ( "some text",
    textvar,
    number1,
    ...
  );

sublime doesn’t recognize it, when searching for the declaration.
One might have to use coding standards, which enforce You to write opening and closing brackets or braces in the same column for declarations or blocks
or function calls with many parameters.

Maybe there’s an option to detect these cases in sublime too, but i found nothing.

Best Regards,
Gert Matern

0 Likes

#2

The first would be achievable by tweaking the syntax definition. The second is not covered by goto definition because it is a variable and not a function of class definition.

0 Likes