Skip to content

Commit 8ffcf53

Browse files
committed
Add basic precompilation statements
1 parent 3aaed79 commit 8ffcf53

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/JuliaSyntaxHighlighting.jl

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -366,4 +366,10 @@ function highlight!(str::SubString{AnnotatedString{S}}) where {S}
366366
str
367367
end
368368

369+
if Base.generating_output()
370+
highlight(read(@__FILE__, String))
371+
highlight!(Base.AnnotatedString("1 + 2"))
372+
highlight!(Base.AnnotatedString("1 + 2")[1:5])
373+
end
374+
369375
end

0 commit comments

Comments
 (0)