[ http://jira.codehaus.org/browse/JBEHAVE-88?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Mauro Talevi updated JBEHAVE-88: -------------------------------- Fix Version/s: 1.1 > Allow for comments and newlines in story text files > --------------------------------------------------- > > Key: JBEHAVE-88 > URL: http://jira.codehaus.org/browse/JBEHAVE-88 > Project: JBehave > Issue Type: Improvement > Components: Story runner > Affects Versions: 1.0, 1.0.1 > Reporter: Eric Lewin > Assignee: Mauro Talevi > Fix For: 1.1 > > > Se below for a working example of sablecc grammar that allows comments > starting with '#'. Please make a more robust grammar if you implement this > improvement. > ... > Helpers > letter = [['a'..'z'] + ['A'..'Z']]; > digit = ['0'..'9']; > space = ' '; > tab = 9; > cr = 13; > lf = 10; > endl = cr | lf | cr lf; > commentchar = '#'; > specialchar = '/' | '?' | '-' | '.' | '*' | '(' | ')'; > norwegianchar = 'æ'|'ø'|'å'|'Æ'|'Ø'|'Å'; > commentchars = space | tab | letter | digit | specialchar | > norwegianchar; > Tokens > title_keyword = 'Title:'; > scenario_keyword = 'Scenario:'; > as_a = 'As a'; > i_want = 'I want'; > so_that = 'So that'; > given = 'Given'; > when = 'When'; > then = 'Then'; > space = space; > word = letter+; > endl = endl; > commentline = commentchar commentchars* endl; > Ignored Tokens > commentline; > Productions > story = > title > role? > feature? > benefit? > scenario*; > ... -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira --------------------------------------------------------------------- To unsubscribe from this list please visit: http://xircles.codehaus.org/manage_email