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

fix(php) improves attribute highlighting #4119

Merged
merged 3 commits into from
Oct 31, 2024

Conversation

joshgoebel
Copy link
Member

@joshgoebel joshgoebel commented Sep 22, 2024

Fixes #4115.

Changes

  • Support uppercase names inside PHP attribute blocks

Checklist

  • Added markup tests, or they don't apply here because...
  • Updated the changelog at CHANGES.md

Copy link

Build Size Report

Changes to minified artifacts in /build, after gzip compression.

2 files changed

Total change +36 B

View Changes
file base pr diff
es/languages/php.min.js 2.62 KB 2.64 KB +18 B
languages/php.min.js 2.63 KB 2.64 KB +18 B

Copy link

Build Size Report

Changes to minified artifacts in /build, after gzip compression.

5 files changed

Total change +55 B

View Changes
file base pr diff
es/core.min.js 8.18 KB 8.18 KB -3 B
es/highlight.min.js 8.18 KB 8.18 KB -3 B
es/languages/php.min.js 2.62 KB 2.65 KB +31 B
highlight.min.js 8.22 KB 8.22 KB -1 B
languages/php.min.js 2.63 KB 2.66 KB +31 B

@joshgoebel
Copy link
Member Author

Just needs a changes entry and rebase.

@wkania
Copy link
Contributor

wkania commented Oct 6, 2024

And maybe change one of the attributes to uppercase inside of test. #[ASSERT(value: 1234)]

@joshgoebel joshgoebel force-pushed the hljs-4115-improve-attribute-highlighting branch from afcfa29 to eb4b3d6 Compare October 31, 2024 21:27
Copy link

Build Size Report

Changes to minified artifacts in /build, after gzip compression.

5 files changed

Total change +56 B

View Changes
file base pr diff
es/core.min.js 8.18 KB 8.18 KB -2 B
es/highlight.min.js 8.18 KB 8.18 KB -2 B
es/languages/php.min.js 2.62 KB 2.65 KB +31 B
highlight.min.js 8.22 KB 8.22 KB -2 B
languages/php.min.js 2.63 KB 2.66 KB +31 B

Copy link

Build Size Report

Changes to minified artifacts in /build, after gzip compression.

4 files changed

Total change +60 B

View Changes
file base pr diff
es/core.min.js 8.18 KB 8.18 KB -1 B
es/highlight.min.js 8.18 KB 8.18 KB -1 B
es/languages/php.min.js 2.62 KB 2.65 KB +31 B
languages/php.min.js 2.63 KB 2.66 KB +31 B

@joshgoebel joshgoebel merged commit 48104f9 into main Oct 31, 2024
21 checks passed
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.

(PHP) Attributes with \ highlighted as comment instead of meta
3 participants