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

Line Control Statement Suppression in Verbatim String #77

Open
CoderScribe opened this issue Feb 11, 2020 · 0 comments
Open

Line Control Statement Suppression in Verbatim String #77

CoderScribe opened this issue Feb 11, 2020 · 0 comments

Comments

@CoderScribe
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant