vito / language-racket

Racket and Scribble language support for Atom
9 stars 5 forks source link

Use support.function.any-method.racket scope for function invocations #9

Open alexchandel opened 8 years ago

alexchandel commented 8 years ago

This grammar fails to use the support.function.any-method scope to highlight the function name for unknown functions. This scope is designed to match the name of the function being invoked.

This scope should apply for all function invocations (i.e. to the first element in S-expressions when it's an identifier, so long as it isn't a keyword or known function) in non-quoted contexts.

alexchandel commented 8 years ago

This scope also shouldn't apply to the first element if an infix operator is used, like . < .. In that case, it should instead apply to the infix operator itself, i.e. <.