Skip to content
This repository has been archived by the owner on Mar 6, 2023. It is now read-only.

Matching parentheses are not treated like other braces #393

Open
5 tasks done
RacerEXE opened this issue May 31, 2022 · 0 comments
Open
5 tasks done

Matching parentheses are not treated like other braces #393

RacerEXE opened this issue May 31, 2022 · 0 comments

Comments

@RacerEXE
Copy link

RacerEXE commented May 31, 2022

Thank you for opening an issue.
In this template paragraph text could be removed, however please retain headers.

Prerequisites

  • Ensure you have latest version of plugin installed
  • Search for possible issue duplicates

Installation details

  • IDE version (Help->About->Copy to Clipboard)
  • intellij-hcl plugin version (Settings->Plugins)
  • Terraform version (terraform -v)

Terraform Configuration Files

locals {
  foo   = lower("bar")
}

Expected Behavior

What should have happened?

Example 1: hen you place the cursor on the one of the parentheses the other should be highlighted. The behavior works correctly for {} and [].

Example 2: When you hit "^m" at a parentheses, the curser should jump to the matching parentheses.

Furthermore, you can't jump to matching parentheses (^m), when you try it jumps to whatever the enclosing context's brace is. For example If you try to jump from the brace

Actual Behavior

What actually happened?

Example 1: Nothing is highlighted
Example 2: The curser jumps to the what ever the enclosing context's parentheses are, for example, if you place your curser on the closing parentheses near bar, and hit ^m, it jumps to the '{' at locals.

Steps to Reproduce

Please list the steps required to reproduce the issue, for example:

  1. Place curser near a "(" and notice that the matching ")" is not highlighted
  2. Place a curser within "(" and ")". Hit ^m and notice that the curser jumps out to the nearest containing brace that isn't a parentheses.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant