Skip to content

Syntax highlighting of raw strings #196

@LemmusLemmus

Description

@LemmusLemmus

Currently, raw strings are highlighted as if they were a comment.

let text = r#'raw-string'#; let text2 = "string"

Compare this with how a raw strings are highlighted in e.g. Python.

text = r'raw-string'; text2 = "string"

For reference, in the nushell line editor, raw strings are simply rendered as white (in my terminal at least).

I suggest that raw strings should probably be rendered as either:

  • The normal string color.
  • As it is in e.g. Python in VSCode, i.e. the r is one color and the rest is another color.
  • As it is in the shell (white).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions