File tree Expand file tree Collapse file tree 3 files changed +20
-0
lines changed
Expand file tree Collapse file tree 3 files changed +20
-0
lines changed Original file line number Diff line number Diff line change 1+ -- customastshim.lua
2+ -- Copyright (C) 2020-2023 Posit Software, PBC
3+
4+ _quarto = {
5+ ast = {
6+ walk = function (el , filter )
7+ return el :walk (filter )
8+ end
9+ }
10+ }
Original file line number Diff line number Diff line change @@ -45,8 +45,12 @@ import("../common/meta.lua")
4545import (" ../common/table.lua" )
4646import (" ../common/string.lua" )
4747import (" ../common/debug.lua" )
48+
49+ import (" ../common/customastshim.lua" )
4850-- [/import]
4951
52+ -- note that the custom-ast-shim.lua import should _not_ happen on main.lua
53+
5054initCrossrefIndex ()
5155
5256-- chain of filters
Original file line number Diff line number Diff line change @@ -16,8 +16,14 @@ import("../common/filemetadata.lua")
1616import (" ../common/meta.lua" )
1717import (" includes.lua" )
1818import (" resourcerefs.lua" )
19+ import (" ../common/customastshim.lua" )
20+
1921-- [/import]
2022
23+ -- note that the custom-ast-shim.lua import should _not_ happen on main.lua
24+ -- it exists for us to be able to support filters that need to exist on IDE
25+ -- and do not require the full custom AST work.
26+
2127return {
2228 readIncludes (),
2329 combineFilters ({
You can’t perform that action at this time.
0 commit comments