Skip to content

Expected behavior of .1sec? Inconsistent highlighting of float, duration, filesize? #17913

@blindFS

Description

@blindFS

Bug report form

  • I have done a basic search of the issue tracker to find any existing issues that are similar.
  • I have checked that my version is at least the latest stable release available via my installation method.

Describe the bug

Essentially 2 related issues here:

  1. Not sure if it's a bug, but if .1 is a float, I'd expect .1sec to be parsed as duration
  2. The following highlighting might be caused by incorrect customization, but we better provide a mechanism to prevent it
Image

Basically I mean 1. in 1.sec should be highlighted as float, otherwise why not highlighting all number shapes in the same way?

How to reproduce

Type commands mentioned above in the REPL.

Expected behavior

More consistent behavior

Configuration

key value
version 0.111.0
major 0
minor 111
patch 0
branch
commit_hash
build_os macos-aarch64
build_target aarch64-apple-darwin
rust_version rustc 1.93.1 (01f6ddf75 2026-02-11) (Homebrew)
cargo_version cargo 1.93.1 (Homebrew)
build_time 2026-02-28 23:22:43 +00:00
build_rust_channel release
allocator standard
features default, mcp, network, plugin, rustls-tls, sqlite, trash-support
installed_plugins
experimental_options example=false, reorder-cell-paths=true, pipefail=true, enforce-runtime-annotations=false, native-clip=false

Metadata

Metadata

Assignees

No one assigned

    Labels

    status:needs-triageAn issue that hasn't had any proper look

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions