Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dart syntax highlighting #1958

Closed
m-bdf opened this issue Nov 27, 2021 · 0 comments · Fixed by #1959
Closed

Dart syntax highlighting #1958

m-bdf opened this issue Nov 27, 2021 · 0 comments · Fixed by #1959
Labels
bug Something isn't working syntax-highlighting upstream-error A bug in an upstream component

Comments

@m-bdf
Copy link

m-bdf commented Nov 27, 2021

Describe the bug you encountered:

Running bat test.dart with test.dart containing

return Object(
  Object(
    // Not highlighted as a comment
  )
)

does not highlight the third line as a comment (e.g. the as is highlighted as a keyword).

What did you expect to happen instead?

I expected the third line to be highlighted as a comment.

The Dart plugin currently used by bat hasn't been updated in a while (guillermooo/dart-sublime-bundle#586), so it might actually be time to find a new more complete and better maintained one, but I don't have much time to dive into it myself unfortunately.

How did you install bat?

With the Nix package manager under NixOS.


bat version and environment

Software version

bat 0.18.3

Operating system

Linux 5.15.3

Command-line

/nix/store/d0s6zszdslbd16ri50jn28fcc1jzdk2r-bat-0.18.3/bin/bat main.dart --diagnostic 

Environment variables

SHELL=/run/current-system/sw/bin/fish
PAGER='bat --plain'
LESS=<not set>
BAT_PAGER=<not set>
BAT_CACHE_PATH=<not set>
BAT_CONFIG_PATH=<not set>
BAT_OPTS=<not set>
BAT_STYLE=<not set>
BAT_TABS=<not set>
BAT_THEME=<not set>
XDG_CONFIG_HOME=<not set>
XDG_CACHE_HOME=<not set>
COLORTERM=truecolor
NO_COLOR=<not set>
MANPAGER=<not set>

Config file

--pager='less --RAW-CONTROL-CHARS --quit-if-one-screen'

Compile time information

  • Profile: release
  • Target triple: x86_64-unknown-linux-gnu
  • Family: unix
  • OS: linux
  • Architecture: x86_64
  • Pointer width: 64
  • Endian: little
  • CPU features: fxsr,sse,sse2
  • Host: x86_64-unknown-linux-gnu

Less version

> less --version 
less 596 (POSIX regular expressions)
Copyright (C) 1984-2021  Mark Nudelman

less comes with NO WARRANTY, to the extent permitted by law.
For information about the terms of redistribution,
see the file named README in the less distribution.
Home page: https://greenwoodsoftware.com/less
@m-bdf m-bdf added the bug Something isn't working label Nov 27, 2021
@keith-hall keith-hall added syntax-highlighting upstream-error A bug in an upstream component labels Nov 27, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working syntax-highlighting upstream-error A bug in an upstream component
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants