highlight.js icon indicating copy to clipboard operation
highlight.js copied to clipboard

fix(ruby) don't highlight interpolation in single quoted strings

Open verhovsky opened this issue 1 year ago • 4 comments

Fixes #3676

Changes

Not all Ruby strings can contain (contains:) string substitutions (SUBST).

verhovsky avatar Nov 28 '24 19:11 verhovsky

Build Size Report

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

3 files changed

Total change +91 B

View Changes
file base pr diff
es/languages/ruby.min.js 1.84 KB 1.88 KB +46 B
highlight.min.js 8.22 KB 8.22 KB -1 B
languages/ruby.min.js 1.84 KB 1.89 KB +46 B

github-actions[bot] avatar Nov 28 '24 19:11 github-actions[bot]

Build Size Report

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

4 files changed

Total change +92 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/ruby.min.js 1.84 KB 1.88 KB +45 B
languages/ruby.min.js 1.84 KB 1.89 KB +45 B

github-actions[bot] avatar Nov 29 '24 15:11 github-actions[bot]

Build Size Report

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

5 files changed

Total change +486 B

View Changes
file base pr diff
es/core.min.js 8.18 KB 8.22 KB +43 B
es/highlight.min.js 8.18 KB 8.22 KB +43 B
es/languages/ruby.min.js 1.84 KB 2.02 KB +179 B
highlight.min.js 8.22 KB 8.26 KB +43 B
languages/ruby.min.js 1.84 KB 2.02 KB +178 B

github-actions[bot] avatar Nov 29 '24 16:11 github-actions[bot]

I jumped in here on top of your work to organize things a bit nicer and try to DRY it up just a little... any additional thoughts? I left some work for the future, but I think it's broken out a lot clearer now.

joshgoebel avatar Nov 29 '24 16:11 joshgoebel