Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
なぜtree-sitter-rubyの日本語シンボルはシンタックスハイライトされないのか
Search
ItoJum
July 02, 2026
72
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
なぜtree-sitter-rubyの日本語シンボルはシンタックスハイライトされないのか
ItoJum
July 02, 2026
More Decks by ItoJum
See All by ItoJum
Ractorを試してみるぞ!+メタバースにおける地域.rbをやっているぜ
itojum
0
45
新卒一年目のコミュニティ駆動ライフ_新卒N年目のLT交流会.pdf
itojum
0
110
VRChat.rb_4_Ractorで始める並列処理.pdf
itojum
0
16
Rubyistのカテゴリを聞きに来ました_roppongirb.pdf
itojum
0
11
VRChat.rb_3_UzumibiでRubyのDiscord_BotをCloudflareにデプロイしたい.pdf
itojum
0
19
VRChat.rb_2_Rubyオブジェクトの世界.pdf
itojum
0
38
RubyKaigi_2026参加レポート_VRChat.rb.pdf
itojum
0
12
メタバースで地域.rbやってみた!
itojum
2
380
VRChat.rb #0 - RubyKaigi 2026 スケジュールを見る会
itojum
0
22
Featured
See All Featured
Efficient Content Optimization with Google Search Console & Apps Script
katarinadahlin
PRO
1
730
Test your architecture with Archunit
thirion
1
2.3k
Testing 201, or: Great Expectations
jmmastey
46
8.2k
Odyssey Design
rkendrick25
PRO
2
730
Bash Introduction
62gerente
615
220k
Easily Structure & Communicate Ideas using Wireframe
afnizarnur
194
17k
Tell your own story through comics
letsgokoyo
1
1k
10 Git Anti Patterns You Should be Aware of
lemiorhan
PRO
659
62k
Ethics towards AI in product and experience design
skipperchong
2
330
Bridging the Design Gap: How Collaborative Modelling removes blockers to flow between stakeholders and teams @FastFlow conf
baasie
0
620
Building a A Zero-Code AI SEO Workflow
portentint
PRO
0
630
Future Trends and Review - Lecture 12 - Web Technologies (1019888BNR)
signer
PRO
0
3.6k
Transcript
なぜtree-sitter-rubyの日本語シ ンボルはシンタックスハイライトさ れないのか いとじゅん(@itojum1230)
自己紹介 いとじゅん(@itojum1230) SmartHRでプロダクトエンジニアやってます。試用 期間が終わりました 技術コミュニティとメタプログラミングに 興味があります VRChat.rbのオーガナイザーをやってます 2
tree-sitter • 構文解析ライブラリ • 使われているところ ◦ GitHub ◦ Zed ◦
コーディングエージェント(Claude Code, Codex等) tree-sitter-rubyは、tree-sitterのRuby文法ライブラリ tree-sitterのロゴ https://github.com/tree-sitter
なにがおこったの? ハイライトされんなー
なにがおこったの? ??????????
なにがおこったの? • いくつかの文字がハイライトされない ◦ 刀, 儀, 一, 最などなど • Playgroundを見るとエラーになっている
原因(たぶん) 文字 codepoint 下位バイト 一致する禁止文字 言 U+5200 0x00 \0 儀
Ux5100 0x00 \0 一 U+4E00 0x00 \0 最 U+6700 0x00 \0 • 禁止文字の判定メソッドがUnicodeをchar(8bit)に切り詰めて いた • マルチバイト文字の下位バイトが Rubyのシンボルの禁止文 字に一致したとき 、エラーを出していた
Issue🚀
おわりに • 文字コードなどの知識も大事ですねー • 普段使っているOSSのバグを見つけると興奮しますね ◦ OSS貢献やっていき • tree-sitter-rubyはメンテがほぼ止まっているっぽい ◦
メンテされてないOSSってどうすればいいんでしょうね?