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
Changes from 1 commit
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
abb92f3
New: *Go Encoder*
Eric-Guo Jul 8, 2012
74eeb08
Merge remote-tracking branch 'Eric-Guo/go-scanner' into go-scanner
korny Jul 28, 2012
ec39f80
fix whitespace
korny Jul 28, 2012
7d2c3e5
Merge branch 'master' into go-scanner
korny Mar 10, 2013
addcbd4
Merge branch 'master' into go-scanner
korny Jun 12, 2013
0013b64
Merge branch 'master' into go-scanner
korny Jun 23, 2013
fd8c81f
additional types: string, error
nathany Jun 23, 2013
004d0c8
whitespace
korny Jun 23, 2013
afa2be7
add string as predefined type
korny Jun 23, 2013
7ef6f77
add support for raw strings in Go
korny Jun 23, 2013
a24c207
fix empty token in Go scanner
korny Jun 23, 2013
4669b70
fix label_expected (test case?)
korny Jun 23, 2013
c0d0280
make predefined-type a bit more bright/blue
korny Jun 23, 2013
52eadb6
Merge branch 'go-scanner' of github.com:rubychan/coderay into go-scanner
korny Jun 23, 2013
17946d7
changelog
korny Jun 23, 2013
85275cf
Go doesn't have a "f" suffix for floats like C.
nathany Jun 23, 2013
cad9a00
add imaginary numbers to Go scanner
nathany Jun 23, 2013
4c877bf
predeclared identifiers
nathany Jun 23, 2013
dd9ec43
yup, no C-style directives (auto extern static)
nathany Jun 23, 2013
a2c625b
Merge branch 'master' into go-scanner
korny Jun 30, 2013
e1abb68
Merge branch 'master' into go-scanner
korny Jul 13, 2013
4c24863
create nathany for Go scanner, too
korny Jul 13, 2013
bbe4d72
tweak numeral tokens handling (#147)
korny Jul 13, 2013
6dd14ef
be a bit more graceful with buggy Go strings
korny Jul 13, 2013
82864ef
allow unicode characters in char literals
korny Jul 13, 2013
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
yup, no C-style directives (auto extern static)
  • Loading branch information
nathany committed Jun 23, 2013
commit dd9ec43a3ea4cfce8eb1e8dd38504a9d8f24df54
5 changes: 0 additions & 5 deletions lib/coderay/scanners/go.rb
Original file line number Diff line number Diff line change
Expand Up @@ -37,14 +37,9 @@ class Go < Scanner
make new panic print println real recover
] # :nodoc:

DIRECTIVES = [
'go_no_directive', # Seems no directive concept in Go?
] # :nodoc:

IDENT_KIND = WordList.new(:ident).
add(KEYWORDS, :keyword).
add(PREDEFINED_TYPES, :predefined_type).
add(DIRECTIVES, :directive).
add(PREDEFINED_CONSTANTS, :predefined_constant).
add(PREDEFINED_FUNCTIONS, :predefined) # :nodoc:

Expand Down