@ 261101.7

261026.53 · 766002fae5f4412d563df6ca9a49c7ff27a019cc

Code pages render twice as fast: lines share one array, the page one builder

reading declarations

Changes to pylex.go. All files

pylex.go

@@ -12,7 +12,7 @@ import ( // quirks included: a keyword stays one after a dot, 1j is a number and a // name, and a docstring is an ordinary string. func pyTokens(code string) []chroma.Token {-	p := &pyLex{lex{src: code}}+	p := &pyLex{newLex(code)} 	for i := 0; i < len(code); { 		i = p.step(i, false) 	}