Skip to content

Conversation

@alexwarren
Copy link
Contributor

Fix two Ace editor highlighting issues:

  1. @ commands after JavaScript blocks: Add a negative lookahead rule
    to the JS embed exit rules that transitions back to the start state
    when a line doesn't begin with indentation (tab or 4 spaces). This
    ensures @ commands following JS blocks get proper highlighting.

  2. Multiple Handlebars expressions on one line: Change the Handlebars
    regex from greedy (.) to non-greedy (.?) so that each {{...}}
    expression is matched individually instead of matching everything
    between the first {{ and last }}.

https://claude.ai/code/session_01G218M1zXP9dDvVQ2U8n37d

Fix two Ace editor highlighting issues:

1. @ commands after JavaScript blocks: Add a negative lookahead rule
   to the JS embed exit rules that transitions back to the start state
   when a line doesn't begin with indentation (tab or 4 spaces). This
   ensures @ commands following JS blocks get proper highlighting.

2. Multiple Handlebars expressions on one line: Change the Handlebars
   regex from greedy (.*) to non-greedy (.*?) so that each {{...}}
   expression is matched individually instead of matching everything
   between the first {{ and last }}.

https://claude.ai/code/session_01G218M1zXP9dDvVQ2U8n37d
@alexwarren alexwarren merged commit 727c8df into main Jan 31, 2026
5 checks passed
@alexwarren alexwarren deleted the claude/fix-issue-170-irPCK branch January 31, 2026 09:58
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.

3 participants