Skip to content

Commit

Permalink
feat(lexer): add blockquote parsing
Browse files Browse the repository at this point in the history
  • Loading branch information
xNaCly committed Apr 4, 2023
1 parent f5e6af9 commit e37e776
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions scanner/scanner.go
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,8 @@ func (s *Scanner) Parse() {
switch s.curChar {
case '#':
s.addToken(HASH, "")
case '>':
s.addToken(GREATERTHAN, "")
case '_':
s.addToken(UNDERSCORE, "")
case '*':
Expand Down
2 changes: 2 additions & 0 deletions scanner/tokens.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ const (
PARENOPEN
PARENCLOSE
BACKTICK
GREATERTHAN
TEXT
EMPTYLINE
)
Expand All @@ -34,6 +35,7 @@ var TOKEN_LOOKUP_MAP = map[TokenKind]string{
STRAIGHTBRACECLOSE: "STRAIGHTBRACECLOSE",
PARENOPEN: "PARENOPEN",
PARENCLOSE: "PARENCLOSE",
GREATERTHAN: "GREATERTHAN",
BACKTICK: "BACKTICK",
TEXT: "TEXT",
}

0 comments on commit e37e776

Please sign in to comment.