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

Fix and enhance mulitple quoted string issues #173

Open
wants to merge 5 commits into
base: master
from

Conversation

@msftrncs
Copy link
Contributor

@msftrncs msftrncs commented May 9, 2019

  • Fixes #143, moving the double double-quote escape ("") in to doubleQuotedString from doubleQuotedStringEscapes, and removing the double single-quote escape ('') from the pattern for single quoted here-strings.

  • Fixes #167 (entirely), permitting white space to follow the opening token for here-strings, adding punctuation scopes to the start and end tokens (punctuation.definition.string…), and preparing some of the string regex's for the following change.

  • Closes #141, applying the PowerShell supported curly quotes \x{2018}-\x{201B} (single quotes) and \x{201C}-\x{201E} (double quotes), everywhere except for an occurrence in hashtable:

    <key>match</key>
    <string>\b((?:\'|\")?)(\w+)((?:\'|\")?)(?:\s+)?(=)(?:\s+)?</string>
    <key>name</key>
    <string>meta.hashtable.assignment.powershell</string>

    There are issues in this area, that nearly make the quotes in this section unusable.

  • Tests added for single quoted here-string, and the escaping issue of #143. There are currently no tests I found for punctuation.definition.string… for any kind of strings.

msftrncs added 5 commits May 9, 2019
moves double-quote double-quote escape from #doubleQuotedStringEscapes
to #doubleQuotedString.  Removes the single-quote single-quote escape
from single-quote here-string pattern.
permits whitespace to follow here-string start token.
indirectly applies #167 parts 2 and 3
adds punctuation scope to start/end of here-string
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
1 participant
You can’t perform that action at this time.