improve rmd syntax matching
Merge pull request #62 from mdlerch/rmd_syntax

improve rmd syntax matching