v/vlib/builtin/js
Nick Treleaven 226bb4bd8b vdoc: highlight inline examples for `-f html`
This doesn't include multi-line examples or README.md example.
Part of https://github.com/vlang/v/issues/13851.

If the example isn't valid V:
```v
// Example: `if ouch { return error('an error occurred') }`
```
You'll get an error like:
```
internal_memory:1:47: error: invalid character literal `if ouch { return error('an error occurred') }` => `if ouch { return error('an error occurred') }` ([`i`, `f`, ` `, `o`, `u`, `c`, `h`, ` `, `{`, ` `, `r`, `e`, `t`, `u`, `r`, `n`, ` `, `e`, `r`, `r`, `o`, `r`, `(`, `'`, `a`, `n`, ` `, `e`, `r`, `r`, `o`, `r`, ` `, `o`, `c`, `c`, `u`, `r`, `r`, `e`, `d`, `'`, `)`, ` `, `}`]) (more than one character)
internal_memory:1:1: details: use quotes for strings, backticks for characters
```

This one is less informative about the source line:
```v
// Example: assert 'h`.is_capital() == false
```
```
internal_memory:1:33: error: unfinished string literal
```
2022-03-30 18:06:10 +01:00
..
array.js.v jsdom, examples: add more WebGL APIs; add interactive 3D cube example running on VJS (#12562) 2021-11-24 20:31:39 +02:00
array_test.js.v builtin: fix warnings for tests inside vlib/builtin/js 2022-01-30 16:36:56 +02:00
builtin.js.v gg: add event handling for mouse down/up and mouse leave/out on VJS (#12917) 2021-12-21 12:31:29 +02:00
builtin.v docs, builtin, encoding.csv: update error implementations (#13440) 2022-02-12 11:54:10 +02:00
byte.js.v vdoc: highlight inline examples for `-f html` 2022-03-30 18:06:10 +01:00
float.js.v
int.js.v js: port more methods (os, builtin) (#12238) 2021-10-20 16:02:21 +03:00
int_test.js.v builtin: fix warnings for tests inside vlib/builtin/js 2022-01-30 16:36:56 +02:00
jsfns.js.v all: update copyright year 2022-01-04 12:21:12 +03:00
jsfns_browser.js.v all: update copyright year 2022-01-04 12:21:12 +03:00
jsfns_node.js.v all: update copyright year 2022-01-04 12:21:12 +03:00
map.js.v js: support `-es5` flag (#12846) 2021-12-15 15:47:34 +02:00
map_test.js.v builtin: fix warnings for tests inside vlib/builtin/js 2022-01-30 16:36:56 +02:00
promise.js.v js: add support for Promise.wait() (#12781) 2021-12-10 14:54:20 +02:00
rune.js.v js,strconv: port some functions to JS backend, improve `rune.str()` (#12460) 2021-11-14 21:06:58 +02:00
string.js.v builtin: s.trim_prefix/1 -> s.trim_string_left/1, s.trim_suffix/1 -> s.trim_string_right/1 2022-01-05 12:49:22 +02:00
string_test.js.v builtin: fix warnings for tests inside vlib/builtin/js 2022-01-30 16:36:56 +02:00
utf8.js.v js: make vlib/v/util compile on JS backend (#12660) 2021-12-03 12:25:36 +02:00