Skip to content

Add raw string literal highlighting for C# 11. #3906

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

Merged
merged 4 commits into from
Mar 5, 2024

Conversation

TaraLei
Copy link
Contributor

@TaraLei TaraLei commented Oct 30, 2023

Fixes issue #3868.

This fails the tests as the Vala default.txt is recognized now as C#. However, Vala is very close in syntax to C#, and the default.txt also seems to be valid C# so not sure what to do about this.

Changes

Added raw string regex to the csharp definition.

Checklist

  • Added markup tests
  • Updated the changelog at CHANGES.md

Fixes issue highlightjs#3868.

This fails the tests as the Vala default.txt is recognised now
as C#. However, Vala is very close in syntax to C#, and the default.txt
also seems to be valid C# so not sure what to do about this.
Copy link

github-actions bot commented Mar 5, 2024

Build Size Report

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

2 files changed

Total change +63 B

View Changes
file base pr diff
es/languages/csharp.min.js 1.65 KB 1.68 KB +31 B
languages/csharp.min.js 1.66 KB 1.69 KB +32 B

Copy link

github-actions bot commented Mar 5, 2024

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.17 KB -2 B
es/highlight.min.js 8.18 KB 8.17 KB -2 B
es/languages/csharp.min.js 1.65 KB 1.68 KB +30 B
highlight.min.js 8.21 KB 8.21 KB -3 B
languages/csharp.min.js 1.66 KB 1.69 KB +32 B

We are deemphasizing auto-detect - it was never great. Someone who
cares about auto-detect can run the tool, but we will no longer
fail the test suite based on any auto-detect issues.
Copy link

github-actions bot commented Mar 5, 2024

Build Size Report

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

5 files changed

Total change +58 B

View Changes
file base pr diff
es/core.min.js 8.18 KB 8.17 KB -1 B
es/highlight.min.js 8.18 KB 8.17 KB -1 B
es/languages/csharp.min.js 1.65 KB 1.68 KB +30 B
highlight.min.js 8.21 KB 8.21 KB -2 B
languages/csharp.min.js 1.66 KB 1.69 KB +32 B

@joshgoebel joshgoebel merged commit 105a11a into highlightjs:main Mar 5, 2024
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.

2 participants