17#ifndef A11_FLOW_GENERATE_H_
18#define A11_FLOW_GENERATE_H_
23#include <absl/types/span.h>
Definition boundary.cc:32
absl::Span< const SyntaxTarget > SyntaxTargets()
Every target, for a command that offers a choice of them.
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...
@ kSublime
editors/sublime-text/A11 Flow.sublime-syntax: a Sublime/TextMate-family YAML grammar,...
@ kVsCodeInjection
editors/vscode/a11flow-injection.tmLanguage.json: the same words, as an injection into the string lit...
@ kVsCode
editors/vscode/a11flow.tmLanguage.json: a TextMate grammar in the JSON dialect VSCode reads.
std::string GenerateSyntax(SyntaxTarget target)
The whole definition, generated.
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:74