aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/generator/cpp/tokenize.py
diff options
context:
space:
mode:
authorkosak <kosak@google.com>2015-01-08 02:48:08 +0000
committerkosak <kosak@google.com>2015-01-08 02:48:08 +0000
commit8e838ce0fd145431b433f534c71bdb7f5d6b11ac (patch)
tree1e4823d9b0396e2cc0c6240824e4e12f6a41a08c /scripts/generator/cpp/tokenize.py
parent6b817803104b30d5951c652a1427492db116a490 (diff)
downloadgoogletest-8e838ce0fd145431b433f534c71bdb7f5d6b11ac.tar.gz
googletest-8e838ce0fd145431b433f534c71bdb7f5d6b11ac.tar.bz2
googletest-8e838ce0fd145431b433f534c71bdb7f5d6b11ac.zip
Adding support to gmock_gen for nested templates.
Diffstat (limited to 'scripts/generator/cpp/tokenize.py')
-rwxr-xr-xscripts/generator/cpp/tokenize.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/generator/cpp/tokenize.py b/scripts/generator/cpp/tokenize.py
index 28c33452..359d5562 100755
--- a/scripts/generator/cpp/tokenize.py
+++ b/scripts/generator/cpp/tokenize.py
@@ -173,7 +173,7 @@ def GetTokens(source):
token_type = SYNTAX
i += 1
new_ch = source[i]
- if new_ch == c:
+ if new_ch == c and c != '>': # Treat ">>" as two tokens.
i += 1
elif c == '-' and new_ch == '>':
i += 1