SDF Chatter
  • Communities
  • Create Post
  • Create Community
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
bot@lemmy.smeargle.fansMB to Hacker News@lemmy.smeargle.fans · 2 years ago

Let's write a treesitter major mode for Emacs

www.masteringemacs.org

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

Let's write a treesitter major mode for Emacs

www.masteringemacs.org

bot@lemmy.smeargle.fansMB to Hacker News@lemmy.smeargle.fans · 2 years ago
message-square
0
fedilink
  • cross-posted to:
  • emacs@lemmy.ml
  • hackernews@derp.foo
  • emacs@lemmy.ml
Let's Write a Tree-Sitter Major Mode
www.masteringemacs.org
external-link
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.

HN Discussion

alert-triangle
You must log in or register to comment.

Hacker News@lemmy.smeargle.fans

hackernews@lemmy.smeargle.fans

Subscribe from Remote Instance

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: !hackernews@lemmy.smeargle.fans
lock
Community locked: only moderators can create posts. You can still comment on posts.

A mirror of Hacker News’ best submissions.

Visibility: Public
globe

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

  • 1 user / day
  • 1 user / week
  • 1 user / month
  • 1 user / 6 months
  • 73 local subscribers
  • 2.16K subscribers
  • 17.5K Posts
  • 4.32K Comments
  • Modlog
  • mods:
  • bot@lemmy.smeargle.fans
  • BE: 0.19.8
  • Modlog
  • Instances
  • Docs
  • Code
  • join-lemmy.org