refactor lexer #2

Merged
primrose merged 13 commits from primrose/haddock2:leana8959 into dev 2025-09-26 14:44:47 +00:00

13 commits

Author SHA1 Message Date
970b658926
chore(lexer): clean up 2025-09-24 22:32:52 +08:00
2597e693f1
ref(lexer): simplify labeledLink 2025-09-24 22:31:59 +08:00
29c015b793
style(lexer): make binding naming consistent 2025-09-24 22:25:45 +08:00
326c7b681c
fix(lexer): old anchor is only used in moduleName 2025-09-24 22:20:32 +08:00
c4d59d3236
ref(lexer): rename MathsBracket -> MathMultiline 2025-09-24 21:35:21 +08:00
6ec47dad04
ref(lexer): rename MathParen -> MathInline 2025-09-24 21:31:26 +08:00
f3b3b08919
style(lexer): use "open" "close" in the type 2025-09-24 21:28:17 +08:00
6c0b4a4288
doc(lexer): explain the use of incSourceColumn
I think it is clearer to phrase it this way so it is clear that we are
not unconsuming (i.e. changing the state of the parser).
2025-09-24 21:25:46 +08:00
75c4817166
style(lexer): pluralize moduleNames parser 2025-09-24 21:25:46 +08:00
7ceb9b0277
ref(moduleName): break into multiple smaller functions
upperId has been changed to only use isUpper because an non alphabetical
character would be false anyway
2025-09-24 21:25:46 +08:00
368e5bc9a0
ref(lexer): simplify anchor 2025-09-24 21:25:46 +08:00
d6087ec3d6
ref(lexer): simplify delimited logic 2025-09-24 21:25:46 +08:00
fdb9070e99
fix(lexer): handle crlf in newline
Do we support windows 🤔
2025-09-24 21:25:46 +08:00