This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sample output: branch names have been changed to protect the innocent | |
cyen:~/working-path (christine.maybe-whipped-cream)$ git branchdate | |
2 hours ago master | |
2 hours ago christine.maybe-whipped-cream | |
3 hours ago christine.magic-shell -- make sure to use the stuff that hardens, not just choc syrup | |
10 days ago christine.maybe-add-caramel-syrup | |
4 weeks ago christine.serve-in-cream-puff -- WIP; current implementation looks too small | |
5 months ago christine.cream-puff-proof-of-concept |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Casual Grammar | |
/{{\s*\W?\s*\w+\s*}}|{{!.*?}}|{{{\s*(\w+)\s*}}}/g | |
# Informal Grammar | |
<template> ::= (<static-content> <tag>)* <static-content> | |
<static-content> ::= <text>+ | |
<tag> ::= "{{" <whitespace>* [<tag-type>] <whitespace>* <tag-name> <whitespace>* "}}" | |