-
Notifications
You must be signed in to change notification settings - Fork 57
Open
Labels
Milestone
Description
Motivation
I'm using astring
as part of an atom plugin to help with code generation. It would be great to be able to control whether semicolons are emitted, so that I can match the current style directives of the current project. Right now, semicolons are implemented as a whole bunch of state.write(';')
instances.
It would be awesome to have a config option to control semicolon emission. I'm thinking that you could replace all those writes with a semantic state.terminate()
, which can check if it should print a semicolon or not.
The only alternative to control this is to basically fork the entire baseGenerator
, so you can remove all those writes.