Skip to content

Commit 473c630

Browse files
committed
refactor: apply minor clean up to conventionalCommit.flex
1 parent 318b82c commit 473c630

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

src/main/kotlin/com/github/lppedd/cc/language/lexer/conventionalCommit.flex

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
package com.github.lppedd.cc.language.lexer;
22

33
import org.jetbrains.annotations.NotNull;
4+
45
import com.intellij.psi.PlainTextTokenTypes;
5-
import com.intellij.psi.tree.IElementType;
66
import com.intellij.psi.TokenType;
7+
import com.intellij.psi.tree.IElementType;
78

89
%%
910

@@ -112,15 +113,15 @@ FooterType = [^:\s]+ | BREAKING\ CHANGE
112113

113114
<BODY_OR_FOOTERS> {
114115
// Closes: #16
115-
^{FooterType} {Space}*: {
116+
^{FooterType}{Space}*: {
116117
// The ':' char should not be part of the footer type
117118
yypushback(1);
118119
yybegin(FOOTERS);
119120
return getFooterType();
120121
}
121122

122123
// Closes #16
123-
^{FooterType} {Space}+ / #.* {
124+
^{FooterType}{Space}+ / #.* {
124125
yybegin(FOOTER_VALUE);
125126
return getFooterType();
126127
}
@@ -164,13 +165,13 @@ FooterType = [^:\s]+ | BREAKING\ CHANGE
164165

165166
<FOOTERS> {
166167
// Closes: #16
167-
^{FooterType} {Space}*: {
168+
^{FooterType}{Space}*: {
168169
yypushback(1);
169170
return getFooterType();
170171
}
171172

172173
// Closes #16
173-
^{FooterType} {Space}+ / #.* {
174+
^{FooterType}{Space}+ / #.* {
174175
yybegin(FOOTER_VALUE);
175176
return getFooterType();
176177
}

0 commit comments

Comments
 (0)