rules: don't display references when there's none
rules: syntax highlighting for rule via pygment

Pygment is now use to syntax highlight the rule. The pygment
lexer is based on hogments (https://github.com/yaunj/hogments).