~/talk

A parser based syntax highlighter

Talkat RubyKaigi 2018 · 2018-05-31..06-02· [documentation, javascript]
links:none on file
slides:none on file

A robust Ruby syntax highlighter called Iro gem and Iro.vim parses code with uses Ripper (the Ruby stdlib) instead of regexes so it correctly colors bizarre but valid constructs like `????::?:` and `def end(def:def def;end)end`, and recovers from broken/unfinished files. It distinguishes local variables from method calls, handles complex here-doc and nested interpolation cases, targets multiple editors via a shared backend, and reports acceptable performance on files up to ~3,000 lines.

AI-written summary · about

  1. 0:00Introduction and background
  2. 2:09Existing highlighters and issues
  3. 8:19Problems with regex-based highlight
  4. 9:28Introducing Ripper-based highlighter
  5. 11:41Advantages of Ripper approach
  6. 15:53How Ripper works in practice
  7. 22:39Implementation details of the highlighter
  8. 24:50Future plans and goals
  9. 27:53Handling broken Ruby code
  10. 29:01Summary and call to action
~/search
type to search 8,222 conferences, 162,397 speakers and 219,688 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
← →
on a talk: 5 seconds back / forward
0–9
on a talk: jump to 0%–90% of the recording
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.