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

Erlang/OTP 27 enhancements

Open nixxquality opened this issue 1 year ago • 4 comments

Changes

Erlang/OTP version 27 carried a bunch of syntax enhancements. They are summarized over on their blog: https://www.erlang.org/blog/highlights-otp-27/ I've split up each feature into its own commit so far.

These are:

  • Triple-quoted strings
  • doc attribute
  • Sigil type
  • maybe statement

Checklist

  • [x] Added markup tests
  • [ ] Updated the changelog at CHANGES.md

Please let me know how it looks.

nixxquality avatar Jun 07 '24 14:06 nixxquality

Build Size Report

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

5 files changed

Total change +446 B

View Changes
file base pr diff
es/core.min.js 8.2 KB 8.2 KB +1 B
es/highlight.min.js 8.2 KB 8.2 KB +1 B
es/languages/erlang.min.js 1.07 KB 1.29 KB +222 B
highlight.min.js 8.23 KB 8.23 KB +1 B
languages/erlang.min.js 1.08 KB 1.3 KB +221 B

github-actions[bot] avatar Jun 07 '24 14:06 github-actions[bot]

Build Size Report

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

5 files changed

Total change +477 B

View Changes
file base pr diff
es/core.min.js 8.2 KB 8.2 KB +3 B
es/highlight.min.js 8.2 KB 8.2 KB +3 B
es/languages/erlang.min.js 1.07 KB 1.3 KB +234 B
highlight.min.js 8.23 KB 8.23 KB +3 B
languages/erlang.min.js 1.08 KB 1.31 KB +234 B

github-actions[bot] avatar Jun 12 '24 07:06 github-actions[bot]

Build Size Report

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

5 files changed

Total change +455 B

View Changes
file base pr diff
es/core.min.js 8.2 KB 8.2 KB +4 B
es/highlight.min.js 8.2 KB 8.2 KB +4 B
es/languages/erlang.min.js 1.07 KB 1.29 KB +222 B
highlight.min.js 8.23 KB 8.23 KB +4 B
languages/erlang.min.js 1.08 KB 1.3 KB +221 B

github-actions[bot] avatar Jun 12 '24 07:06 github-actions[bot]

Build Size Report

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

5 files changed

Total change +429 B

View Changes
file base pr diff
es/core.min.js 8.2 KB 8.2 KB +1 B
es/highlight.min.js 8.2 KB 8.2 KB +1 B
es/languages/erlang.min.js 1.07 KB 1.28 KB +213 B
highlight.min.js 8.23 KB 8.23 KB +2 B
languages/erlang.min.js 1.08 KB 1.29 KB +212 B

github-actions[bot] avatar Jun 12 '24 08:06 github-actions[bot]

Build Size Report

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

5 files changed

Total change +324 B

View Changes
file base pr diff
es/core.min.js 8.2 KB 8.2 KB +2 B
es/highlight.min.js 8.2 KB 8.2 KB +2 B
es/languages/erlang.min.js 1.07 KB 1.23 KB +159 B
highlight.min.js 8.23 KB 8.23 KB +2 B
languages/erlang.min.js 1.08 KB 1.24 KB +159 B

github-actions[bot] avatar Jul 09 '24 17:07 github-actions[bot]

Taking a look at the failing tests now. I was sure I ran a check before I pushed...

nixxquality avatar Jul 11 '24 07:07 nixxquality

Build Size Report

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

5 files changed

Total change +304 B

View Changes
file base pr diff
es/core.min.js 8.2 KB 8.2 KB -2 B
es/highlight.min.js 8.2 KB 8.2 KB -2 B
es/languages/erlang.min.js 1.07 KB 1.23 KB +156 B
highlight.min.js 8.23 KB 8.23 KB -3 B
languages/erlang.min.js 1.08 KB 1.23 KB +155 B

github-actions[bot] avatar Jul 11 '24 07:07 github-actions[bot]

Silly mistake, after I made sure everything worked I went ahead and sorted the variants like the documentation

Immediately after follows the sigil content; a character sequence between content delimiters. The allowed delimiters are these start-end delimiter pairs: () [] {} <>, or these characters that are both start and end delimiters: / | ' " ` #. Triple-quote string delimiters may also be used.

But placing the triple-quote matcher at the end made it prioritise the regular "" matcher above it.

nixxquality avatar Jul 11 '24 07:07 nixxquality

Looking good. Rebase and add changelog?

joshgoebel avatar Jul 12 '24 01:07 joshgoebel

Build Size Report

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

5 files changed

Total change +305 B

View Changes
file base pr diff
es/core.min.js 8.2 KB 8.2 KB -2 B
es/highlight.min.js 8.2 KB 8.2 KB -2 B
es/languages/erlang.min.js 1.07 KB 1.23 KB +156 B
highlight.min.js 8.23 KB 8.23 KB -2 B
languages/erlang.min.js 1.08 KB 1.23 KB +155 B

github-actions[bot] avatar Jul 12 '24 12:07 github-actions[bot]

I hope that looks good.

nixxquality avatar Jul 12 '24 12:07 nixxquality

Build Size Report

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

5 files changed

Total change +308 B

View Changes
file base pr diff
es/core.min.js 8.2 KB 8.2 KB -1 B
es/highlight.min.js 8.2 KB 8.2 KB -1 B
es/languages/erlang.min.js 1.07 KB 1.23 KB +156 B
highlight.min.js 8.23 KB 8.23 KB -1 B
languages/erlang.min.js 1.08 KB 1.23 KB +155 B

github-actions[bot] avatar Jul 12 '24 12:07 github-actions[bot]

Build Size Report

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

5 files changed

Total change +308 B

View Changes
file base pr diff
es/core.min.js 8.2 KB 8.2 KB -1 B
es/highlight.min.js 8.2 KB 8.2 KB -1 B
es/languages/erlang.min.js 1.07 KB 1.23 KB +156 B
highlight.min.js 8.23 KB 8.23 KB -1 B
languages/erlang.min.js 1.08 KB 1.23 KB +155 B

github-actions[bot] avatar Jul 13 '24 06:07 github-actions[bot]