SDF Chatter
  • Communities
  • Create Post
  • Create Community
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
haxor@derp.fooMB to Hacker News@derp.fooEnglish · 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@lemmy.smeargle.fans
  • emacs@lemmy.ml
1
external-link

Let's write a treesitter major mode for Emacs

www.masteringemacs.org

haxor@derp.fooMB to Hacker News@derp.fooEnglish · 2 years ago
message-square
0
fedilink
  • cross-posted to:
  • emacs@lemmy.ml
  • hackernews@lemmy.smeargle.fans
  • 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.

There is a discussion on Hacker News, but feel free to comment here as well.

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

Hacker News@derp.foo

hackernews@derp.foo

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@derp.foo
lock
Community locked: only moderators can create posts. You can still comment on posts.

This community serves to share top posts on Hacker News with the wider fediverse.

Rules
  1. Keep it legal
  2. Keep it civil and SFW
  3. Keep it safe for members of marginalised groups
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
  • 2 users / 6 months
  • 60 local subscribers
  • 3.94K subscribers
  • 18K Posts
  • 10.8K Comments
  • Modlog
  • mods:
  • haxor@derp.foo
  • BE: 0.19.8
  • Modlog
  • Instances
  • Docs
  • Code
  • join-lemmy.org