Skip to content

Commit

Permalink
Checklist has to show when Parser.hs is changed
Browse files Browse the repository at this point in the history
  • Loading branch information
kanghyojun committed Feb 20, 2018
1 parent ae66d60 commit bd17d5e
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/Nirum/Parser.hs
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,10 @@ import Nirum.Constructs.TypeExpression ( TypeExpression ( ListModifier

type ParseError = E.ParseError (Token T.Text) E.Dec

-- CHECK: If a new reserved keyword is introduced, it has to be also
-- added to `reservedKeywords` set in the `Nirum.Constructs.Identifier`
-- module.

comment :: Parser ()
comment = string "//" >> void (many $ noneOf ("\n" :: String)) <?> "comment"

Expand Down Expand Up @@ -412,9 +416,6 @@ tag :: Parser (Tag, Bool)
tag = do
annotationSet' <- annotationSet <?> "union tag annotations"
spaces
-- CHECK: If a new reserved keyword is introduced, it has to be also
-- added to `reservedKeywords` set in the `Nirum.Constructs.Identifier`
-- module.
default' <- optional (string "default" <?> "default tag")
spaces
tagName <- name <?> "union tag name"
Expand Down

0 comments on commit bd17d5e

Please sign in to comment.