Add rules for literal symbol syntax (%i and %I).

Based on the rules for literal strings.

I’m not sure if I got the scope names completely right – please feel free to suggest improvements, if necessary.