I'm trying to implement Automatic Semicolon Insertion in an open source Kotlin parser (https://github.com/fwcd/tree-sitter-kotlin) but the information about it is missing from the language spec. The linked library has some "naive" implementation but with the proper spec it would much easier for people to contribute there. Tree-sitter is the source for language support for many tools and editors and I believe having ASI sorted will dramatically improve the tooling quality. Not having this in the spec creates additional barrier for contributors
I'm trying to implement Automatic Semicolon Insertion in an open source Kotlin parser (https://github.com/fwcd/tree-sitter-kotlin) but the information about it is missing from the language spec. The linked library has some "naive" implementation but with the proper spec it would much easier for people to contribute there. Tree-sitter is the source for language support for many tools and editors and I believe having ASI sorted will dramatically improve the tooling quality. Not having this in the spec creates additional barrier for contributors
It would help if this is added to the spec (or as some sort of Appendix or an article) as for instance for JavaScript: https://262.ecma-international.org/7.0/#sec-rules-of-automatic-semicolon-insertion