So I just finished writing VS Code extensions for Inform 6 and 7. They only add syntax highlighting for the moment. Here are some features.
.hfiles (comments, numbers, routines, keywords and directives, object declarations, strings).
- Highlight characters, dictionary words and strings in different colours to help the author not mixing them up. Special characters in strings (
@:eand so on) are highlighted, too.
- Highlights Inform 6 template files (
.i6t, used by I7) correctly, with the paragraph headings and all.
There are no snippets yet, but I plan to add them eventually. A language server for linting, auto-completion and so on would be very cool (I’m quite interested to tackle the challenge), but it won’t be anytime soon.
(I’ve made a specific topic for the extension. Updates for the I7 extension will be announced there!)
I’m aware another extension already exists, but it made choices I didn’t like (for example, highlighting words such as “is” in sentences), and mine has more features. (And it seems the repo of the other extension isn’t public?)
.i7xfiles (story title, headings, comments, text and text substitutions, table names, documentation).
- Highlights Inform 6 inclusions if the above extension is installed.
- Highlights Preform files and inclusions.
A language server seems difficult to write because of the natural language. I may add snippets for the Standard Rules phrases.
I hope they will help people other than myself! And of course, comments, bug reports and other contributions are welcome!