erkyrath / language-inform7

Inform 7 language grammar

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Inform 7 language grammar for Atom

This package permits syntax coloring of Inform 7 source code in the Atom editor (and compatible syntax colorers).

This started as a fork of Robert Clarke's Inform grammar. It's turned into a total rewrite, however. I've renamed it to include the "7" (since Inform 6 is a different language) and added "7" to all the syntax classes.

This correctly colors:

  • Strings with bracketed substitutions
  • Nested comments
  • Section header lines
  • Inform 6 inclusions
  • The documentation section at the end of an extension

I do not try to color all of Inform 6 syntax. (There's a standard algorithm for this, but it's not regexp-based and I never liked it anyhow.) I just color I6 strings, dict words, and comments within I6 inclusions.

Known bugs:

  • I7 requires section headers to be set off by blank lines above and below. This grammar does not check that requirement.

Screenshot:

Screenshot

For more sample Inform 7 code, see the Linguist I7 samples or the friends of I7 repo.

About

Inform 7 language grammar

License:MIT License