danderson,
@danderson@hachyderm.io avatar

OKAY, phase 1 of stupid project achieved. Now on to sinister phase two.

danderson,
@danderson@hachyderm.io avatar

"tree-sitter makes it really easy to create new major modes, you no longer have to write a horrible goose regex parser"

Well let's find out, shall we...

creachadair,
@creachadair@mastodon.social avatar

@danderson I mean that is not what I'd call a very high bar, but it is broadly true that treesitter is reasonable to use.

danderson,
@danderson@hachyderm.io avatar

@creachadair From the docs I'm seeing, most of the major mode involves cross-referencing the treesitter node types to the font-locking symbols, and defining indentation rules. This all seems very doable.

  • All
  • Subscribed
  • Moderated
  • Favorites
  • random
  • ngwrru68w68
  • rosin
  • GTA5RPClips
  • osvaldo12
  • love
  • Youngstown
  • slotface
  • khanakhh
  • everett
  • kavyap
  • mdbf
  • DreamBathrooms
  • thenastyranch
  • magazineikmin
  • megavids
  • InstantRegret
  • normalnudes
  • tacticalgear
  • cubers
  • ethstaker
  • modclub
  • cisconetworking
  • Durango
  • anitta
  • Leos
  • tester
  • provamag3
  • JUstTest
  • All magazines