Login
You're viewing the code4lib.social public feed.
  • Dec 1, 2026, 9:21 AM

    @rygorous @nothings Typically there's only a few places in a branch-based PL lexer where \n needs to be explicitly handled: the main lexer switch and inside quoted strings and comments; those few places can update the start-of-line pointer or add to a newline table or whatever. I do use the separate SIMD newline indexer if I have a separate fast indexing pass for top-level declarations.

    💬 0🔄 0⭐ 0