Skip to content

SQL coloration for Repo.query! #67

Open
@saveman71

Description

@saveman71

Hello! thanks for the great package.

i'm trying to add Repo.query! as a valid way to start an SQL fragment.

By just adding it to the list like so:

  ## SQL

  sql_or_fragment:
    - match: (?>(fragment)|(sql)|(Repo\.query!))(\()

It kinda works, but it looses the function coloration, i.e. becomes white:

Before:
image

After:
image

It's miles better, but what am I missing? Adding only query! doesn't work at all.

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