Skip to content

Line Control Statement Suppression in Verbatim String #77

@CoderScribe

Description

@CoderScribe

A very useful feature of squirrel for embedding files is the verbatim string e.g
const INDEX_HTML = @" @include once "index.html" ";

This allows the inclusion of a pure HTML file, allowing the file to be edited and previewed natively. When using line control statements, however (which is enforced by the VSCode extension), it inserts a line control statement into the verbatim string upon include, escaping the string and causing a compilation error.

Ideally this feature either needs to be aware of when it's within a verbatim string or have an optional suppression flag for individual includes.

Many thanks

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