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

Highlighting issue #16

Open
reactormonk opened this issue Oct 12, 2018 · 4 comments
Open

Highlighting issue #16

reactormonk opened this issue Oct 12, 2018 · 4 comments

Comments

@reactormonk
Copy link

The code

''
"''${FOO}"
bar
''

Isn't getting highlighted properly. The bar should still be inside the string.

@purcell
Copy link
Collaborator

purcell commented Oct 12, 2018

Really? The tutorial says:

These "double single quote strings" ignore all special characters, with one exception: if you want to include a '' in the string, you will need to escape it with a preceding ' (i.e. use ''' to insert '' into the final string).

This indicates that your example code should use '''${FOO}.

@purcell
Copy link
Collaborator

purcell commented Oct 12, 2018

(Not saying that that case would be handled properly either, but still...)

@reactormonk
Copy link
Author

The tutorial also says:

If you need to insert a "${" into a string without interpolation then use "''${" (same as Nix)

''
    for file in *; do
      echo "Found ''${file}"
    done
''

@purcell
Copy link
Collaborator

purcell commented Oct 13, 2018

Cool, okay. I think this requires some work on the syntax fontification functions.

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

2 participants