Skip to content

Commit e13b873

Browse files
committed
Fixed a bug within parenthesis where if there is any closing parentheses after it, it would not auto-pair
1 parent a98eaa7 commit e13b873

File tree

4 files changed

+69
-68
lines changed

4 files changed

+69
-68
lines changed

gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
pluginGroup = com.github.shuaiouke.redlibcommandfile
55
pluginName = RedLib-Command-File
6-
pluginVersion = 0.2.8
6+
pluginVersion = 0.2.9
77

88
# See https://plugins.jetbrains.com/docs/intellij/build-number-ranges.html
99
# for insight into build numbers and IntelliJ Platform versions.

src/main/gen/com/github/shuaiouke/redlibcommandfile/language/RedLibCommandLexer.java

Lines changed: 66 additions & 66 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/main/java/com/github/shuaiouke/redlibcommandfile/language/RedLibCommandBraceMatcher.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717

1818
public class RedLibCommandBraceMatcher implements PairedBraceMatcher {
1919
private static final BracePair[] PAIRS = new BracePair[]{
20-
new BracePair(BRACKET_OPEN, BRACKET_CLOSE, true),
20+
new BracePair(BRACKET_OPEN, new IElementType("}", null), false),
2121
new BracePair(OBRACKET, CBRACKET, true),
2222
};
2323

src/main/java/com/github/shuaiouke/redlibcommandfile/language/RedLibCommandLexer.flex

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,7 @@ HELPMESSAGE=([^\n])*
111111
<ARG>
112112
{
113113
"(" {yybegin(DEFAULTVALUE);return BRACKET_OPEN;}
114+
")" {yybegin(ARGS);return BRACKET_CLOSE;}
114115
{NOSHOWTYPE} {return NOSHOWTYPE;}
115116
{NOREQ} {return NOTREQUIRED;}
116117
{NOSHOWTYPENOREQ} {return BOTHMODIFIERS;}

0 commit comments

Comments
 (0)