fix: support choosing lexers when used as a library

This commit is contained in:
Roberto Alsina 2024-10-14 16:45:50 -03:00
parent 9e2585a875
commit 44e6af8546

View File

@ -9,7 +9,7 @@ module Tartrazine
macro bake_selected_lexers
{% for lexer in env("TT_LEXERS").split "," %}
bake_file {{ lexer }}+".xml", {{ read_file "lexers/" + lexer + ".xml" }}
bake_file {{ lexer }}+".xml", {{ read_file "#{__DIR__}/../lexers/" + lexer + ".xml" }}
{% end %}
end