mirror of
https://github.com/getpaseo/paseo.git
synced 2026-11-26 02:05:31 +00:00
Copy react-native-enriched-markdown@1.2.0-nightly-20261014-766fc0e67 (upstream software-mansion/enriched-markdown 766fc0e67) into packages/react-native-enriched-markdown, with patches/react-native-enriched-markdown+1.2.0-nightly-20261014-766fc0e67.patch applied. Nothing else changes in this commit; the package is not a workspace yet. Reproduce: npm pack react-native-enriched-markdown@1.2.0-nightly-20261014-766fc0e67 tar xzf react-native-enriched-markdown-*.tgz mkdir -p t/node_modules && mv package t/node_modules/react-native-enriched-markdown (cd t && git init -q && git apply ../patches/react-native-enriched-markdown+*.patch) diff -r t/node_modules/react-native-enriched-markdown packages/react-native-enriched-markdown The diff is empty.
60 lines
1.9 KiB
C++
60 lines
1.9 KiB
C++
// Generated by vendor/gen-registry.mjs. Do not edit.
|
|
|
|
#include "HighlightGrammars.hpp"
|
|
#include "generated_queries.h"
|
|
|
|
#include <cstring>
|
|
|
|
extern "C" {
|
|
const TSLanguage *tree_sitter_json(void);
|
|
const TSLanguage *tree_sitter_html(void);
|
|
const TSLanguage *tree_sitter_css(void);
|
|
const TSLanguage *tree_sitter_markdown(void);
|
|
const TSLanguage *tree_sitter_yaml(void);
|
|
const TSLanguage *tree_sitter_go(void);
|
|
const TSLanguage *tree_sitter_java(void);
|
|
const TSLanguage *tree_sitter_javascript(void);
|
|
const TSLanguage *tree_sitter_python(void);
|
|
const TSLanguage *tree_sitter_c(void);
|
|
const TSLanguage *tree_sitter_rust(void);
|
|
const TSLanguage *tree_sitter_bash(void);
|
|
const TSLanguage *tree_sitter_typescript(void);
|
|
const TSLanguage *tree_sitter_tsx(void);
|
|
}
|
|
|
|
namespace Markdown {
|
|
namespace {
|
|
|
|
constexpr GrammarEntry kGrammars[] = {
|
|
{"json", tree_sitter_json, kHighlightsQuery_json},
|
|
{"html", tree_sitter_html, kHighlightsQuery_html},
|
|
{"css", tree_sitter_css, kHighlightsQuery_css},
|
|
{"markdown", tree_sitter_markdown, kHighlightsQuery_markdown},
|
|
{"yaml", tree_sitter_yaml, kHighlightsQuery_yaml},
|
|
{"go", tree_sitter_go, kHighlightsQuery_go},
|
|
{"java", tree_sitter_java, kHighlightsQuery_java},
|
|
{"javascript", tree_sitter_javascript, kHighlightsQuery_javascript},
|
|
{"python", tree_sitter_python, kHighlightsQuery_python},
|
|
{"c", tree_sitter_c, kHighlightsQuery_c},
|
|
{"rust", tree_sitter_rust, kHighlightsQuery_rust},
|
|
{"bash", tree_sitter_bash, kHighlightsQuery_bash},
|
|
{"typescript", tree_sitter_typescript, kHighlightsQuery_typescript},
|
|
{"tsx", tree_sitter_tsx, kHighlightsQuery_tsx},
|
|
};
|
|
|
|
} // namespace
|
|
|
|
const GrammarEntry *findGrammar(const char *canonicalId) {
|
|
if (canonicalId == nullptr) {
|
|
return nullptr;
|
|
}
|
|
for (const GrammarEntry &entry : kGrammars) {
|
|
if (std::strcmp(entry.canonicalId, canonicalId) == 0) {
|
|
return &entry;
|
|
}
|
|
}
|
|
return nullptr;
|
|
}
|
|
|
|
} // namespace Markdown
|