I was just going through old files and saw a cool video of an old project that I thought I should share. In January 2021 I started working on a new text editor. Zed didn’t exist publicly at the time (it must’ve been under development) and two projects were getting a lot of hype: Alacritty because of its renderer Tree-sitter because IIRC Neovim was about to ship built-in support for tree-sitter grammars for syntax highlighting Inspired by these two developments, I started implementing my own text editor. The renderer was similar to Alacritty: IIRC I even copied and modified its texture atlas generator that lazily generated glyphs. The renderer must’ve been similar too, though I’d written it myself. It only used OpenGL. For language support I had different ideas. I used compiled lexers (instead of runtime-interpreted regexes like most editors and IDEs) for syntax highlighting. The editor didn’t care about the actual lexer generator used, but for Rust I used my own lexgen-based Rust…
No comments yet. Log in to reply on the Fediverse. Comments will appear here.