about summary refs log tree commit diff stats
path: root/src/html
diff options
context:
space:
mode:
authorbptato <nincsnevem662@gmail.com>2022-07-29 22:54:51 +0200
committerbptato <nincsnevem662@gmail.com>2022-07-29 22:54:51 +0200
commit0dfe2a310db3fb7492ed448235e0757042f0f5ca (patch)
tree676aaa8d37eeaf530a53224e4463976f6b6151bb /src/html
parent54f4d71325c4f12b23113c945625796bda78e3c6 (diff)
downloadchawan-0dfe2a310db3fb7492ed448235e0757042f0f5ca.tar.gz
Increase tokenizer buffer size, add mark color option
Diffstat (limited to 'src/html')
-rw-r--r--src/html/htmltokenizer.nim2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/html/htmltokenizer.nim b/src/html/htmltokenizer.nim
index 4f81f6a6..a1c894c8 100644
--- a/src/html/htmltokenizer.nim
+++ b/src/html/htmltokenizer.nim
@@ -97,7 +97,7 @@ func `$`*(tok: Token): string =
   of COMMENT: fmt"{tok.t} {tok.data}"
   of EOF: fmt"{tok.t}"
 
-const bufSize = 512
+const bufSize = 4096
 const copyBufSize = 16
 proc newTokenizer*(s: Stream): Tokenizer =
   result.sbuf = newString(bufSize)