Skip to content
Browse files

"," needs to be allowed to allow for multiple inheritance.

Otherwise we'll end up with a situation like this:

class A {};
class B {};
class Test : public A, public B
{
public:
    Test() {}
    ~Test() {}

    void this_isnt_detected_as_a_function(int a, int b) {}
    int neither_is_this() {return 1;}
};

If "," is allowed, then all functions in this example are detected correctly.
  • Loading branch information...
1 parent e953dc5 commit f91781e5d754bf272f75461d5318f17b20ca137d @quarnster committed
Showing with 1 addition and 1 deletion.
  1. +1 −1 Syntaxes/C++.plist
View
2 Syntaxes/C++.plist
@@ -413,7 +413,7 @@
</dict>
</dict>
<key>end</key>
- <string>(?&lt;=\})|(?=(;|,|\(|\)|&gt;|\[|\]|=))</string>
+ <string>(?&lt;=\})|(?=(;|\(|\)|&gt;|\[|\]|=))</string>
<key>name</key>
<string>meta.class-struct-block.c++</string>
<key>patterns</key>

0 comments on commit f91781e

Please sign in to comment.
Something went wrong with that request. Please try again.