Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
なぜtree-sitter-rubyの日本語シンボルはシンタックスハイライトされないのか
Search
ItoJum
July 02, 2026
96
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
VRChat.rb_11_メタプログラミングRubyのご紹介.pdf
itojum
0
13
従業員データ基盤でのパターンマッチをご紹介_Roppongi.rb スポンサーLT
itojum
0
65
DXRuby互換のPicoRuby.wasmライブラリを作っている
itojum
1
47
RubyKaigi_2026_follow_up_SmartHRスポンサーLT
itojum
0
22
サマーインターンシップのメン ターをやって得た学び5選_あつまれ!若⼿エンジニアのLT&ゆるっと交流会
itojum
0
270
SmartHRを支える従業員データ基盤とそのインフラ_Innovative Crosstalk Jamboree Geeks '26
itojum
0
400
VRChat.rbの野望.pdf
itojum
0
14
Ractorを試してみるぞ!+メタバースにおける地域.rbをやっているぜ
itojum
0
56
新卒一年目のコミュニティ駆動ライフ_新卒N年目のLT交流会.pdf
itojum
0
130
Featured
See All Featured
It's Worth the Effort
3n
188
29k
How To Speak Unicorn (iThemes Webinar)
marktimemedia
1
580
Hiding What from Whom? A Critical Review of the History of Programming languages for Music
tomoyanonymous
3
1.3k
Digital Ethics as a Driver of Design Innovation
axbom
PRO
1
430
Joys of Absence: A Defence of Solitary Play
codingconduct
1
530
How GitHub (no longer) Works
holman
316
150k
Product Roadmaps are Hard
iamctodd
55
13k
Accessibility Awareness
sabderemane
1
220
Taking LLMs out of the black box: A practical guide to human-in-the-loop distillation
inesmontani
PRO
3
2.4k
Sharpening the Axe: The Primacy of Toolmaking
bcantrill
46
3k
[RailsConf 2023 Opening Keynote] The Magic of Rails
eileencodes
31
10k
Future Trends and Review - Lecture 12 - Web Technologies (1019888BNR)
signer
PRO
0
3.8k
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ってどうすればいいんでしょうね?