diff options
author | 2012-11-21 22:09:35 -0800 | |
---|---|---|
committer | 2012-11-21 22:09:35 -0800 | |
commit | a3a7c4879998f434e6bc5667ad9943f7f9e6aa74 (patch) | |
tree | 86e67a808599af834757cd42c16c80385796597f /highlight.cpp | |
parent | f545fb2491d36e02dc6c4005ada86be8678bba78 (diff) |
Modify tokenizer to store last token in a wcstring
Diffstat (limited to 'highlight.cpp')
-rw-r--r-- | highlight.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/highlight.cpp b/highlight.cpp index 77acd8da..666f6dba 100644 --- a/highlight.cpp +++ b/highlight.cpp @@ -968,7 +968,7 @@ static void tokenize(const wchar_t * const buff, std::vector<int> &color, const { /*Parameter */ - wchar_t *param = tok_last(&tok); + const wchar_t *param = tok_last(&tok); if (param[0] == L'-') { if (wcscmp(param, L"--") == 0) |