Skip to content

Commit c936b67

Browse files
committed
Version bump :>
1 parent 602cb4a commit c936b67

File tree

7 files changed

+79
-77
lines changed

7 files changed

+79
-77
lines changed

CHANGELOG.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,10 @@
33
# RedLib-Command-File Changelog
44

55
## [Unreleased]
6+
- Small hotfix
67
## [0.2.15]
78
- Fixed a bug which `hidesub` is not properly highlighted.
8-
- Fixed not being able to use key words as command names
9+
- Fixed not being able to use keywords as command names
910
- Added commenter to allow commenting via hotkey
1011
## [0.2.13]
1112
## [0.2.12]

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@
77
## Description
88
<!-- Plugin description -->
99
Adds grammar checking and syntax highlighting for the command file use by RedLib(https://github.com/Redempt/RedLib) by Redempt to Intellij IDEA
10+
11+
If you are having any issues or problems with this plugin, please report them on the [GitHub issues page](https://github.com/Shuaiouke/RedLib-Command-File/issues), join the [RedSupport Discord server](https://discord.gg/Frgkk99unx), or add me on [Discord](https://discord.com/users/441474795100438530)
1012
<!-- Plugin description end -->
1113

1214
## Installation

build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ repositories {
3131
mavenCentral()
3232
}
3333
dependencies {
34-
detektPlugins("io.gitlab.arturbosch.detekt:detekt-formatting:1.17.1")
34+
detektPlugins("io.gitlab.arturbosch.detekt:detekt-formatting:1.19.0")
3535
}
3636

3737
// Configure gradle-intellij-plugin plugin.

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.15
6+
pluginVersion = 0.2.16
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/parser/RedLibCommandParser.java

Lines changed: 64 additions & 60 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/RedLibCommand.bnf

Lines changed: 8 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -24,20 +24,15 @@ private CommandDef ::= CommandDefinition | CommandDefinition_Consuming | newline
2424

2525
private CommandDef_Consumed ::= CommandDefinition_Consumed | newline
2626

27-
private CommandDefinition ::= space* CommandName (comma Alias)* (space Args)? newline? Open_Bracket (Line | Blank_Line)* Close_Bracket {pin = CommandName}
28-
//private CommandDefinition ::= space* commandname (space alias)* (space Args)? newline? Open_Bracket (Line | Blank_Line)* Close_Bracket
27+
private CommandDefinition ::= space* CommandName (comma Alias)* (space Args)? newline? Open_Bracket (Line | Blank_Line)* Close_Bracket
2928

30-
private CommandDefinition_Consuming ::= space* CommandName (comma Alias)* (space Args_Can_Consume)? newline? Open_Bracket (Line_Consumed | Blank_Line)* Close_Bracket {pin = CommandName}
31-
//private CommandDefinition_Consuming ::= space* commandname (space alias)* (space Args_Can_Consume)? newline? Open_Bracket (Line_Consumed | Blank_Line)* Close_Bracket
29+
private CommandDefinition_Consuming ::= space* CommandName (comma Alias)* (space Args_Can_Consume)? newline? Open_Bracket (Line_Consumed | Blank_Line)* Close_Bracket
3230

33-
private CommandDefinition_Base ::= space* CommandName (comma Alias)* (space Args)? newline? Open_Bracket (Line_Base | Blank_Line)* Close_Bracket {pin = CommandName}
34-
//private CommandDefinition_Base ::= space* commandname (space alias)* (space Args)? newline? Open_Bracket (Line_Base | Blank_Line)* Close_Bracket
31+
private CommandDefinition_Base ::= space* CommandName (comma Alias)* (space Args)? newline? Open_Bracket (Line_Base | Blank_Line)* Close_Bracket
3532

36-
private CommandDefinition_Consuming_Base ::= space* CommandName (comma Alias)* (space Args_Can_Consume)? newline? Open_Bracket (Line_Base_Consuming | Blank_Line)* Close_Bracket {pin = CommandName}
37-
//private CommandDefinition_Consuming_Base ::= space* commandname (space alias)* (space Args_Can_Consume)? newline? Open_Bracket (Line_Base_Consuming | Blank_Line)* Close_Bracket
33+
private CommandDefinition_Consuming_Base ::= space* CommandName (comma Alias)* (space Args_Can_Consume)? newline? Open_Bracket (Line_Base_Consuming | Blank_Line)* Close_Bracket
3834

39-
private CommandDefinition_Consumed ::= space* CommandName (comma Alias)* (space Args_Can_Consume)? newline? Open_Bracket (Line_Consumed_Recovering | Blank_Line)* Close_Bracket {pin = CommandName}
40-
//private CommandDefinition_Consumed ::= space* commandname (space alias)* (space Args_Can_Consume)? newline? Open_Bracket (Line_Consumed_Recovering | Blank_Line)* Close_Bracket
35+
private CommandDefinition_Consumed ::= space* CommandName (comma Alias)* (space Args_Can_Consume)? newline? Open_Bracket (Line_Consumed_Recovering | Blank_Line)* Close_Bracket
4136

4237
private CommandName ::= commandname|help|permission|user|hook|context|assert|nohelp|notab|postarg|hidesub|helpmsg
4338

@@ -92,13 +87,13 @@ private Args_Can_Consume ::= ConsumingArg*
9287

9388
private Args ::= Arg*
9489

95-
private Arg ::= (((ARG_TYPE CONSTRAINT? COLON)? Flag) | (ARG_TYPE CONSTRAINT? COLON Argument)) (newline | space)
90+
private Arg ::= (((ARG_TYPE CONSTRAINT? COLON)? Flag) | (ARG_TYPE CONSTRAINT? COLON Argument)) (newline | space |)
9691

97-
private ConsumingArg ::= ARG_TYPE CONSTRAINT? CONSUME_TOKEN? COLON Consuming_Argument (newline | space)
92+
private ConsumingArg ::= ARG_TYPE CONSTRAINT? CONSUME_TOKEN? COLON Consuming_Argument (newline | space |)
9893

9994
private Flag ::= DASHES FLAG_NAME (COMMA DASHES FLAG_NAME)* FLAG_MODIFIER? (BRACKET_OPEN DEFAULT_VALUE? BRACKET_CLOSE)?
10095

101-
private Argument ::= ARG_NAME (noshowtype | ((noshowtype) ( BRACKET_OPEN DEFAULT_VALUE? BRACKET_CLOSE)? ))?
96+
private Argument ::= ARG_NAME (noshowtype | ((notrequired | bothmodifiers) (BRACKET_OPEN DEFAULT_VALUE? BRACKET_CLOSE)? ))?
10297

10398
private Consuming_Argument ::= ARG_NAME (noshowtype | ((notrequired | bothmodifiers) ( BRACKET_OPEN DEFAULT_VALUE? BRACKET_CLOSE)? ))?
10499

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,9 +131,9 @@ FLAG_COLON=\:-+
131131
{
132132
"(" {yybegin(DEFAULTVALUE);return BRACKET_OPEN;}
133133
")" {yybegin(ARGS);return BRACKET_CLOSE;}
134+
{NOSHOWTYPENOREQ} {return BOTHMODIFIERS;}
134135
{NOSHOWTYPE} {return NOSHOWTYPE;}
135136
{NOREQ} {return NOTREQUIRED;}
136-
{NOSHOWTYPENOREQ} {return BOTHMODIFIERS;}
137137
{NEWLINE} {yybegin(COMMAND);return NEWLINE;}
138138
{SPACE} {yybegin(ARGS);return SPACE;}
139139
{WORD} {return ARG_NAME;}

0 commit comments

Comments
 (0)