aboutsummaryrefslogtreecommitdiff
path: root/inline_parser.go
diff options
context:
space:
mode:
Diffstat (limited to 'inline_parser.go')
-rw-r--r--inline_parser.go12
1 files changed, 12 insertions, 0 deletions
diff --git a/inline_parser.go b/inline_parser.go
index 09aa5a1..2f18aaf 100644
--- a/inline_parser.go
+++ b/inline_parser.go
@@ -73,6 +73,12 @@ func (pi *inlineParser) do() {
pi.prev = pi.c
continue
}
+
+ // We use if-condition with "continue" to break and continue
+ // the for-loop, so it is not possible to use switch-case
+ // here.
+ //
+ //nolint:gocritic
if pi.c == '+' {
if pi.isEscaped {
pi.escape()
@@ -250,6 +256,12 @@ func (pi *inlineParser) do() {
pi.escape()
continue
}
+
+ // We use if-condition with "continue" to break and
+ // continue the for-loop, so it is not possible
+ // to use switch-case here.
+ //
+ //nolint:gocritic
if pi.nextc == '<' {
if pi.parseCrossRef() {
continue