]> git.eshelyaron.com Git - emacs.git/commit
Rust ts: fontify as type the possible suffix of number literals
authorChristophe Troestler <Christophe.Troestler@umons.ac.be>
Fri, 18 Oct 2024 21:50:06 +0000 (23:50 +0200)
committerEshel Yaron <me@eshelyaron.com>
Wed, 27 Nov 2024 19:52:49 +0000 (20:52 +0100)
commit01bd19d9fe19277861188d51443cd163fd9ab6bf
treef21621260f85e969d56c83f694caa9ddbfd20132
parenta801f250ec5adae090250814f48760d83c052706
Rust ts: fontify as type the possible suffix of number literals

* lisp/progmodes/rust-ts-mode.el
(rust-ts-mode--fontify-number-literal): Perform the improved
fontification of numbers.  (Bug#73877)
* test/lisp/progmodes/rust-ts-mode-tests.el:
* test/lisp/progmodes/rust-ts-mode-resources/font-lock.rs:
* test/lisp/progmodes/rust-ts-mode-resources/font-lock-number.rs:
Add tests for the new optional fontification of the possible type
suffix of numbers.

(cherry picked from commit 902696c3ae3ed046208c57de923362bb609da6df)
etc/NEWS
lisp/progmodes/rust-ts-mode.el
test/lisp/progmodes/rust-ts-mode-resources/font-lock-number.rs [new file with mode: 0644]
test/lisp/progmodes/rust-ts-mode-resources/font-lock.rs
test/lisp/progmodes/rust-ts-mode-tests.el