Rename function "endComent" to "endComment"

This commit is contained in:
Brian Huffman 2016-09-19 15:20:33 -07:00
parent 22bb49b3b5
commit 7ccea5dd98
2 changed files with 3 additions and 3 deletions

View File

@ -62,7 +62,7 @@ $unitick = \x7
}
<comment> {
\*+\/ { endComent }
\*+\/ { endComment }
[^\*\/]+ { addToComment }
\* { addToComment }
\/ { addToComment }

View File

@ -62,8 +62,8 @@ startComment isDoc _ p txt s = (Nothing, InComment d p stack chunks)
InComment doc q qs cs -> (doc, q : qs, txt : cs)
_ -> panic "[Lexer] startComment" ["in a string"]
endComent :: Action
endComent cfg p txt s =
endComment :: Action
endComment cfg p txt s =
case s of
InComment d f [] cs -> (Just (mkToken d f cs), Normal)
InComment d _ (q:qs) cs -> (Nothing, InComment d q qs (txt : cs))