Skip to content

Conversation

@adamchalmers
Copy link
Collaborator

Closes #6

It's not great, but it's better than nothing.

Screenshot 2025-05-15 at 10 48 37 AM

@vercel
Copy link

vercel bot commented May 15, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
kcl-book ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 15, 2025 3:49pm

hljs.registerLanguage("kcl", function () {
"use strict";
return function (e) {
const KEYWORDS = "if impl let if else for while return break continue fn let mut as loop nil and or not var const import export type interface new self from record struct object"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The keyword if appears twice in the KEYWORDS constant. This duplication should be removed to maintain a clean and accurate list of language keywords.

Suggested change
const KEYWORDS = "if impl let if else for while return break continue fn let mut as loop nil and or not var const import export type interface new self from record struct object"
const KEYWORDS = "if impl let else for while return break continue fn mut as loop nil and or not var const import export type interface new self from record struct object"

Spotted by Diamond

Is this helpful? React 👍 or 👎 to let us know.

@adamchalmers adamchalmers merged commit 76aad19 into main May 15, 2025
8 checks passed
@adamchalmers adamchalmers deleted the achalmers/syntax-highlighting branch May 15, 2025 15:51
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.

KCL syntax highlighting

2 participants