Skip to content

refactor(prism): kotlin - #18078

Open
alperozturk96 wants to merge 3 commits into
masterfrom
refactor/prism-kotlin
Open

alperozturk96 wants to merge 3 commits into
masterfrom
refactor/prism-kotlin

Conversation

@alperozturk96

@alperozturk96 alperozturk96 commented Nov 18, 2026 •

Copy link
Copy Markdown
Collaborator

Changes

  • Converts to Kotlin
  • Uses one file for prism instead holding public static Prism4j.Grammar create for each language

🤖 AI (if applicable)

  • The content of this PR was partly or fully generated using AI (N/A)

Signed-off-by: alperozturk96 <alper_ozturk@proton.me>
Signed-off-by: alperozturk96 <alper_ozturk@proton.me>
@alperozturk96 alperozturk96 added 2. developing ♻️ refactor Refactor code (not a bug fix, not a feature just refactoring) AI assisted labels Nov 18, 2026
Signed-off-by: alperozturk96 <alper_ozturk@proton.me>
@codecov

codecov Bot commented Nov 18, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 2.80528% with 1178 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
.../noties/prism4j/languages/MarkwonGrammarLocator.kt 2.80% 1178 Missing ⚠️

📢 Thoughts on this report? Let us know!

@github-actions

Copy link
Copy Markdown

SpotBugs

CategoryBaseNew
Bad practice2424
Correctness4646
Dodgy code118118
Experimental11
Malicious code vulnerability11
Multithreaded correctness1313
Performance2525
Security1515
Total243243

@github-actions

Copy link
Copy Markdown

📱 QA build

Download app-qa-debug.apk
QR code Open the QR code for this download
Commit 4f2d3e3
Version 18078
Available until 7 days after this build

The QA build installs alongside a released Nextcloud app, so you can keep
using your existing install while testing.

Downloading the file requires a GitHub account, so open this link on the
device you want to test on, or transfer the APK to it.

"inside",
token(
"string",
pattern(compile("""(#\s*include\s*)(?:<.+?>|(["'])(?:\\?.)+?\2)"""), true)
token(
"template-string",
pattern(
compile("""`(?:\\[\s\S]|\$\{[^}]+\}|[^\\`])*`"""),
token(
"string",
pattern(
compile("""(["'])(\\(?:\((?:[^()]|\([^)]+\))+\)|\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1"""),

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

2. developing AI assisted ♻️ refactor Refactor code (not a bug fix, not a feature just refactoring)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants