Marcel van Lohuizen | 75cb003 | 2019-01-11 12:10:48 +0100 | [diff] [blame] | 1 | [TOC](Readme.md) [Prev](emit.md) [Next](duplicates.md) |
| 2 | |
Marcel van Lohuizen | af0932f | 2019-01-11 13:03:56 +0100 | [diff] [blame] | 3 | _References and Visibility_ |
| 4 | |
Marcel van Lohuizen | 75cb003 | 2019-01-11 12:10:48 +0100 | [diff] [blame] | 5 | # Hidden Fields |
| 6 | |
| 7 | A non-quoted field name that starts with an underscore (`_`) is not |
| 8 | emitted from the output. |
| 9 | To includes fields in the configuration that start with an underscore |
| 10 | put them in quotes. |
| 11 | |
Jonathan Amsterdam | e479038 | 2019-01-20 10:29:29 -0500 | [diff] [blame] | 12 | Quoted and non-quoted fields share the same namespace unless they start |
Marcel van Lohuizen | 75cb003 | 2019-01-11 12:10:48 +0100 | [diff] [blame] | 13 | with an underscore. |
| 14 | |
| 15 | <!-- CUE editor --> |
| 16 | ``` |
| 17 | "_foo": 2 |
| 18 | _foo: 3 |
| 19 | foo: 4 |
| 20 | ``` |
| 21 | |
| 22 | <!-- result --> |
| 23 | ``` |
| 24 | "_foo": 2 |
| 25 | foo: 4 |
Jonathan Amsterdam | e479038 | 2019-01-20 10:29:29 -0500 | [diff] [blame] | 26 | ``` |