Skip to content

Commit 1b6832b

Browse files
authored
v.parser: document $veb.html() too in the compiler error messages, as a known comptime function (#26605)
1 parent 352bc6f commit 1b6832b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎vlib/v/parser/comptime.v‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ fn (mut p Parser) hash() ast.HashStmt {
123123
}
124124
}
125125

126-
const error_msg = 'only `\$tmpl()`, `\$env()`, `\$embed_file()`, `\$pkgconfig()`, `\$vweb.html()`, `\$compile_error()`, `\$compile_warn()`, `\$d()` and `\$res()` comptime functions are supported right now'
126+
const error_msg = 'only `\$tmpl()`, `\$env()`, `\$embed_file()`, `\$pkgconfig()`, `\$veb.html()`, `\$vweb.html()`, `\$compile_error()`, `\$compile_warn()`, `\$d()` and `\$res()` comptime functions are supported right now'
127127

128128
fn (mut p Parser) comptime_call() ast.ComptimeCall {
129129
err_node := ast.ComptimeCall{

0 commit comments

Comments
 (0)