Commit Graph

5 Commits

Author SHA1 Message Date
3982628653 Ran go fmt *.go on all sources 2021-04-04 13:15:31 -05:00
a4d5f3ccf4 Highlighter: fix bug causing out of bounds access when endLine > len of internal lines 2021-04-01 16:19:14 -05:00
58c8de3068 Rope: Added LineColToPos, and optimized Highlighter's UpdateLines() 2021-04-01 14:16:51 -05:00
f829b37d0c TextEdit & Highlighting: performance improvements & changes to architecture
I ran pprof to find what was causing stuttering, and found it to be the
getTabCountInLineAtCol function in TextEdit, because it was iterating
many bytes of the buffer, for each rune rendered. Replaced it with a more
optimal system. Also changed the architecture of the highlighting system
to use a single RegexpRange structure for all regular expressions. This
allows for optimizations and multiline matches in the future.
2021-04-01 12:05:17 -05:00
9a85e8efef Create and initialize Highlighter in TextEdit 2021-03-27 13:42:11 -05:00