Skip to content

Commit

Permalink
ci: fix failing jobs after 4ed9d13 (#22606)
Browse files Browse the repository at this point in the history
  • Loading branch information
spytheman authored Oct 20, 2024
1 parent 4ed9d13 commit 988f8b4
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion cmd/tools/vast/vast.v
Original file line number Diff line number Diff line change
Expand Up @@ -1028,7 +1028,8 @@ fn (t Tree) comptime_call(node ast.ComptimeCall) &Node {
obj.add_terse('method_name', t.string_node(node.method_name))
obj.add_terse('left', t.expr(node.left))
obj.add_terse('is_vweb', t.bool_node(node.is_vweb))
obj.add_terse('veb_tmpl', t.string_node(node.vweb_tmpl.path))
obj.add_terse('is_veb', t.bool_node(node.is_veb))
obj.add_terse('veb_tmpl', t.string_node(node.veb_tmpl.path))
obj.add_terse('args_var', t.string_node(node.args_var))
obj.add_terse('has_parens', t.bool_node(node.has_parens))
obj.add_terse('is_embed', t.bool_node(node.is_embed))
Expand Down
2 changes: 1 addition & 1 deletion vlib/v/parser/tmpl.v
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@ pub fn (mut p Parser) compile_template_file(template_file string, fn_name string
mut source := strings.new_builder(1000)
source.writeln('
import strings
import veb
import veb as _
// === veb html template ===
fn veb_tmpl_${fn_name}() string {
mut sb_${fn_name} := strings.new_builder(${lstartlength})\n
Expand Down
2 changes: 1 addition & 1 deletion vlib/veb/tr.v
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ fn load_tr_map() map[string]map[string]string {
return {}
}
x := text.split('-----\n')
for i, s in x {
for s in x {
// println('val="${val}"')
nl_pos := s.index('\n') or { continue }
key := s[..nl_pos]
Expand Down

0 comments on commit 988f8b4

Please sign in to comment.