2022-11-22 18:37:44 +02:00
|
|
|
--
|
2023-04-12 13:20:35 +03:00
|
|
|
-- Copyright (C) 2021-2023, AdaCore
|
2022-11-22 18:37:44 +02:00
|
|
|
--
|
2023-04-12 13:20:35 +03:00
|
|
|
-- SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
|
2022-11-22 18:37:44 +02:00
|
|
|
--
|
|
|
|
|
|
|
|
|
|
-- Simple parser for code spans
|
|
|
|
|
|
|
|
|
|
with Markdown.Simple_Inline_Parsers;
|
|
|
|
|
|
|
|
|
|
package Markdown.Implementation.Code_Spans is
|
|
|
|
|
pragma Preelaborate;
|
|
|
|
|
|
|
|
|
|
procedure Parse_Code_Span
|
|
|
|
|
(Text : VSS.Strings.Virtual_String;
|
|
|
|
|
From : VSS.Strings.Cursors.Abstract_Character_Cursor'Class;
|
|
|
|
|
Span : out Markdown.Simple_Inline_Parsers.Inline_Span);
|
|
|
|
|
-- Find next code span in Text staring From given position. Return
|
|
|
|
|
-- `Is_Set => False` if not found.
|
|
|
|
|
|
2025-11-18 23:41:03 +02:00
|
|
|
procedure Initialize;
|
|
|
|
|
-- Prepare regexp patterns
|
|
|
|
|
|
2022-11-22 18:37:44 +02:00
|
|
|
end Markdown.Implementation.Code_Spans;
|