Basic Sublime Text 3 syntax highlighting file for the Inform 6 language
Sublime Text 3 or later. Note that the content in inform6.sublime-syntax might work with a ".tmLanguage" file for Sublime Text 2 and earlier, but I haven't verified this.
Inform 6 source files. Note that inform6.sublime-syntax will not work with Inform 7, as the grammar has changed significantly. My personal preference is Inform 6, so I wrote this to support my development work.
To install, copy the inform6.sublime-syntax file to your Sublime 3 user packages directory. On Mac OS X, the location should be something like:
/Users/<USERNAME>/Library/Application Support/Sublime Text 3/Packages/User
Restart Sublime Text.
"Inform6" should be available as a syntax option under View -> Syntax. Also, this syntax should be used by default when opening ".inf" files (unless you have another syntax plugin that already gets applied to .inf files).
This syntax file is far from complete. I just hacked this together in an hour or so to highlight the most common things I run into when editing Inform 6 source files. The regex for matching a function name is particularly hacky.
Feel free to contribute or suggest additional syntax contexts.
Sublime Text Syntax Definitions
Textmate scope naming conventions, used in syntax definitions