fix: Don't log when falling back to ruby, it breaks stuff
Some checks failed
Tests / build (push) Has been cancelled
Coverage / build (push) Has been cancelled

This commit is contained in:
Roberto Alsina 2025-03-09 18:38:42 -03:00
parent aabe028767
commit d1ce83a9c8

View File

@ -354,7 +354,6 @@ module Tartrazine
super
rescue ex : Crystal::SyntaxException
# Fallback to Ruby highlighting
Log.warn { "Highlighting as Ruby, Crystal syntax highlighting failed: #{ex.message}" }
@tokens = Tartrazine.lexer("ruby").tokenizer(text).to_a
end