Syntax highlighting is incorrect with # in an alias name · Issue #560 · PRQL/prql-vscode · GitHub
Skip to content

Syntax highlighting is incorrect with # in an alias name #560

Open

Description

@richb-hanover

Creating an alias that contains a "#" gives an incorrect coloring in the VSCode Extension. The generated SQL is OK. Using the example below:

from albums
derive `foo#` = 5

In the Playground, the syntax coloring looks OK and the SQL is too.

In the VSCode Extension, the SQL is OK, but the highlighting shows the "#` = 5" to be grey and italicized.

image

Moved here from: PRQL/prql#4725

Activity

  1. changed the title [-]Syntax highlighting with # in an alias name is incorrect...[/-] [+]Syntax highlighting is incorrect with # in an alias name[/+] on Jul 13, 2024
  2. max-sixty commented on Jul 13, 2024

    @max-sixty
    Member

    This would be great to fix. It's probably not a trivial fix given the code grammar is in TextMate, but also not impossible — rust does manage:

    image
  3. RedCMD commented on Aug 15, 2025

    @RedCMD

    what should it look like?

    here's my VSCode extension to help with authoring TextMate grammars https://marketplace.visualstudio.com/items?itemName=RedCMD.tmlanguage-syntax-highlighter

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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