mirror of
https://github.com/github/semantic.git
synced 2024-12-26 08:25:19 +03:00
Go with // for comments.
This commit is contained in:
parent
2d8819933a
commit
fe468f2cda
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user