Moved isArgTok to Readers.LaTeX.Parsing.
This commit is contained in:
parent
799cd5db7a
commit
963ba931a6
2 changed files with 6 additions and 5 deletions
|
@ -1533,10 +1533,6 @@ argspecPattern =
|
|||
(toktype' == Symbol || toktype' == Word) &&
|
||||
(txt /= "{" && txt /= "\\" && txt /= "}")))
|
||||
|
||||
isArgTok :: Tok -> Bool
|
||||
isArgTok (Tok _ (Arg _) _) = True
|
||||
isArgTok _ = False
|
||||
|
||||
newcommand :: PandocMonad m => LP m (Text, Macro)
|
||||
newcommand = do
|
||||
pos <- getPosition
|
||||
|
|
|
@ -52,8 +52,9 @@ module Text.Pandoc.Readers.LaTeX.Parsing
|
|||
, setpos
|
||||
, anyControlSeq
|
||||
, anySymbol
|
||||
, isWordTok
|
||||
, isNewlineTok
|
||||
, isWordTok
|
||||
, isArgTok
|
||||
, spaces
|
||||
, spaces1
|
||||
, tokTypeIn
|
||||
|
@ -476,6 +477,10 @@ isWordTok :: Tok -> Bool
|
|||
isWordTok (Tok _ Word _) = True
|
||||
isWordTok _ = False
|
||||
|
||||
isArgTok :: Tok -> Bool
|
||||
isArgTok (Tok _ (Arg _) _) = True
|
||||
isArgTok _ = False
|
||||
|
||||
spaces :: PandocMonad m => LP m ()
|
||||
spaces = skipMany (satisfyTok (tokTypeIn [Comment, Spaces, Newline]))
|
||||
|
||||
|
|
Loading…
Reference in a new issue