unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#45533: 28.0.50; font-lock-variable-name-face regression
@ 2020-12-29 12:35 Andreas Röhler
  2022-06-07 12:17 ` Lars Ingebrigtsen
  0 siblings, 1 reply; 3+ messages in thread
From: Andreas Röhler @ 2020-12-29 12:35 UTC (permalink / raw)
  To: 45533

[-- Attachment #1: Type: text/plain, Size: 3950 bytes --]

Looks like fixing bug#45341 introduced a regression WRT bug#44568: font 
lock of assignments with type hints

Load the code below or see  "var3: Mapping" in center of attached png

---

# from typing import Mapping, Tuple, Sequence
var1: int = 5
var2: Mapping[int, int] = {10: 1024}
var3: Mapping[Tuple[int, int], int] = {(2, 5): 32}
var4: Sequence[Sequence[int]] = [[1], [1, 2], [1, 2, 3]]
var5: Sequence[Mapping[str, Sequence[str]]] = [
     {
     'red': ['scarlet', 'vermilion', 'ruby'],
     'green': ['emerald', 'aqua']
     },
     {
     'sword': ['cutlass', 'rapier']
     }
]

[a, b, c] = 1, 2, 3
a, *b, c = range(10)
inst.a, inst.b, inst.c = 'foo', 'bar', 'baz'
(a, b, *c, d) = x, *y = 5, 6, 7, 8, 9

---


In GNU Emacs 28.0.50 (build 1, i686-pc-linux-gnu, GTK+ Version 3.14.5, 
cairo version 1.14.0)
  of 2020-12-27
Repository revision: df882c9701755e2ae063f05d3381de14ae09951e
Repository branch: master
Windowing system distributor 'The X.Org Foundation', version 11.0.11604000
System Description: Debian GNU/Linux 8 (jessie)

Configured using:
  'configure --with-mailutils -with-modules --with-ffi'

Configured features:
XPM JPEG TIFF GIF PNG CAIRO SOUND DBUS GSETTINGS GLIB NOTIFY INOTIFY ACL
GNUTLS LIBXML2 FREETYPE LIBOTF ZLIB TOOLKIT_SCROLL_BARS GTK3 X11 XDBE
XIM MODULES THREADS PDUMPER

Important settings:
   value of $LANG: de_DE.UTF-8
   locale-coding-system: utf-8-unix

Major mode: Python

Minor modes in effect:
   shell-dirtrack-mode: t
   tooltip-mode: t
   global-eldoc-mode: t
   eldoc-mode: t
   electric-indent-mode: t
   mouse-wheel-mode: t
   tool-bar-mode: t
   menu-bar-mode: t
   file-name-shadow-mode: t
   global-font-lock-mode: t
   font-lock-mode: t
   blink-cursor-mode: t
   auto-composition-mode: t
   auto-encryption-mode: t
   auto-compression-mode: t
   line-number-mode: t
   transient-mark-mode: t

Load-path shadows:
None found.

Features:
(shadow sort mail-extr pp wid-edit descr-text help-mode emacsbug message
rmc puny dired dired-loaddefs rfc822 mml mml-sec epa derived epg
epg-config gnus-util rmail rmail-loaddefs text-property-search mm-decode
mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader
sendmail rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils vc-git
diff-mode easy-mmode python easymenu tramp-sh tramp tramp-loaddefs
trampver tramp-integration files-x tramp-compat shell pcomplete
parse-time iso8601 time-date ls-lisp format-spec auth-source cl-seq
eieio eieio-core cl-macs eieio-loaddefs password-cache json subr-x map
seq byte-opt gv bytecomp byte-compile cconv comint ring cl-loaddefs
cl-lib ansi-color iso-transl tooltip eldoc electric uniquify ediff-hook
vc-hooks lisp-float-type mwheel term/x-win x-win term/common-win x-dnd
tool-bar dnd fontset image regexp-opt fringe tabulated-list replace
newcomment text-mode elisp-mode lisp-mode prog-mode register page
tab-bar menu-bar rfn-eshadow isearch timer select scroll-bar mouse
jit-lock font-lock syntax facemenu font-core term/tty-colors frame
minibuffer cl-generic cham georgian utf-8-lang misc-lang vietnamese
tibetan thai tai-viet lao korean japanese eucjp-ms cp51932 hebrew greek
romanian slovak czech european ethiopic indian cyrillic chinese
composite charscript charprop case-table epa-hook jka-cmpr-hook help
simple abbrev obarray cl-preloaded nadvice button loaddefs faces
cus-face macroexp files window text-properties overlay sha1 md5 base64
format env code-pages mule custom widget hashtable-print-readable
backquote threads dbusbind inotify dynamic-setting system-font-setting
font-render-setting cairo move-toolbar gtk x-toolkit x multi-tty
make-network-process emacs)

Memory information:
((conses 8 172703 19174)
  (symbols 24 45243 1)
  (strings 16 133078 2687)
  (string-bytes 1 2663814)
  (vectors 8 17215)
  (vector-slots 4 625868 73776)
  (floats 8 48 35)
  (intervals 28 526 70)
  (buffers 560 12)
  (heap 1024 17094 3579))


[-- Attachment #2: pythen-el.png --]
[-- Type: image/png, Size: 180203 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* bug#45533: 28.0.50; font-lock-variable-name-face regression
  2020-12-29 12:35 bug#45533: 28.0.50; font-lock-variable-name-face regression Andreas Röhler
@ 2022-06-07 12:17 ` Lars Ingebrigtsen
  2022-06-07 13:36   ` Andreas Röhler
  0 siblings, 1 reply; 3+ messages in thread
From: Lars Ingebrigtsen @ 2022-06-07 12:17 UTC (permalink / raw)
  To: Andreas Röhler; +Cc: Dario Gjorgjevski, 45533

[-- Attachment #1: Type: text/plain, Size: 442 bytes --]

Andreas Röhler <andreas.roehler@easy-emacs.de> writes:

> Looks like fixing bug#45341 introduced a regression WRT bug#44568:
> font lock of assignments with type hints
>
> Load the code below or see  "var3: Mapping" in center of attached png

(I'm going through old bug reports that unfortunately weren't resolved
at the time.)

In your .png, var1: wasn't getting the correct highlighting, but it
seems like that's fixed now:


[-- Attachment #2: Type: image/png, Size: 48310 bytes --]

[-- Attachment #3: Type: text/plain, Size: 189 bytes --]


But var3: is still odd?

I've added Dario to the CCs; perhaps he has some comments.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no

^ permalink raw reply	[flat|nested] 3+ messages in thread

* bug#45533: 28.0.50; font-lock-variable-name-face regression
  2022-06-07 12:17 ` Lars Ingebrigtsen
@ 2022-06-07 13:36   ` Andreas Röhler
  0 siblings, 0 replies; 3+ messages in thread
From: Andreas Röhler @ 2022-06-07 13:36 UTC (permalink / raw)
  To: Lars Ingebrigtsen; +Cc: Dario Gjorgjevski, 45533

[-- Attachment #1: Type: text/plain, Size: 635 bytes --]


Am 07.06.22 um 14:17 schrieb Lars Ingebrigtsen:
> Andreas Röhler<andreas.roehler@easy-emacs.de>  writes:
>
>> Looks like fixing bug#45341 introduced a regression WRT bug#44568:
>> font lock of assignments with type hints
>>
>> Load the code below or see  "var3: Mapping" in center of attached png
> (I'm going through old bug reports that unfortunately weren't resolved
> at the time.)
>
> In your .png, var1: wasn't getting the correct highlighting, but it
> seems like that's fixed now:
>
>
> But var3: is still odd?


Yes, exists in Emacs 29.0.50 from 2022-06-04.

>
> I've added Dario to the CCs; perhaps he has some comments.
>

[-- Attachment #2: Type: text/html, Size: 1518 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2022-06-07 13:36 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-12-29 12:35 bug#45533: 28.0.50; font-lock-variable-name-face regression Andreas Röhler
2022-06-07 12:17 ` Lars Ingebrigtsen
2022-06-07 13:36   ` Andreas Röhler

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).