Do not parse ''' as valid rune.
Fix duplicates in runes test: '\'' is same as '''. Add '\\'' instead.
Details
Details
- Reviewers
apol brauch - Commits
- R59:8575b935f2ad: Fix runes parsing.
Tests pass.
Diff Detail
Diff Detail
- Repository
- R59 KDevelop Go
- Lint
Automatic diff as part of commit; lint not applicable. - Unit
Automatic diff as part of commit; unit tests not applicable.
parser/test/parsertest.cpp | ||
---|---|---|
136 | Yep, if token could not be parsed it ends up with "Token_TEST" as far as I understood. So, there is verification that ''' is not parsed (because it's not valid go code) |
parser/test/parsertest.cpp | ||
---|---|---|
128 | Good idea. I will fix that in another RR since there are a lot of such QVERIFY misuses in that file (not related to this test\change) |