Skip to content

Commit

Permalink
run clang-format
Browse files Browse the repository at this point in the history
  • Loading branch information
Green-Sky authored and cmaughan committed Sep 8, 2023
1 parent 808e49b commit 97ecd74
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/syntax_providers.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -154,16 +154,16 @@ void RegisterSyntaxProviders(ZepEditor& editor)
return std::make_shared<ZepSyntax>(*pBuffer, scenegraph_keywords, scenegraph_identifiers);
}) });
editor.RegisterSyntaxFactory({ ".vert", ".frag", ".geom", ".rchit", ".rgen", ".rmiss", ".glsl" }, SyntaxProvider{ "gl_shader", tSyntaxFactory([](ZepBuffer* pBuffer) {
return std::make_shared<ZepSyntax>(*pBuffer, glsl_keywords, glsl_identifiers);
}) });
return std::make_shared<ZepSyntax>(*pBuffer, glsl_keywords, glsl_identifiers);
}) });

editor.RegisterSyntaxFactory({ ".hlsl", ".hlsli", ".vs", ".ps", ".gs" }, SyntaxProvider{ "hlsl_shader", tSyntaxFactory([](ZepBuffer* pBuffer) {
return std::make_shared<ZepSyntax>(*pBuffer, hlsl_keywords, hlsl_identifiers);
}) });

editor.RegisterSyntaxFactory({ ".cpp", ".cxx", ".hpp", ".h", ".c" }, SyntaxProvider{ "cpp", tSyntaxFactory([](ZepBuffer* pBuffer) {
return std::make_shared<ZepSyntax>(*pBuffer, cpp_keywords, cpp_identifiers);
}) });
return std::make_shared<ZepSyntax>(*pBuffer, cpp_keywords, cpp_identifiers);
}) });

editor.RegisterSyntaxFactory({ ".lisp", ".lsp" }, SyntaxProvider{ "lisp", tSyntaxFactory([](ZepBuffer* pBuffer) {
return std::make_shared<ZepSyntax>(*pBuffer, lisp_keywords, lisp_identifiers, ZepSyntaxFlags::LispLike);
Expand All @@ -178,8 +178,8 @@ void RegisterSyntaxProviders(ZepEditor& editor)
}) });

editor.RegisterSyntaxFactory({ ".cmake", "CMakeLists.txt", "CMakeCache.txt" }, SyntaxProvider{ "cmake", tSyntaxFactory([](ZepBuffer* pBuffer) {
return std::make_shared<ZepSyntax>(*pBuffer, cmake_keywords, cmake_identifiers, ZepSyntaxFlags::CaseInsensitive);
}) });
return std::make_shared<ZepSyntax>(*pBuffer, cmake_keywords, cmake_identifiers, ZepSyntaxFlags::CaseInsensitive);
}) });

editor.RegisterSyntaxFactory(
{ ".toml" },
Expand Down

0 comments on commit 97ecd74

Please sign in to comment.