templater: add parsing rule for key-value pair
Based on the revset implementation, 70a2082f855a. This patch also adjusts
the test as '=' is now a valid token.
................----------------------------------------------------------------------Ran 16 tests in 0.000sOK