aboutsummaryrefslogtreecommitdiffhomepage
path: root/parser/pageparser/pagelexer.go
diff options
context:
space:
mode:
Diffstat (limited to 'parser/pageparser/pagelexer.go')
-rw-r--r--parser/pageparser/pagelexer.go7
1 files changed, 0 insertions, 7 deletions
diff --git a/parser/pageparser/pagelexer.go b/parser/pageparser/pagelexer.go
index 7092b7b2b..c360642c4 100644
--- a/parser/pageparser/pagelexer.go
+++ b/parser/pageparser/pagelexer.go
@@ -59,7 +59,6 @@ func (l *pageLexer) Iterator() *Iterator {
func (l *pageLexer) Input() []byte {
return l.input
-
}
type Config struct {
@@ -286,7 +285,6 @@ func (s *sectionHandlers) skip() int {
}
func createSectionHandlers(l *pageLexer) *sectionHandlers {
-
shortCodeHandler := &sectionHandler{
l: l,
skipFunc: func(l *pageLexer) int {
@@ -327,7 +325,6 @@ func createSectionHandlers(l *pageLexer) *sectionHandlers {
skipFunc: func(l *pageLexer) int {
if l.summaryDividerChecked || l.summaryDivider == nil {
return -1
-
}
return l.index(l.summaryDivider)
},
@@ -343,7 +340,6 @@ func createSectionHandlers(l *pageLexer) *sectionHandlers {
l.emit(TypeLeadSummaryDivider)
return origin, true
-
},
}
@@ -425,7 +421,6 @@ func (s *sectionHandler) skip() int {
}
func lexMainSection(l *pageLexer) stateFunc {
-
if l.isEOF() {
return lexDone
}
@@ -451,11 +446,9 @@ func lexMainSection(l *pageLexer) stateFunc {
l.pos = len(l.input)
return lexDone
-
}
func lexDone(l *pageLexer) stateFunc {
-
// Done!
if l.pos > l.start {
l.emit(tText)