https://bugs.kde.org/show_bug.cgi?id=407060
Bug ID: 407060 Summary: incorrect YAML highlighted some text block Product: frameworks-syntax-highlighting Version: unspecified Platform: Other OS: Linux Status: REPORTED Severity: normal Priority: NOR Component: syntax Assignee: kwrite-bugs-n...@kde.org Reporter: tonal.proms...@gmail.com Target Milestone: --- SUMMARY Incorrect highlighted text as comment Break highlighting in double quote inside text block STEPS TO REPRODUCE 1. Paste this fragment to Kate: <yaml> 7: domain: example.org reg_list: - reg: ?#XPath //div[@class="product_item cf"][@id] ))(?sx) id="product(?P<code>[^"]+)" .+?<h4><a\s+[^>]+>(?P<title>[^<]+)</a></h4> .+?>(?:(?P<artikul>[^<]+)|\s*)</span> .+?(?:new|usual)Price">(?:(?P<price>[\d\s,.]*\d)(?:<span\s+ class="(?P<rub>rur)">)?|<span[^>]*>по\s+ запросу) - reg: ?#XPath //div[@class="product_item cf"][not(@id)] ))(?sx) <h4>\s*<a\s+href=[^>]+>(?P<title>[^<]+)</a></h4> .+?<div\s+ class="divRow"\s+ id="rowOffer(?P<code>\d+)"> .+?<span\s+ class="nameForOffer">(?:(?P<artikul>[^<]+)|\s*)</span> .+?(?:new|usual)Price">\s*(?:(?P<price>[\d\s,.]+\d)\s*<span\s+class="(?P<rub>rur)">|<span\s+[^>]+>\s*по\s+ запросу) - reg: ?#XPath //div[@class="second_column left"] ))"name"\scontent="(?P<title>[^<]+)">[\s\S]+?Артикул:\s<span>(?P<artikul>[^<]+)</span>[\s\S]+?Price">(?P<price>[\d\s,.]+)[\s\S]+?id="spinner(?P<code>[^"]+)" </yaml> OBSERVED RESULT Incorrect highlighted comment after '?' Break highlighting in double quote inside text block EXPECTED RESULT 3 key "reg". Values - text block without comments. SOFTWARE/OS VERSIONS Operating System: KDE neon 5.15 KDE Plasma Version: 5.15.4 KDE Frameworks Version: 5.57.0 Qt Version: 5.12.0 Kernel Version: 4.15.0-48-generic OS Type: 64-bit Processors: 4 × Intel® Core™ i5-6200U CPU @ 2.30GHz Memory: 19,5 ГиБ -- You are receiving this mail because: You are watching all bug changes.