Skip to content

Brace Highlighting Should Activate at more positions #2092

@cloudRoutine

Description

@cloudRoutine

I marked out the columns where brace matching activates and where it does not
o means it activates on the following col, x means it doesn't i.e.


(*          ox          xo        *)
    let a1 = [ 0 .. 100  ]
(*          oxx          xox        *)
    let a2 = [| 0 .. 100  |]
(*          oxx    xox        *)
    let a3 = <@ 0   @>
(*          oxxx     xoxx        *)
    let a4 = <@@  0   @@>
(*          ox     xo        *)
    let a6 = (  ()  )
(* oxx                  xox     *)
    [<ReflectedDefinition>]
    let a7 = 70
(*              ox        xo     *)
    let a8 = seq { yield() }
(*     oxx   xxo         *)
    let (| A9 |) = ()

I think brace matching should activate on either side of the brace and at all positions inside of the brace for multi column braces

It doesn't activate at all for -

  • (* *)
  • begin end
  • struct end
  • class end
  • interface end
  • < > for generics

[ vs2017 rc2 with latest tools built from master ]

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions