3 ms·
I’ve been the primary maintainer for a vim plug-in for a number of years. Dealing with indentation expectations of a modern, complex programming language withou
by jb3689 5y ago
I’ve been the primary maintainer for a vim plug-in for a number of years. Dealing with indentation expectations of a modern, complex programming language without an AST parser (you need to be able to deal with code that doesn’t compile) is one of the hardest problems I’ve had to work on. Dealing with string and comment detection, dealing with the constant influx of new features, keeping it performant and maintainable in a dedicated scripting language with bespoke debugging tools. The best approach I’ve come up with is to be ruthless about testing and use strictly TDD for everything
Take a look at how complex the code is for something like vim-ruby to get a feel for what I’m talking about