mlugg
a3a737e9a6
lib,test,tools,doc: update usages of @export
2024-08-27 00:44:35 +01:00
T
eb7f318ea8
langref: clarify functionality of the round builtin ( #19503 )
...
A test has also been added to demonstrate the expected behavior.
* std.math: update round doc comment to match the builtin
2024-08-14 10:29:45 -07:00
Rich Remer
6933ab4bf7
fix C type corresponding to f80
2024-08-12 00:25:16 -07:00
Andrew Kelley
54151428e5
std.crypto: better names for everything in utils
...
std.crypto has quite a few instances of breaking naming conventions.
This is the beginning of an effort to address that.
Deprecates `std.crypto.utils`.
2024-08-09 19:47:06 -07:00
kj4tmp
d484269543
improve @enumFromInt doc ( #20354 )
...
closes #19123
2024-07-21 02:41:43 -07:00
Alex Kladov
8267929742
langref: add example for errdefer |err| sytnax
2024-07-21 01:26:21 -07:00
ssmid
9232425b8f
single pointer slice syntax added
2024-07-21 00:32:50 -07:00
Wooster
888708ec8a
Sema: support pointer subtraction
2024-07-15 18:18:38 +00:00
Jora Troosh
13070448f5
std: fix typos ( #20560 )
2024-07-09 14:25:42 -07:00
Wayne Wu
cb308ba3ac
langref: correct test runner path
2024-06-27 19:37:44 +00:00
Ryan Liptak
0cef727e59
More precise error message for unencodable \u escapes
...
The surrogate code points U+D800 to U+DFFF are valid code points but are not Unicode scalar values. This commit makes the error message more accurately reflect what is actually allowed in `\u` escape sequences.
From https://www.unicode.org/versions/Unicode15.0.0/ch03.pdf :
> D71 High-surrogate code point: A Unicode code point in the range U+D800 to U+DBFF.
> D73 Low-surrogate code point: A Unicode code point in the range U+DC00 to U+DFFF.
>
> 3.9 Unicode Encoding Forms
> D76 Unicode scalar value: Any Unicode code point except high-surrogate and low-surrogate code points.
Related: #20270
2024-06-12 16:49:00 -04:00
expikr
7cf6650663
autodoc: fix misaligned table header when alignment is default ( #20220 )
2024-06-08 12:37:07 -07:00
Andrew Kelley
cf90dfd309
Release 0.13.0
2024-06-06 12:05:11 -07:00
Andrew Kelley
9be8a9000f
Revert "implement @expect builtin ( #19658 )"
...
This reverts commit a7de02e05216db9a04e438703ddf1b6b12f3fbef.
This did not implement the accepted proposal, and I did not sign off
on the changes. I would like a chance to review this, please.
2024-05-22 09:57:43 -07:00
David Rubin
a7de02e052
implement @expect builtin ( #19658 )
...
* implement `@expect`
* add docs
* add a second arg for expected bool
* fix typo
* move `expect` to use BinOp
* update to newer langref format
2024-05-22 10:51:16 -05:00
Veikka Tuominen
0fb2015fd3
llvm: fix @wasmMemory{Size,Grow} for wasm64
...
Closes #19942
2024-05-22 09:48:52 -04:00
Andrew Kelley
1b90888f57
migrate langref documentation generation to the build system
2024-04-25 00:09:24 -07:00
Andrew Kelley
a685ab1499
Release 0.12.0
2024-04-19 14:00:35 -07:00
Nguyá»…n Gia Phong
5b9579845d
Document packed struct's backing int declaration
2024-04-11 14:45:28 -07:00
Andrew Kelley
c78f996ff9
langref: update async functions section
2024-04-07 14:13:03 -07:00
Alex
b22ef55f36
langref: Fix example typo
2024-04-06 10:01:42 +03:00
Nguyá»…n Gia Phong
5835e5ec9a
grammar: fix ASCII range typo
2024-04-02 13:46:11 -07:00
Jacob Young
eb723a4070
Update uses of @fieldParentPtr to use RLS
2024-03-30 20:50:48 -04:00
Andrew Kelley
fb812fc1fc
langref: add naming guide
2024-03-18 23:52:52 -07:00
Linus Groh
d100a8e2dc
langref: Rename std.fs.wasi.{PreopenList => Preopens}
2024-03-19 07:22:50 +02:00
Jacob Young
d10c52c194
AstGen: disallow alignment on function types
...
A pointer type already has an alignment, so this information does not
need to be duplicated on the function type. This already has precedence
with addrspace which is already disallowed on function types for this
reason. Also fixes `@TypeOf(&func)` to have the correct addrspace and
alignment.
2024-03-17 03:06:17 +01:00
Andrew Kelley
cb419a1a86
langref: caution against default field values
...
closes #19169
2024-03-15 16:37:13 -07:00
Paul Jimenez
df174648e4
langref: bit-aligned -> byte-aligned
2024-03-15 16:40:03 +02:00
mlugg
5193da3422
langref: add basic documentation of RLS
2024-03-15 03:10:45 +00:00
Tristan Ross
c260b4c753
std.builtin: make global linkage fields lowercase
2024-03-11 07:09:10 -07:00
Tristan Ross
aab84a3dec
std.builtin: make float mode fields lowercase
2024-03-11 07:09:10 -07:00
Jacob Young
aa7d16aba1
grammar: remove gratuitous ambiguity
...
Previously, the following matched both ContainerField alternatives:
* [IDENTIFIER]
* [IDENTIFIER][COLON][TypeExpr]
2024-03-06 13:59:46 -08:00
crayon
f5e2fa5c95
langref now sets color-scheme
2024-03-05 15:55:00 +02:00
Michael Ortmann
0b744da844
Fix doc - Language Reference - Table of Operators
2024-03-04 15:59:00 +00:00
Jacob Young
d656c2a7ab
test: rework how filtering works
...
* make test names contain the fully qualified name
* make test filters match the fully qualified name
* allow multiple test filters, where a test is skipped if it does not
match any of the specified filters
2024-02-25 19:12:08 -08:00
Andrew Kelley
54bbc73f85
Merge pull request #18712 from Vexu/std.options
...
std: make options a struct instance instead of a namespace
2024-02-09 13:38:42 -08:00
iwVerve
7bd8b35a3d
langref: fix missing word typo
2024-02-06 17:22:59 +02:00
Veikka Tuominen
318e9cdaaa
langref: fix error set order
...
Something about the stdlib changes swapped the order?
2024-02-01 15:22:36 +02:00
Andrew Kelley
ce7c66e2d0
langref: make more consistent
...
* moves some langref into std.builtin doc comments
* use the same way of referencing stuff from std.builtin
closes #16483
2024-01-21 20:39:50 -07:00
Andrew Kelley
1b8e6b8ba9
langref: clean up the table of operators
...
* remove whitespace
* add column for name
* rename "description" to "remarks"
* clarify bit shift left and bit shift right
closes #17126
2024-01-21 20:31:13 -07:00
Andrew Kelley
f29217ae0c
langref: reduce verbosity of string literal section
2024-01-21 20:31:13 -07:00
Andrew Kelley
9be831e15a
langref: remove line numbers from code samples
...
It's unnecessary, more complicated, bloated, and it messes up the table
of operators.
2024-01-21 20:31:13 -07:00
Andrew Kelley
a054c01f5c
Revert "langref: add section numbers"
...
This reverts commit 3542dbf0ea5bc1ddb1c5e1c856745dc07e6c0a18.
I don't like them
2024-01-21 20:31:13 -07:00
Andrew Kelley
e9c7ebe79e
langref: simplify Hello World section
...
reverts f510f385920b9a22bd1e68839cd4be3eea092e4d
2024-01-21 20:31:13 -07:00
Andrew Kelley
6fef362992
Revert "langref: emphasize the use of dereferencing string literals"
...
This reverts commit 27353bb936a161e6a09f1424ce38bf84e78e94e4.
* unnecessary example
* poor phrasing (avoid "you")
2024-01-21 20:31:13 -07:00
Andrew Kelley
559bbf1cc6
langref: explicitly mention inline combined with multiple cases
...
closes #18524
2024-01-21 20:31:13 -07:00
Ian Johnson
fdb4eb3056
langref: add information about doctests
...
This creates a section in the language reference about doctests, which
is currently referenced by Autodoc in a tooltip when displaying a
doctest.
Some advice relevant to writing doctests is included, based on the
discussion on #16472 .
2024-01-21 19:28:52 -08:00
Andrew Kelley
96e54e7017
langref: extract code comments into paragraphs
...
Related #18496
2024-01-18 22:01:09 -07:00
Andrew Kelley
56db624643
langref: update Zig Build System section
...
It's hosted externally for now.
closes #18103
2024-01-18 22:01:09 -07:00
Andrew Kelley
8662c0ff43
langref: avoid the ambiguous word "safe"
...
See #2402
2024-01-18 22:01:09 -07:00