enhanced grammar

- added more reliable beginning of line detection without capturing
(`(?:^\s*)`)
- added detection of messages
- added case insensitive constant usage (`(?i)`)