I have modified the kKeywordList in swift_helpers.cc to include support for escaping the keywords nil and operator. It would be great if nil and operator were already part of the list. The keyword static was already present in the list.
After generating Swift code, there are a couple of places where the escaping of the keywords fails.
Here is the operator issue. Note the unescaped operator.toString() on line 11.
Version of protoc (
protoc --version
)3.0
Version of ProtocolBuffers.framework
3.0.0
.proto
file to reproduceDescription
I have modified the
kKeywordList
in swift_helpers.cc to include support for escaping the keywordsnil
andoperator
. It would be great ifnil
andoperator
were already part of the list. The keywordstatic
was already present in the list.After generating Swift code, there are a couple of places where the escaping of the keywords fails.
Here is the
operator
issue. Note the unescapedoperator.toString()
on line 11.And here is the
static
issue. Note the unescapedif static != nil
on line 5.