support dollar sign in inline dialects

In this way it is possible to use the dollar ($) sign as a startpoint for an inline dialect.
Also added the caret symbol, for completeness. In this way all ascii symbols are allowed.
Merge pull request #1692 from kasperpeulen/dollarfix

Allow dollar sign for inline dialects