Skip to content

Commit 3b2f467

Browse files
committed
chore: clarify why we allow spaces inside type tokens
1 parent 6c9df11 commit 3b2f467

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,8 @@ FooterType = [^:\s]+ | BREAKING\ CHANGE
7777
}
7878

7979
<TYPE> {
80-
// The commit type must be at the beginning of the line, and cannot start with a '!'
80+
// The commit type must be at the beginning of the line, and cannot start with a '!'.
81+
// Note that we allow types with spaces inside, so that inspections can report issues.
8182
^[^!(:\r\n][^(:\r\n]*\!? {
8283
if (yycharat(yylength() - 1) == '!') {
8384
yypushback(1);

0 commit comments

Comments
 (0)