1module Language.JSON.String.Lexer
3import Language.JSON.String.Tokens
18unicodeEscape = esc $ is 'u' <+> count (exactly 4) hexDigit
21simpleEscape = esc $ oneOf "\"\\/bfnrt"
24legalChar = non (quo <|> is '\\' <|> control)
26jsonStringTokenMap : TokenMap JSONStringToken
27jsonStringTokenMap = toTokenMap $
29 , (unicodeEscape, JSTUnicodeEscape)
30 , (simpleEscape, JSTSimpleEscape)
31 , (legalChar, JSTChar)
35lexString : String -> Maybe (List JSONStringToken)
36lexString x = case lex jsonStringTokenMap x of
37 (toks, _, _, "") => Just $ map TokenData.tok toks
keysesc to close
- j k
- move down, up
- enter
- open
- esc
- back, or up a level
- 1 2 3 4
- readme, files, commits, refs
- /
- filter
- y
- copy the clone command
- c
- compare the chosen commit with another (or shift-click both)
- ?
- show or hide this list