Currently, I am in the process of developing an IntelliJ plugin.
One of the key features that I am working on is a brace matcher. After completing the JetBrains plugin tutorial, I was able to get the brace matcher functioning using this regular expression [^@\*\{\}\(\)\$\.]*
which ensures everything is matched except for specific characters required for the lexer to work correctly.
However, a new issue has arisen.
Due to certain code segments being split, each time a {
or }
appears, it causes the code to be fragmented.
This presents a significant challenge particularly with JavaScript as the formatting is adversely affected by this issue.
Therefore, my inquiry is: How can I resolve the dilemma of maintaining proper JavaScript formatting while ensuring the brace matcher functions effectively?