mirror of
https://github.com/sbrow/thor.git
synced 2026-08-26 11:23:32 -04:00
feat: Users can now choose where to load grammars/queries from.
This commit is contained in:
@@ -7,6 +7,8 @@ import "core:prof/spall"
|
||||
import "core:sync"
|
||||
import "core:time"
|
||||
|
||||
import "treesitter"
|
||||
|
||||
SPALL :: #config(SPALL, false)
|
||||
|
||||
when SPALL {
|
||||
@@ -48,6 +50,9 @@ main :: proc() {
|
||||
context.allocator = site_allocator(&site)
|
||||
build_vfs(&site)
|
||||
|
||||
treesitter.grammar_dir = site.grammars
|
||||
treesitter.query_dir = site.queries
|
||||
|
||||
site_load_content(&site)
|
||||
render_site(&site)
|
||||
log.infof("Built site in %s", time.tick_since(tick))
|
||||
|
||||
Reference in New Issue
Block a user