Skip to content

Fix string literal termination with even backslashes (Fixes #13)#14

Open
dfirr wants to merge 1 commit into
arcsector:masterfrom
dfirr:fix/13-string-literal-highlighting
Open

Fix string literal termination with even backslashes (Fixes #13)#14
dfirr wants to merge 1 commit into
arcsector:masterfrom
dfirr:fix/13-string-literal-highlighting

Conversation

@dfirr
Copy link
Copy Markdown

@dfirr dfirr commented Feb 11, 2026

Summary

This PR fixes string literal highlighting when a closing quote is preceded by backslashes.

Root Cause

The grammar used (?<!\\)" / (?<!\\)' for string termination, which only checks one preceding backslash.
That breaks termination handling when backslashes appear in sequence.

Changes

  • Updated string end patterns in syntaxes/splunk_search.tmLanguage:
    • string.quoted.double.splunk_search
    • string.quoted.single.splunk_search
    • meta.embedded.block.sql
  • Applied the same regex update to syntaxes/splunk_search.JSON-tmLanguage for consistency.

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