Skip to content

Fix space escape in --cl-options="-s /path\ with\ spaces/kernel.cl"#712

Open
wenju-he wants to merge 1 commit into
intel:mainfrom
wenju-he:fix-space-escape
Open

Fix space escape in --cl-options="-s /path\ with\ spaces/kernel.cl"#712
wenju-he wants to merge 1 commit into
intel:mainfrom
wenju-he:fix-space-escape

Conversation

@wenju-he
Copy link
Copy Markdown
Contributor

@wenju-he wenju-he commented May 30, 2026

Fixes test Manual/testsuite/s-option.cl in #715.

Bug: delimiter branch ignores is_escaped, so \ (backslash-space) breaks the token instead of inserting a literal space.

Two fixes:

  • escape char: don't add to tok; set is_escaped=true, or if already escaped emit literal \ and clear flag.
  • Delimiter: check is_escaped (not just in_quote) before breaking token; clear is_escaped after consuming.

Assisted-by: Claude

Bug: delimiter branch ignores is_escaped, so \  (backslash-space) breaks the
token instead of inserting a literal space.

Two fixes:
- escape char: don't add to tok; set is_escaped=true, or if already
  escaped emit literal \ and clear flag.
- Delimiter: check is_escaped (not just in_quote) before breaking token;
  clear is_escaped after consuming.

Assisted-by: Claude
@wenju-he wenju-he enabled auto-merge (squash) May 30, 2026 07:30
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

Successfully merging this pull request may close these issues.

1 participant