Skip to content

Commit

Permalink
Merge pull request #54 from staticfloat/patch-1
Browse files Browse the repository at this point in the history
Fixes for Julia v1.12+
  • Loading branch information
MichaelHatherly authored Jun 7, 2024
2 parents 7bbfb49 + 1bad9ad commit 8c80439
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions src/lexers/julia.jl
Original file line number Diff line number Diff line change
Expand Up @@ -66,9 +66,8 @@ end
julia_is_triple_string_macro(ctx::Context) = julia_is_string_macro(ctx, 3)

# Julia Script Lexer.

@lexer JuliaLexer let
keywords = [kw.keyword for kw in REPL.REPLCompletions.complete_keyword("")]
keywords = copy(REPL.REPLCompletions.sorted_keywords)
char_regex = [
raw"'(\\.|\\[0-7]{1,3}|\\x[a-fA-F0-9]{1,3}|",
raw"\\u[a-fA-F0-9]{1,4}|\\U[a-fA-F0-9]{1,6}|",
Expand Down
2 changes: 1 addition & 1 deletion test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -337,5 +337,5 @@ end
# Hack to make the test in External actually usable...
using Pkg
Pkg.activate(joinpath(@__DIR__, "External"))
Pkg.develop("Highlights")
Pkg.develop(Pkg.PackageSpec(;path=dirname(@__DIR__)))
using External

0 comments on commit 8c80439

Please sign in to comment.