---input---
#rect()[= Heading]

---tokens---
'#rect'       Name.Function
'('           Punctuation
')'           Punctuation
'['           Punctuation
'='           Text
' '           Text.Whitespace
'Heading'     Text
']'           Punctuation
'\n'          Text.Whitespace
