We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent aaf58ec commit 56b5b4dCopy full SHA for 56b5b4d
core/common/src/internal/format/parser/Parser.kt
@@ -123,7 +123,10 @@ internal fun <T> List<ParserStructure<T>>.concat(): ParserStructure<T> {
123
other.followedBy
124
}
125
126
- return if (mergedTails.none { it.operations.firstOrNull() is NumberSpanParserOperation }) {
+ return if (
127
+ currentNumberSpan == null && newOperations.isNotEmpty() ||
128
+ mergedTails.none { it.operations.firstOrNull() is NumberSpanParserOperation }
129
+ ) {
130
if (currentNumberSpan != null) {
131
newOperations.add(NumberSpanParserOperation(currentNumberSpan))
132
0 commit comments