Skip to content

#354: Add #selector rule to the grammar#357

Merged
adityatrivedi merged 4 commits intomasterfrom
at-354-selector-bug-fix
Apr 3, 2016
Merged

#354: Add #selector rule to the grammar#357
adityatrivedi merged 4 commits intomasterfrom
at-354-selector-bug-fix

Conversation

@adityatrivedi
Copy link
Copy Markdown
Member

Fixes #354. The #selector macro is a new feature introduced with Swift 2.2.

The grammar needs to be updated to incorporate new language features that have been added in Swift 2.2.


// GRAMMAR OF AN ARGUMENT NAME
argumentNames : argumentName argumentNames? ;
argumentName: (identifier | '_') ':'? ;
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add a comment indicating that this line differs from the Swift Language Reference (there are lots of examples in this file).

@a4sriniv
Copy link
Copy Markdown
Member

a4sriniv commented Apr 1, 2016

👍 🎉

@adityatrivedi adityatrivedi force-pushed the at-354-selector-bug-fix branch from 0ef605f to 333e140 Compare April 1, 2016 19:40
@adityatrivedi adityatrivedi force-pushed the at-354-selector-bug-fix branch from 333e140 to 1da3945 Compare April 1, 2016 19:41
@adityatrivedi adityatrivedi assigned alykhank and unassigned a4sriniv Apr 2, 2016

// GRAMMAR OF AN ARGUMENT NAME
argumentNames : argumentName argumentNames? ;
argumentName: (identifier | '_') ':'? ; // Swift Language Reference has argumentName → identifier :
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is the ':' supposed to be optional? (another deviation from the Swift Language Reference)

@alykhank
Copy link
Copy Markdown
Member

alykhank commented Apr 3, 2016

👍

@adityatrivedi adityatrivedi merged commit 0d7c634 into master Apr 3, 2016
@adityatrivedi adityatrivedi deleted the at-354-selector-bug-fix branch April 3, 2016 00:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants