replace regex based directive scanner
This commit is contained in:
3
testdata/and_or_in_file/test.txt
vendored
Normal file
3
testdata/and_or_in_file/test.txt
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
<@if(and(context.enabled,eq(context.kind,"web")))>and<@else>not-and<@endif>
|
||||
<@if(or(context.enabled,neq(context.kind,"web")))>or<@else>not-or<@endif>
|
||||
<@if(and(or(context.enabled,context.fallback),neq(context.kind,"native")))>nested<@else>not-nested<@endif>
|
||||
@@ -0,0 +1 @@
|
||||
match
|
||||
7
testdata/neq_multiline_block/test.txt
vendored
Normal file
7
testdata/neq_multiline_block/test.txt
vendored
Normal file
@@ -0,0 +1,7 @@
|
||||
<@if(neq(context.project.frontend,"none"))>
|
||||
bundev = {
|
||||
exec = "bun dev";
|
||||
cwd = "./apps/web";
|
||||
after= ["devenv:processes:air@started"];
|
||||
};
|
||||
<@endif>
|
||||
Reference in New Issue
Block a user