mirror of
https://github.com/AdaCore/markdown.git
synced 2026-02-12 13:11:15 -08:00
28 lines
784 B
Ada
28 lines
784 B
Ada
--
|
|
-- Copyright (C) 2021-2023, AdaCore
|
|
--
|
|
-- SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
|
|
--
|
|
|
|
-- A variant of indented code blocks used in GNATdoc.
|
|
-- It's indented with 3 or more spaces
|
|
|
|
package Markdown.Implementation.Indented_Code_Blocks.GNATdoc is
|
|
pragma Preelaborate;
|
|
|
|
type GNATdoc_Code_Block is new Indented_Code_Block with null record;
|
|
|
|
overriding function Create
|
|
(Input : not null access Input_Position) return GNATdoc_Code_Block;
|
|
|
|
procedure Detector
|
|
(Input : Input_Position;
|
|
Tag : in out Ada.Tags.Tag;
|
|
CIP : out Can_Interrupt_Paragraph);
|
|
-- The detector procedure to find start of a gnatdoc code block
|
|
|
|
procedure Initialize;
|
|
-- Prepare regexp patterns
|
|
|
|
end Markdown.Implementation.Indented_Code_Blocks.GNATdoc;
|