Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Swift support for backticks and keypath syntax #794

Merged
merged 1 commit into from Oct 6, 2017

Conversation

johnfairh
Copy link
Contributor

Some small improvements to the Swift lexer:

  • Any word in backticks is an identifier even if it's a reserved word. Ref; since at least Swift 2.
  • Backslash is a punctuation character. Ref; new in Swift 4.

screen shot 2017-10-05 at 13 51 59

@gfx
Copy link
Member

gfx commented Oct 6, 2017

👏

Thanks!

@gfx gfx merged commit da58ffc into rouge-ruby:master Oct 6, 2017
@johnfairh johnfairh deleted the swift-syntax branch October 6, 2017 09:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants