highlightjs / highlight.js

JavaScript syntax highlighter with language auto-detection and zero dependencies.
https://highlightjs.org/
BSD 3-Clause "New" or "Revised" License
23.6k stars 3.58k forks source link

(chore) update `default.txt` for swift #3956

Closed bradleymackey closed 9 months ago

bradleymackey commented 9 months ago

Changes

Update the default.txt detect snippet for Swift. This now better showcases more "modern" features including more access control levels, implicit returns and generics. It's still a relatively simple and compact example.

This snippet is used in places like the highlight.js website.

Checklist

github-actions[bot] commented 9 months ago

Build Size Report

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

3 files changed

Total change -3 B

View Changes | file | base | pr | diff | | --- | --- | --- | --- | | es/core.min.js | 8.17 KB | 8.17 KB | -1 B | | es/highlight.min.js | 8.17 KB | 8.17 KB | -1 B | | highlight.min.js | 8.21 KB | 8.21 KB | -1 B |
github-actions[bot] commented 9 months ago

Build Size Report

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

3 files changed

Total change -4 B

View Changes | file | base | pr | diff | | --- | --- | --- | --- | | es/core.min.js | 8.17 KB | 8.17 KB | -1 B | | es/highlight.min.js | 8.17 KB | 8.17 KB | -1 B | | highlight.min.js | 8.21 KB | 8.21 KB | -2 B |
github-actions[bot] commented 9 months ago

Build Size Report

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

3 files changed

Total change -5 B

View Changes | file | base | pr | diff | | --- | --- | --- | --- | | es/core.min.js | 8.18 KB | 8.17 KB | -2 B | | es/highlight.min.js | 8.18 KB | 8.17 KB | -2 B | | highlight.min.js | 8.21 KB | 8.21 KB | -1 B |