Add highlighting of double underscore Magic Words as __TOC__

Authored by Pastakhov on Sep 13 2017, 3:47 AM.

Description

Add highlighting of double underscore Magic Words as TOC

For testing:
NOTOC
___NOTOC___
____NOTOC____
_____NOTOC_____
______NO!TOCNOTOC__
______NO{{TOC}}_____
______NO[[TOC]]_____
______NO'''TOC'''_____
nOtOc
FFFFF___NOtoc______
'''____________NOTOC______'''
TOC_TOC__
TOC__TOC__
___TOC_____TOC___
TOC_TOC__
___NOTOC___
____NOTOC____
_____NOTOC_____
______NO!TOCNOTOC__
______NO{{TOC}}_____
______NO[[TOC]]_____
______NO'''TOC'''_____
nOtOc
FFFFF___NOtoc______
{{TOC|TOC}}

Wrong, but not a big problem:
[[TOC|TOC]]

Bug: T170041
Change-Id: I0b2cfd02550c2685d241bdf3596507c5972878d5

Details