Closed aljelly closed 4 years ago
Cool :)
Crystal also doesn't like it if just the first character is uppercase, say
lib LibFoo
struct Bar
Baz : Int32
end
end
So let's do something like
name = "_#{name}" if name && name[0].uppercase?
Done, now it's:
name = "_#{name}" if name[0].uppercase? if name
Example (Granite-1.0.gir):
Which would generate:
Crystal does not like that:
So this PR fixes that by prepending
_
s to them: