Giter Club home page Giter Club logo

tree-sitter-asciidoc's Introduction

tree-sitter-asciidoc

AsciiDoc grammar for tree-sitter

Warning

The grammar is not yet complete and the names of the rules or the structure of the tree nodes may change.

Note

Until the first version of the AsciiDoc Language Specification is ratified, AsciiDoc is defined by the Asciidoctor implementation. There is no other official definition of the language.

Source: AsciiDoc Language Documentation - About this documentation

References

Rule Coverage

Not everything in the checklists is relevant to grammar.

Document structure

(document
  (document_header
    (document_title)
    (document_authors)
    (document_revision)
    (document_attribute))
    ...
  (document_body
    ...))

Basic

  • Lines
  • Empty lines
  • Extended lines with \ on the end
  • Paragraphs
  • Blocks with title, attributes, anchor, title
  • Text and inline elements

Document Header

  • Document Title

    (document_title)
  • Author Information

    • Authors Line
    (document_authors)
  • Revision Information

    (document_revision)
  • Document Attributes

  • Comments

Document Body

  • Document Attributes

    (document_attribute
      (attribute_name)
      (attribute_value))
  • Element Attributes

    • Line
    (element_attributes
      (_attribute_list
        (_attribute_unparsed
        ...)))
  • Sections

    (section)
  • Parts

    (part)
  • Paragraphs

    (paragraph)
  • Breaks

    • Thematic Breaks

      (break)
    • Page Breaks

      (page_break)
  • Text Formatting and Punctuation

    • ...
  • Lists

    • Unordered Lists
    • Ordered Lists
    • Checklists
  • Description Lists

    • Horizontal Description List
    • Question and Answer Lists
    • Description Lists With Marker
  • Links

  • Cross References

  • Footnotes

  • Images

  • Audio and Video

  • Icons

  • Keyboard Macro

  • Button and Menu UI Macros

  • Admonitions

  • Sidebars

    (sidebar_block)
    (sidebar_block
      (element_attributes)
      (open_block/paragraph))
  • Example Blocks

    (example_block)
    (example_block
      (element_attributes)
      (open_block/paragraph))
  • Blockquotes

  • Verses

  • Verbatim and Source Blocks

    • Source Code Blocks

    • Listing Blocks

      (listing_block)
      (listing_block
        (element_attributes)
        (open_block/paragraph))
    • Literal Blocks

      (literal_block)
      (literal_block
        (element_attributes)
        (open_block/paragraph))
  • Tables

  • Equations and Formulas (STEM)

  • Open Blocks

    (open_block)
  • Collapsible Blocks

  • Comments

    • Comment Line

      (comment
        (comment_line))
    • Comment Block

      (comment
        (comment_block))
    • Comment Open Block Style

      (comment
        (element_attributes)
        (open_block))
    • Comment Paragraph Style

      (comment
        (element_attributes)
        (paragraph))
  • Includes

  • Conditionals

  • Passthroughs

    (pass_block)
    (pass_block
      (element_attributes)
      (paragraph))

tree-sitter-asciidoc's People

Contributors

tigion avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.