Skip to content

Commit

Permalink
add an updated Julia language spec
Browse files Browse the repository at this point in the history
Should be submitted upstream once it's more complete
  • Loading branch information
jwahlstrand committed Dec 25, 2024
1 parent 55c3a79 commit 47cfda9
Show file tree
Hide file tree
Showing 3 changed files with 435 additions and 4 deletions.
3 changes: 1 addition & 2 deletions examples/simple.jl
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,7 @@ sv = GtkSourceView()
win[] = sv

buff = sv.buffer
langman = GtkSourceLanguageManager()
lang = GtkSourceWidget.language(langman,"julia")
lang = GtkSourceWidget.language(GtkSourceWidget.sourceLanguageManager,"julia1_10")
buff.text = open("simple.jl","r") do f
read(f,String)
end
Expand Down
5 changes: 3 additions & 2 deletions src/GtkSourceWidget.jl
Original file line number Diff line number Diff line change
Expand Up @@ -265,8 +265,9 @@ function __init__()
gboxed_cache_init()

global sourceLanguageManager = GtkSourceLanguageManager()
GtkSourceWidget.set_search_path(sourceLanguageManager,
Any[joinpath(GtkSourceView_jll.artifact_dir, "share", "gtksourceview-5", "language-specs"), C_NULL])
set_search_path(sourceLanguageManager,
Any[ joinpath(GtkSourceView_jll.artifact_dir, "share", "gtksourceview-5", "language-specs"), @__DIR__, C_NULL])
set_search_path(GtkSourceStyleSchemeManagerLeaf(), Any[ joinpath(GtkSourceView_jll.artifact_dir, "share", "gtksourceview-5", "styles"), C_NULL] )
end

end # module
Loading

0 comments on commit 47cfda9

Please sign in to comment.