Commit 37dca7c
committed
Language.Nix.Identifier: classify exposed symbols
- In general, one should use Identifier and its instances to render and
parse Identifiers. quote has been relegated to an Internals section
since it is only required by the test suite at the moment. It may be
nice to remove it at some point.
- needsQuoting deals with arbitrary strings and would normally be used
to judge whether a given String should be converted to an Identifier
directly or first be subject to some kind of substitution so that it
does not need to be quoted (see #672). nixKeywords is an internal
definition involved with this which is also used in the test suites.1 parent b8b9c2e commit 37dca7c
1 file changed
+9
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
| 7 | + | |
| 8 | + | |
8 | 9 | | |
9 | | - | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
10 | 16 | | |
11 | 17 | | |
12 | 18 | | |
| |||
130 | 136 | | |
131 | 137 | | |
132 | 138 | | |
| 139 | + | |
133 | 140 | | |
134 | 141 | | |
135 | 142 | | |
| |||
0 commit comments