andreicek/zed-asciidoc

Zed support for AsciiDoc syntax

Tree-sitter Query

23

53 commits

updated Sep 26, 2026

See the code

README

This extension adds support for the AsciiDoc language for Zed.

Development

Project Structure

zed-asciidoc/
├── languages/
│   ├── asciidoc/
│   │   ├── highlights.scm      # Block-level syntax highlighting
│   │   ├── injections.scm      # Grammar injections
│   │   └── config.toml
│   └── asciidoc_inline/
│       ├── highlights.scm      # Inline syntax highlighting
│       ├── injections.scm      # Inline grammar injections
│       └── config.toml
├── snippets/
│   └── asciidoc.json           # Snippets
└── extension.toml              # Extension configuration

Contributing

When contributing changes to highlight queries:

  1. Make changes to the appropriate .scm files in languages/asciidoc/ or languages/asciidoc_inline/

  2. Verify highlighting manually in Zed

  3. Submit a pull request

Snippets

Some snippets were adapted from asciidoc vscode extension, thanks!

Table 1. Adapted Snippets
PrefixDescription

checklist

Insert checklist

example

Insert example block

footnote

Insert footnote

footnote-label

Insert footnote with label

image

Insert image block

image-block

Insert image inline

include

Insert include statement

link

Insert link

link-simple

Insert simple link

literal

Insert literal block

mailto

Insert mailto link

ordered list

Insert ordered list

quote

Insert quote block

sidebar

Insert sidebar block

source

Insert source block

table

Insert table

tag

Insert tagged block

unordered list

Insert unordered list

video

Insert video block

But new snippets are necessary…​

Table 2. New Snippets
PrefixDescription

line-through

Insert a line-through text

overline

Insert an overline text

underline

Insert an underline text

License

See LICENSE file for details.

asciidoc
zed-extension

andreicek/zed-asciidoc

Zed support for AsciiDoc syntax

Tree-sitter Query

23

53 commits

updated Sep 26, 2026

See the code

README

This extension adds support for the AsciiDoc language for Zed.

Development

Project Structure

zed-asciidoc/
├── languages/
│   ├── asciidoc/
│   │   ├── highlights.scm      # Block-level syntax highlighting
│   │   ├── injections.scm      # Grammar injections
│   │   └── config.toml
│   └── asciidoc_inline/
│       ├── highlights.scm      # Inline syntax highlighting
│       ├── injections.scm      # Inline grammar injections
│       └── config.toml
├── snippets/
│   └── asciidoc.json           # Snippets
└── extension.toml              # Extension configuration

Contributing

When contributing changes to highlight queries:

  1. Make changes to the appropriate .scm files in languages/asciidoc/ or languages/asciidoc_inline/

  2. Verify highlighting manually in Zed

  3. Submit a pull request

Snippets

Some snippets were adapted from asciidoc vscode extension, thanks!

Table 1. Adapted Snippets
PrefixDescription

checklist

Insert checklist

example

Insert example block

footnote

Insert footnote

footnote-label

Insert footnote with label

image

Insert image block

image-block

Insert image inline

include

Insert include statement

link

Insert link

link-simple

Insert simple link

literal

Insert literal block

mailto

Insert mailto link

ordered list

Insert ordered list

quote

Insert quote block

sidebar

Insert sidebar block

source

Insert source block

table

Insert table

tag

Insert tagged block

unordered list

Insert unordered list

video

Insert video block

But new snippets are necessary…​

Table 2. New Snippets
PrefixDescription

line-through

Insert a line-through text

overline

Insert an overline text

underline

Insert an underline text

License

See LICENSE file for details.

asciidoc
zed-extension

Languages

Tree-sitter Query

100.0%