Title: Quoted strings/here-strings issues · Issue #167 · PowerShell/EditorSyntax · GitHub
Open Graph Title: Quoted strings/here-strings issues · Issue #167 · PowerShell/EditorSyntax
X Title: Quoted strings/here-strings issues · Issue #167 · PowerShell/EditorSyntax
Description: Adding to issue #143, Both double-quote and single-quote here-strings fail to tolerate trailing space on the opening line. Users might only notice the @ not highlighted, because regular quoted string still fires, but if any further quote...
Open Graph Description: Adding to issue #143, Both double-quote and single-quote here-strings fail to tolerate trailing space on the opening line. Users might only notice the @ not highlighted, because regular quoted stri...
X Description: Adding to issue #143, Both double-quote and single-quote here-strings fail to tolerate trailing space on the opening line. Users might only notice the @ not highlighted, because regular quoted stri...
Opengraph URL: https://github.com/PowerShell/EditorSyntax/issues/167
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Quoted strings/here-strings issues","articleBody":"Adding to issue #143, \r\n\r\n1. Both double-quote and single-quote here-strings fail to tolerate trailing space on the opening line. Users might only notice the `@` not highlighted, because regular quoted string still fires, but if any further quotes are used in the here-string, they will cause highlighting issues.\r\n2. Single-quoted strings fail to highlight, if immediately following a backtick'd single-quote. Example:\r\n ```PowerShell\r\n echo `''hello there'\r\n ```\r\n This statement outputs `'hello there`.\r\n (a) This statement highlights incorrectly because the begin regex incorrectly requires a match of a single-quote to which is not preceded by single-quote. This is flawed because the previous single-quote could be backticked. In reality the check for a prior single-quote is unneeded.\r\n (b) Likewise the end regex requires matching a single quote not followed by another single quote, but this requirement can be eliminated by using the TextMate `applyEndPatternLast` property, setting it to `true`.\r\n3. (a) Double quoted strings do not exhibit a similar behavior because the begin regex already checked for a backtick before the double-quote that cannot be before the real double-quote. But that logic is flawed. The backtick may have been backtick'd. However, it works, because, the need to check for a preceding double-quote is unnecessary.\r\n (b) The end match for double-quoted strings can benefit from the same property as the single-quoted string.\r\n4. Both double-quote and single-quote here-strings fail to scope the begin and end tokens as punctuation.\r\n\r\nNOTE: these are relatively minor issues overall.","author":{"url":"https://github.com/msftrncs","@type":"Person","name":"msftrncs"},"datePublished":"2019-04-28T04:49:44Z","url":"https://github.com/PowerShell/EditorSyntax/issues/167"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:5bc9d1ef-93ec-9ed9-c8c0-ebfb04660c58 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 8C8C:72619:8A4F23:C364B5:6AFE1B70 |
| html-safe-nonce | a5a2410fa2d5a269e36624a275727f6bbae2b07b2b2a3125043fba5bc1281db8 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4QzhDOjcyNjE5OjhBNEYyMzpDMzY0QjU6NkFGRTFCNzAiLCJ2aXNpdG9yX2lkIjoiOTY0MTkwMTg5NDY1MjQ2NTc2IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | b91038fbe25e822c925dba69440a66c8c7cfc54ac963f1f8cbda098b65de5598 |
| hovercard-subject-tag | issue:438013495 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/PowerShell/EditorSyntax/167/issue_layout |
| twitter:image | https://opengraph.githubassets.com/3c91dfcb1b2d02675f5f5d8af3b1d880313c327e8a4305023bec642bd33fa3c4/PowerShell/EditorSyntax/issues/167 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/3c91dfcb1b2d02675f5f5d8af3b1d880313c327e8a4305023bec642bd33fa3c4/PowerShell/EditorSyntax/issues/167 |
| og:image:alt | Adding to issue #143, Both double-quote and single-quote here-strings fail to tolerate trailing space on the opening line. Users might only notice the @ not highlighted, because regular quoted stri... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | msftrncs |
| hostname | github.com |
| expected-hostname | github.com |
| None | d0525ab1464526bf4532a5551aa348cf100dff75ef808a96fc67a08b1d946aa9 |
| turbo-cache-control | no-preview |
| go-import | github.com/PowerShell/EditorSyntax git https://github.com/PowerShell/EditorSyntax.git |
| octolytics-dimension-user_id | 11524380 |
| octolytics-dimension-user_login | PowerShell |
| octolytics-dimension-repository_id | 59601299 |
| octolytics-dimension-repository_nwo | PowerShell/EditorSyntax |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 59601299 |
| octolytics-dimension-repository_network_root_nwo | PowerShell/EditorSyntax |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | fef3993a71fa20f7be8e167132fbf9619bc66e12 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width