1
1
mirror of https://github.com/github/semantic.git synced 2024-12-26 00:12:29 +03:00

Go with // for comments.

This commit is contained in:
Patrick Thomson 2019-10-25 10:54:35 -04:00
parent 2d8819933a
commit fe468f2cda

View File

@ -30,7 +30,8 @@ newtype CoreParser m a = CoreParser { runCoreParser :: m a }
deriving (Alternative, Applicative, CharParsing, DeltaParsing, Errable, Functor, LookAheadParsing, Monad, MonadPlus, Parsing) deriving (Alternative, Applicative, CharParsing, DeltaParsing, Errable, Functor, LookAheadParsing, Monad, MonadPlus, Parsing)
instance TokenParsing m => TokenParsing (CoreParser m) where instance TokenParsing m => TokenParsing (CoreParser m) where
someSpace = Style.buildSomeSpaceParser (void (satisfy Char.isSpace)) Style.haskellCommentStyle someSpace = Style.buildSomeSpaceParser (void (satisfy Char.isSpace)) comments
where comments = Style.CommentStyle "" "" "//" False
validIdentifierStart :: Char -> Bool validIdentifierStart :: Char -> Bool
validIdentifierStart c = not (Char.isDigit c) && isSimpleCharacter c validIdentifierStart c = not (Char.isDigit c) && isSimpleCharacter c