mirror of
https://github.com/ralsina/tartrazine.git
synced 2025-04-04 15:28:22 +00:00
fix: Don't log when falling back to ruby, it breaks stuff
This commit is contained in:
parent
aabe028767
commit
d1ce83a9c8
@ -354,7 +354,6 @@ module Tartrazine
|
|||||||
super
|
super
|
||||||
rescue ex : Crystal::SyntaxException
|
rescue ex : Crystal::SyntaxException
|
||||||
# Fallback to Ruby highlighting
|
# Fallback to Ruby highlighting
|
||||||
Log.warn { "Highlighting as Ruby, Crystal syntax highlighting failed: #{ex.message}" }
|
|
||||||
@tokens = Tartrazine.lexer("ruby").tokenizer(text).to_a
|
@tokens = Tartrazine.lexer("ruby").tokenizer(text).to_a
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user