~/talk

Ruby's Line Breaks

Talkat RubyKaigi 2025 · 2025-04-16..04-18· [ruby]
links:none on file
slides:none on file

Ruby’s line-break rule is if a line break can end a sentence it does, but lexer-driven exceptions exist. Lexer uses 13 flags and acts as a double automaton so parser and lexer interaction makes some breaks ignored (notably endless ranges and unnamed number after splat). A model that combines parser and lex-state automatons is built by expanding grammar and adding lex-state-updating rules; it reveals those surprising exceptions and lets the team fix grammar-driven behavior.

AI-written summary · about

  1. 0:00Introduction and welcome
  2. 1:03Ruby line breaks explained
  3. 3:52Key syntax concepts
  4. 7:17Automatons and parsers
  5. 11:17Lexer and lex state
  6. 15:57Challenges with lex state
  7. 20:17Modeling lex state
  8. 22:57Exceptions and edge cases
  9. 25:37Summary and future work
  10. 27:57Closing and acknowledgments
~/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.