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

for/each: use word delimiter in pattern #122

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

seletskiy
Copy link

Without word delimiter in pattern regexp form will be incorrectly
attributed to the pugScriptLoopRegion.

Without word delimiter in pattern regexp `form` will be incorrectly
attributed to the `pugScriptLoopRegion`.
```pug
span.aui-lozenge.aui-lozenge-subtle(
  :class=`{
    "aui-lozenge-inprogress": pipeline.status == PipelineStatus.Running,
    "aui-lozenge-error":      pipeline.status == PipelineStatus.Failed
  }`
)
```

Entire string inside of `:class` should be highlighted as a JavaScript string.
Also, add special group to not highlight multiline string indentation, which is
useful when string highlighting is using non-default background color.
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