Skip to content

Infix multiplication operator screws up parentheses coloring and is highlighted in red #209

Open
@mbottini

Description

@mbottini

Describe the bug
First, the infix multiplication operator (*) is highlighted in red, differently from the other operators.

image

And second, likely as a result of not being captured as a parenthesized operator, the opening paren of the operator is not counted, and the closing paren is counted for the purposes of matching corresponding parentheses. In this screenshot, the closing paren of the operator is matched with the parenthesis before Seq.fold:

image

To Reproduce
Steps to reproduce the behaviour:

  1. Open up a new file and type (*) to show the red-highlighted operator.

      (*)
    
  2. Call the (*) operator inside of another parenthesized expression, which will cause the operator's closing paren to match with the opening paren of the outer expression.

     (Seq.fold (*) 1 [1;2;3])
    

Expected behaviour
The (*) operator should be treated identically to the other operators. At a minimum, it should not affect the parenthesis coloring of outer expressions.

Environment (please complete the following information):

  • OS: Any
  • Ionide version: v7.16.1
  • VSCode version: 1.85.1
  • dotnet SDK version: 8.0.100
  • mono / .Net Framework version: (N/A)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions