mirror of
https://github.com/privatevoid-net/nix-super.git
synced 2024-11-25 23:36:16 +02:00
docs: editorial quibbles (#11232)
This commit is contained in:
parent
6ed67d35ed
commit
b291b61089
2 changed files with 3 additions and 2 deletions
|
@ -16,13 +16,14 @@ An *identifier* is an [ASCII](https://en.wikipedia.org/wiki/ASCII) character seq
|
||||||
|
|
||||||
# Names
|
# Names
|
||||||
|
|
||||||
A name can be an [identifier](#identifier) or a [string literal](./syntax.md#string-literal).
|
A *name* can be written as an [identifier](#identifier) or a [string literal](./syntax.md#string-literal).
|
||||||
|
|
||||||
> **Syntax**
|
> **Syntax**
|
||||||
>
|
>
|
||||||
> *name* → *identifier* | *string*
|
> *name* → *identifier* | *string*
|
||||||
|
|
||||||
Names are used in [attribute sets](./syntax.md#attrs-literal), [`let` bindings](./syntax.md#let-expressions), and [`inherit`](./syntax.md#inheriting-attributes).
|
Names are used in [attribute sets](./syntax.md#attrs-literal), [`let` bindings](./syntax.md#let-expressions), and [`inherit`](./syntax.md#inheriting-attributes).
|
||||||
|
Two names are the same if they represent the same sequence of characters, regardless of whether they are written as identifiers or strings.
|
||||||
|
|
||||||
# Keywords
|
# Keywords
|
||||||
|
|
||||||
|
|
|
@ -13,7 +13,7 @@ Implicit definitions are only created by [with-expressions](./syntax.md#with-exp
|
||||||
|
|
||||||
Every expression is *enclosed* by a scope.
|
Every expression is *enclosed* by a scope.
|
||||||
The outermost expression is enclosed by the [built-in, global scope](./builtins.md), which contains only explicit definitions.
|
The outermost expression is enclosed by the [built-in, global scope](./builtins.md), which contains only explicit definitions.
|
||||||
The respective definition types *extend* their enclosing scope by adding new definitions, or replacing existing ones with the same name.
|
The expressions listed above *extend* their enclosing scope by adding new definitions, or replacing existing ones with the same name.
|
||||||
An explicit definition can replace a definition of any type; an implicit definition can only replace another implicit definition.
|
An explicit definition can replace a definition of any type; an implicit definition can only replace another implicit definition.
|
||||||
|
|
||||||
Each of the above expressions defines which of its subexpressions are enclosed by the extended scope.
|
Each of the above expressions defines which of its subexpressions are enclosed by the extended scope.
|
||||||
|
|
Loading…
Reference in a new issue