17#ifndef A11_FLOW_GENERATE_H_
18#define A11_FLOW_GENERATE_H_
23#include <absl/types/span.h>
Definition catalogue.cc:29
absl::Span< const SyntaxTarget > SyntaxTargets()
Every target, for a command that offers a choice of them.
std::string FragmentStartPattern()
Native document-start pattern used by host-string injectors.
SyntaxTarget
An editor definition the language can write for itself.
Definition generate.h:28
@ kPygments
editors/pygments/a11flow_lexer.py: a Pygments lexer, which is what colours a fenced flow in A11's own...
@ kBrowser
Native vocabulary data for the browser fallback highlighter.
@ kSublime
editors/sublime-text/A11 Flow.sublime-syntax: a Sublime/TextMate-family YAML grammar,...
@ kVsCodeInjection
editors/vscode/a11flow-injection.tmLanguage.json: Flow in host strings.
@ kVsCode
editors/vscode/a11flow.tmLanguage.json: a TextMate grammar in the JSON dialect VSCode reads.
std::string GenerateSyntax(SyntaxTarget target)
Generates the target grammar from the Flow vocabulary.
std::string_view SyntaxTargetPath(SyntaxTarget target)
Where the generated file belongs, relative to the repository root.
std::string_view SyntaxTargetName(SyntaxTarget target)
The name a target is asked for by: sublime.
bool SyntaxTargetFromName(std::string_view name, SyntaxTarget &target)
A target from its name, or nullopt.
std::string target
Which editor definition syntax is about; every one when empty, which is the default.
Definition main.cc:75