SDF Chatter
  • Communities
  • Create Post
  • Create Community
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
☆ Yσɠƚԋσʂ ☆@lemmy.ml to Emacs@lemmy.mlEnglish · 1 year ago

Let's Write a Tree-Sitter Major Mode

www.masteringemacs.org

external-link
message-square
0
fedilink
  • cross-posted to:
  • hackernews@lemmy.smeargle.fans
  • hackernews@derp.foo
  • emacs@lemmy.ml
15
external-link

Let's Write a Tree-Sitter Major Mode

www.masteringemacs.org

☆ Yσɠƚԋσʂ ☆@lemmy.ml to Emacs@lemmy.mlEnglish · 1 year ago
message-square
0
fedilink
  • cross-posted to:
  • hackernews@lemmy.smeargle.fans
  • hackernews@derp.foo
  • emacs@lemmy.ml
Creating a standard programming major mode presents significant challenges, with the intricate tasks of establishing proper indentation and font highlighting being among the two hardest things to get right. It's painstaking work, and it'll quickly descend into a brawl between the font lock engine and your desire for correctness. Tree-sitter makes writing many major modes a snap: here I demonstrate how to write a working indentation and font lock engine for HTML.
alert-triangle
You must log in or register to comment.

Emacs@lemmy.ml

emacs@lemmy.ml

Subscribe from Remote Instance

Create a post
You are not logged in. However you can subscribe from another Fediverse account, for example Lemmy or Mastodon. To do this, paste the following into the search field of your instance: !emacs@lemmy.ml

Our infinitely powerful editor.

Visibility: Public
globe

This community can be federated to other instances and be posted/commented in by their users.

  • 1 user / day
  • 17 users / week
  • 39 users / month
  • 339 users / 6 months
  • 61 local subscribers
  • 2.53K subscribers
  • 298 Posts
  • 554 Comments
  • Modlog
  • mods:
  • Berserkware@lemmy.ml
  • Zippoh@lemmy.ml
  • BE: 0.19.8
  • Modlog
  • Instances
  • Docs
  • Code
  • join-lemmy.org