The tools could have hooks for this.<p>It doesn&#x27;t take much imagination.<p>You know how GNU Bash is customizeable with custom completion for any command, so that when you&#x27;re, say, in the middle of a git command, it will complete on a branch name or whatever?<p>Similarly, we can teach a syntax highlighter, completer or whatever in some IDE how to work with our custom macro.