| Summary: | Code highlighting shifted after UTF-8 character | ||
|---|---|---|---|
| Product: | [Applications] kdevelop | Reporter: | tuxtoriel |
| Component: | Language Support: CPP (Clang-based) | Assignee: | kdevelop-bugs-null |
| Status: | RESOLVED DUPLICATE | ||
| Severity: | normal | CC: | igorkuo, kde, kossebau, mail, plasteredparrot, silverunicorn2011 |
| Priority: | NOR | ||
| Version First Reported In: | unspecified | ||
| Target Milestone: | --- | ||
| Platform: | Other | ||
| OS: | Linux | ||
| Latest Commit: | Version Fixed/Implemented In: | ||
| Sentry Crash Report: | |||
| Attachments: | Examples screenshot | ||
I'm pretty sure this is the same issue that this person runs into: https://stackoverflow.com/questions/47192819/libclang-get-correct-reference-of-identifier-with-extended-characters-for-vari (In reply to Dan Weatherill from comment #1) > I'm pretty sure this is the same issue that this person runs into: > https://stackoverflow.com/questions/47192819/libclang-get-correct-reference- > of-identifier-with-extended-characters-for-vari That only means libclang reports byte indices instead of character indices. But KDevelop has the lines so has all the information necessary to convert them back and forth. *** This bug has been marked as a duplicate of bug 274430 *** |
Created attachment 106707 [details] Examples screenshot When, in the code, a character like '…', '«', '»', 'ç', 'ß' is used, the code highlighting after it is shifted. Example: OK: `std::cout << "Does this work?" << std::endl;` BUG: `std::cout << "Does this work?…" << std::endl;` here the shift is of 2 characters BUG: `std::cout << "Does this work?ç" << std::endl;` here the shift is of 1 character