Skip to content

feat: add Koy syntax highlighting with StreamLanguage - #34

Merged
simonNozaki merged 3 commits into
epic/koy-playgroundfrom
feat/playground-syntax-highlight
Apr 4, 2026
Merged

feat: add Koy syntax highlighting with StreamLanguage#34
simonNozaki merged 3 commits into
epic/koy-playgroundfrom
feat/playground-syntax-highlight

Conversation

@simonNozaki

Copy link
Copy Markdown
Owner

Summary

  • @codemirror/languageStreamLanguage を使って Koy 言語のシンタックスハイライトを実装
  • src/koy-language.ts にトークナイザーとハイライトスタイルを定義
    • キーワード(val fn if など): #c586c0(紫)
    • リテラル(true false nil): #569cd6(青)
    • ビルトイン(println): #dcdcaa(黄)
    • 文字列: #ce9178(橙)
    • 数値: #b5cea8(緑)
    • コメント(//): #6a9955(グレー、イタリック)
    • 演算子: #d4d4d4(白)
  • ADR-0001 に StreamLanguage 採用の意思決定と Lezer パーサーを不採用とした背景を追記

Test plan

  • エディタ上でキーワード・リテラル・文字列・数値・コメントに色がつくことを確認

🤖 Generated with Claude Code

@coderabbitai

coderabbitai Bot commented Apr 3, 2026

Copy link
Copy Markdown

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: e3d36f6a-f0a4-4ef5-a705-42c5500a702b

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch feat/playground-syntax-highlight

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@github-actions

github-actions Bot commented Apr 3, 2026

Copy link
Copy Markdown

Test Coverage Report

Overall Project 91.38% 🍏

There is no coverage information present for the Files changed

@simonNozaki
simonNozaki merged commit 6766c40 into epic/koy-playground Apr 4, 2026
4 checks passed
@simonNozaki
simonNozaki deleted the feat/playground-syntax-highlight branch April 4, 2026 03:17
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.

1 participant