-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
(CSS) hex alpha color #3360
Labels
enhancement
An enhancement or new feature
good first issue
Should be easier for first time contributors
help welcome
Could use help from community
language
Comments
Ah should probably be |
joshgoebel
added
enhancement
An enhancement or new feature
good first issue
Should be easier for first time contributors
help welcome
Could use help from community
language
labels
Oct 15, 2021
'#([0-9a-fA-F]{1,2}){3,4}' Matches:
|
Nice. If the security checker doesn't flag it because it can be resolved multiple ways... though the numbers might be low enough that it won't. |
It seems like |
I have come up with a less pretty pattern. #(([0-9a-fA-F]{3,4})|(([0-9a-fA-F]{2}){3,4}))\b |
Created a pull request #3362 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
enhancement
An enhancement or new feature
good first issue
Should be easier for first time contributors
help welcome
Could use help from community
language
highlight.js/src/languages/lib/css-shared.js
Line 10 in 7cb4e3d
Hello, thank you for your hard work. I noticed some issues with highlighting in css colors, specifically in those with alpha channel. According to MDN hex representation both short and long have optional alpha channel.
This breaks the highlighting giving the last symbols another color
The text was updated successfully, but these errors were encountered: