Improved script CFC support

- Updated grammar file to fix some problems, make it more uniform.
- Added some script snippets