# Enabling low-latency, syntax-aware editing using Tree-sitter

DevFeed: [Enabling low-latency, syntax-aware editing using Tree-sitter](<https://devfeed.tech/articles/enabling-low-latency-syntax-aware-editing-using-tree-sitter-13539.md>)

Original publisher: [Read original article](<https://zed.dev/blog/syntax-aware-editing>)

Author: Max Brunsfeld

Published: 2023-03-27T00:00:00Z

Content type: tutorial

Language: en

Sources: [Zed Industries - Blog](<https://devfeed.tech/sources/zed-industries-blog.md>)

Topics: [Tree-sitter](<https://devfeed.tech/topics/tree-sitter.md>), [Parsing](<https://devfeed.tech/topics/parsing.md>), [Concrete syntax tree](<https://devfeed.tech/topics/cst.md>), [Programming](<https://devfeed.tech/topics/programming.md>), [Open Source](<https://devfeed.tech/topics/open-source.md>), [Code](<https://devfeed.tech/topics/code.md>)

Tags: [code](<https://devfeed.tech/tags/code.md>), [incremental](<https://devfeed.tech/tags/incremental.md>), [low-latency](<https://devfeed.tech/tags/low-latency.md>), [open-source](<https://devfeed.tech/tags/open-source.md>), [parsing](<https://devfeed.tech/tags/parsing.md>), [programming](<https://devfeed.tech/tags/programming.md>), [syntax](<https://devfeed.tech/tags/syntax.md>)

## AI overview

This tutorial explains how Zed uses Tree-sitter for syntax-aware editing. It covers the challenges of parsing frequently changing and temporarily invalid source code, and describes Tree-sitter's incremental parsing, error recovery, and concrete syntax trees, including syntax-aware selection.

## Source excerpt

A tour of Zed's syntax-aware editing features, and how we use Tree-sitter to implement them efficiently.