Warning, /frameworks/syntax-highlighting/autotests/input/test.eml is written in an unsupported language. File is not indexed.
0001 Return-Path: <kwrite-devel-bounces@kde.org> 0002 X-Sieve: CMU Sieve 2.3 0003 X-Virus-Scanned: amavisd-new at site 0004 Authentication-Results: linux.site (amavisd-new); dkim=pass (1024-bit key) 0005 header.d=kde.org 0006 Received: from postbox.kde.org (localhost.localdomain [127.0.0.1]) 0007 by postbox.kde.org (Postfix) with ESMTP id 3167DB6E75; 0008 Wed, 5 Oct 2016 20:21:47 +0000 (UTC) 0009 (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) 0010 (above comment is a test-case from bug #425345) 0011 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=kde.org; s=default; 0012 t=1475698907; bh=6i+3UfR6HLC54wVtp5SF4sVWvQn63jzu9vD2zJal/kY=; 0013 h=From:To:Subject:Date:Reply-To:List-Id:List-Unsubscribe:List-Post: 0014 List-Help:List-Subscribe:From; 0015 b=M5nfHbmJe/4DPuidrJ901dUzX3FmpVpyUrPM961Or9bKrMO+z9gaTUwbfPR74Rq8B 0016 Rv66yf3ZaDuRZxv/ARPzpr8qnDTtf13WRFZ/ySdqqqQJKeBqCAd7/wbR0kHhypvpwe 0017 z4nY6+bNnjvFelPXR56o16b+/Ib2GTYJ9hwiG97U= 0018 X-Original-To: kwrite-devel@kde.org 0019 Delivered-To: kwrite-devel@localhost.kde.org 0020 Received-SPF: Neutral (access neither permitted nor denied) identity=mailfrom; 0021 client-ip=85.214.234.26; helo=h2265959.stratoserver.net; 0022 envelope-from=vkrause@kde.org; receiver=kwrite-devel@kde.org 0023 From: Volker Krause <vkrause@kde.org> 0024 To: kwrite-devel@kde.org 0025 Cc: <boss@nil.test>, "Giant; \"Big\" Box" <sysservices@example.net> 0026 (CC example from RFC 5322 Appendix A.1.2) 0027 Subject: KSyntaxHighlighting is cool! Happy: :-) Sad: :-( 0028 Subject goes on here > < ] [ 0029 Date: Wed, 05 Oct 2016 22:19:17 +0200 0030 Message-ID: <2420385.jiZKTgWtgY@vkpc5> 0031 Organization: KDE 0032 User-Agent: KMail/4.14.10 (Linux/4.1.13-5-default; KDE/4.14.16; x86_64; 0033 git-91275a7; 2015-12-13) 0034 MIME-Version: 1.0 0035 Content-Type: multipart/signed; boundary="nextPart1575059.2yRQ5x6HOo"; 0036 micalg="pgp-sha1"; protocol="application/pgp-signature" 0037 X-BeenThere: kwrite-devel@kde.org 0038 X-Mailman-Version: 2.1.16 0039 Precedence: list 0040 Reply-To: kwrite-devel@kde.org 0041 List-Id: Kate/KWrite Mailing List <kwrite-devel.kde.org> 0042 List-Unsubscribe: <https://mail.kde.org/mailman/options/kwrite-devel>, 0043 <mailto:kwrite-devel-request@kde.org?subject=unsubscribe> 0044 List-Post: <mailto:kwrite-devel@kde.org> 0045 List-Help: <mailto:kwrite-devel-request@kde.org?subject=help> 0046 List-Subscribe: <https://mail.kde.org/mailman/listinfo/kwrite-devel>, 0047 <mailto:kwrite-devel-request@kde.org?subject=subscribe> 0048 Errors-To: kwrite-devel-bounces@kde.org 0049 Sender: "KWrite-Devel" <kwrite-devel-bounces@kde.org> 0050 0051 0052 --nextPart1575059.2yRQ5x6HOo 0053 Content-Transfer-Encoding: 7Bit 0054 Content-Type: text/plain; charset="us-ascii" 0055 0056 Hi, 0057 0058 when trying to add the unit test for the new Praat highlighting to 0059 KF5::SyntaxHighlighting it turned out that the output doesn't match at all 0060 that of Kate. We managed to trace this back to the following rather surprising 0061 (and apparently undocumented) behavior in Kate: 0062 0063 When a context switch (anywhere in a line) pops more contexts than were on the 0064 stack when starting the line, it executes line end context switches of the 0065 previous line contexts. 0066 0067 | | | | | | The corresponding code is in KateHighlighting::generateContextStack(), 0068 | | > | > KF5::SyntaxHighlighting doesn't do this (yet), Praat is apparently the first 0069 > | > format we have tests for that uses this behavior. 0070 0071 > Does anyone remember why we do this, or happens to know which highlighting 0072 > files besides Praat rely on this? 0073 0074 > > Archeology can trace this back to the dark CVS ages even, one reference 0075 > > Dominik has dug up is a 10 year old SVN commit 0076 > > (https://quickgit.kde.org/?p=kdelibs.git&a=commit&h=90ef47f582277745f727d89f05f72f1e1705fdc4 0077 > >), where Christoph claims to understand what this code does ;) 0078 0079 > > > As this is highly unexpected and hard to reason about behavior, Dominik and I 0080 > > > > were wondering if we can possibly drop this, and rather fix affected 0081 > > > > > highlighting files instead? 0082 0083 Regards, 0084 Volker 0085 --nextPart1575059.2yRQ5x6HOo 0086 Content-Type: application/pgp-signature; name="signature.asc" 0087 Content-Description: This is a digitally signed message part. 0088 Content-Transfer-Encoding: 7Bit 0089 0090 -----BEGIN PGP SIGNATURE----- 0091 Version: GnuPG v2 0092 0093 iD8DBQBX9WBIf5bM1k0S0kcRAireAJ4lCWa08Y5yU1ezIvKVCAfnkhcUbACgou0O 0094 X4c+lkPI0tti59KV1vetaeU= 0095 =VqDS 0096 -----END PGP SIGNATURE----- 0097 0098 --nextPart1575059.2yRQ5x6HOo--