Skip to content

Go scanner #147

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

Merged
merged 25 commits into from
Jul 13, 2013
Merged

Go scanner #147

merged 25 commits into from
Jul 13, 2013

Conversation

nathany
Copy link
Contributor

@nathany nathany commented Jun 23, 2013

This is a tweaked version of #28.

TODO:

  • Correctly handle E notation eg. 1.e+0
  • Improve numeric literal handling in general (it seems ints are sometimes floats, etc., probably my bad)
  • Use :imaginary kind for numbers ending with i
  • allow [uU] in character literals
  • predeclared identifiers (append, new, panic, etc.)

Also for reference: https://github.com/jayferd/rouge/blob/master/lib/rouge/lexers/go.rb

@ghost ghost assigned korny and nathany Jun 23, 2013
@korny
Copy link
Member

korny commented Jun 23, 2013

Wow, thanks for starting this, @nathany :-) Just tell me when you need support.

@ghost ghost assigned korny Jun 24, 2013
@nathany
Copy link
Contributor Author

nathany commented Jun 24, 2013

@korny I did a little bit, but it still needs work. Back to you. :-)

@korny
Copy link
Member

korny commented Jun 24, 2013

Ah, so that's why you assigned it to me ;-)

@korny korny mentioned this pull request Jul 13, 2013
@korny
Copy link
Member

korny commented Jul 13, 2013

Okay, I fixed the remaining issues from your list. Looks good enough for my eyes now. Additional tweak for the Go scanner are always welcome though!

@korny korny closed this Jul 13, 2013
@korny korny reopened this Jul 13, 2013
korny added a commit that referenced this pull request Jul 13, 2013
@korny korny merged commit 7493dcb into master Jul 13, 2013
@korny korny deleted the go-scanner branch July 13, 2013 18:39
@nathany
Copy link
Contributor Author

nathany commented Jul 14, 2013

Awesome. Thanks @korny

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.

3 participants