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
Sponsored
·
Your Podcast. Everywhere. Effortlessly.
Share. Educate. Inspire. Entertain. You do you. We'll handle the rest.
→
ItoJum
July 09, 2026
14
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
なぜtree-sitter-rubyの日本語シンボルはハイライトされないのか ~敗北編~
ItoJum
July 09, 2026
More Decks by ItoJum
See All by ItoJum
なぜtree-sitter-rubyの日本語シンボルはシンタックスハイライトされないのか
itojum
0
67
Ractorを試してみるぞ!+メタバースにおける地域.rbをやっているぜ
itojum
0
43
新卒一年目のコミュニティ駆動ライフ_新卒N年目のLT交流会.pdf
itojum
0
96
VRChat.rb_4_Ractorで始める並列処理.pdf
itojum
0
11
Rubyistのカテゴリを聞きに来ました_roppongirb.pdf
itojum
0
7
VRChat.rb_3_UzumibiでRubyのDiscord_BotをCloudflareにデプロイしたい.pdf
itojum
0
19
VRChat.rb_2_Rubyオブジェクトの世界.pdf
itojum
0
37
RubyKaigi_2026参加レポート_VRChat.rb.pdf
itojum
0
11
メタバースで地域.rbやってみた!
itojum
2
380
Featured
See All Featured
Learning to Love Humans: Emotional Interface Design
aarron
275
41k
Faster Mobile Websites
deanohume
310
32k
Kristin Tynski - Automating Marketing Tasks With AI
techseoconnect
PRO
0
280
AI Search: Where Are We & What Can We Do About It?
aleyda
0
7.7k
Hiding What from Whom? A Critical Review of the History of Programming languages for Music
tomoyanonymous
2
880
Why Your Marketing Sucks and What You Can Do About It - Sophie Logan
marketingsoph
0
180
Exploring the relationship between traditional SERPs and Gen AI search
raygrieselhuber
PRO
2
4.1k
Unlocking the hidden potential of vector embeddings in international SEO
frankvandijk
0
860
[RailsConf 2023] Rails as a piece of cake
palkan
59
6.7k
Automating Front-end Workflow
addyosmani
1370
210k
Statistics for Hackers
jakevdp
799
230k
Unsuck your backbone
ammeep
672
58k
Transcript
なぜtree-sitter-rubyの日本語シ ンボルはハイライトされないのか ~敗北編~ いとじゅん(@itojum1230)
自己紹介 いとじゅん(@itojum1230) SmartHRでプロダクトエンジニアやってます。26新 卒です。 技術コミュニティとメタプログラミングに 興味があります VRChat.rbのオーガナイザーをやってます 2
tree-sitter • 構文解析ライブラリ • 使われているところ ◦ エディタ(Zed, Neovim, Emacs?) ◦
コーディングエージェント(Claude Code, Codex等) tree-sitter-rubyは、tree-sitterのRuby文法ライブラリ tree-sitterのロゴ https://github.com/tree-sitter 3
なにがおこったの? 4 • いくつかの文字がハイライトさ れない ◦ :你, :池, :罠, :遠などなど
• Playgroundを見るとエラーに なっている
原因(たぶん) 文字 codepoint 下位バイト 一致する禁止文字 你 U+5E60 0x60 ` 池
Ux6C60 0x60 ` 罠 U+7F60 0x60 ` 遠 U+9060 0x60 ` • 禁止文字の判定メソッドがUnicodeをchar(8bit)に切り詰めて いた • マルチバイト文字の下位バイトが Rubyのシンボルの禁止文 字に一致したとき 、エラーを出していた 5
ここからが本題 6
Issue🚀 7
よ~し PR出しちゃうぞ~ 8 私のVRChatの姿
なんだ...と... 9
経緯 10
経緯 11 https://x.com/Gaku07jp/status/2072639350094053834
経緯 12 https://x.com/Gaku07jp/status/2072639350094053834 社名が出たけど何事だろう? 社内で話題に上がる
経緯 13 社名が出たけど何事だろう? 社内で話題に上がる
経緯 14 社名が出たけど何事だろう? 社内で話題に上がる こういう事情で ~tree-sitter-rubyってのが ~
経緯 15 こういう事情で ~tree-sitter-rubyってのが ~
経緯 16 こういう事情で ~tree-sitter-rubyってのが ~ https://github.com/tree-sitter/tree-sitter-ruby/pull/293 🚀PR
OSS貢献は早い者勝ち!! 17
おわりに • OSS貢献は早い者勝ち!!(大事なことなので • 自分で実装・修正したいなら早くPRを出そう ◦ Issue→PRの手順が必要なOSSもあるので、 CONTRIBUTING.md を要確認 18