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 02, 2026
79
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
SmartHRを支える従業員データ基盤とそのインフラ_Innovative Crosstalk Jamboree Geeks '26
itojum
0
290
VRChat.rbの野望.pdf
itojum
0
9
Ractorを試してみるぞ!+メタバースにおける地域.rbをやっているぜ
itojum
0
48
新卒一年目のコミュニティ駆動ライフ_新卒N年目のLT交流会.pdf
itojum
0
110
VRChat.rb_4_Ractorで始める並列処理.pdf
itojum
0
16
Rubyistのカテゴリを聞きに来ました_roppongirb.pdf
itojum
0
14
VRChat.rb_3_UzumibiでRubyのDiscord_BotをCloudflareにデプロイしたい.pdf
itojum
0
20
VRChat.rb_2_Rubyオブジェクトの世界.pdf
itojum
0
40
RubyKaigi_2026参加レポート_VRChat.rb.pdf
itojum
0
14
Featured
See All Featured
Data-driven link building: lessons from a $708K investment (BrightonSEO talk)
szymonslowik
1
1.2k
sira's awesome portfolio website redesign presentation
elsirapls
0
320
Fantastic passwords and where to find them - at NoRuKo
philnash
52
3.8k
Hiding What from Whom? A Critical Review of the History of Programming languages for Music
tomoyanonymous
3
1.1k
It's Worth the Effort
3n
188
29k
Skip the Path - Find Your Career Trail
mkilby
1
180
ピンチをチャンスに:未来をつくるプロダクトロードマップ #pmconf2020
aki_iinuma
128
56k
State of Search Keynote: SEO is Dead Long Live SEO
ryanjones
0
240
The SEO identity crisis: Don't let AI make you average
varn
0
530
Evolution of real-time – Irina Nazarova, EuRuKo, 2024
irinanazarova
9
1.5k
How to Think Like a Performance Engineer
csswizardry
28
2.7k
GraphQLの誤解/rethinking-graphql
sonatard
75
12k
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ってどうすればいいんでしょうね?