Skip to content

Commit

Permalink
add transcript
Browse files Browse the repository at this point in the history
  • Loading branch information
mitchellwrosen committed Feb 26, 2024
1 parent 5cb5469 commit 179e131
Show file tree
Hide file tree
Showing 2 changed files with 53 additions and 0 deletions.
15 changes: 15 additions & 0 deletions unison-src/transcripts/name-segment-escape.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
You can use a keyword or reserved operator as a name segment if you surround it with backticks.

```ucm:error
.> view `match`
.> view `=`
```

You can also use backticks to expand the set of valid symbols in a symboly name segment to include these three: `.()`

This allows you to spell `.` or `()` as name segments (which historically have appeared in the namespace).

```ucm:error
.> view `.`
.> view `()`
```
38 changes: 38 additions & 0 deletions unison-src/transcripts/name-segment-escape.output.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
You can use a keyword or reserved operator as a name segment if you surround it with backticks.

```ucm
.> view `match`
⚠️
The following names were not found in the codebase. Check your spelling.
`match`
.> view `=`
⚠️
The following names were not found in the codebase. Check your spelling.
`=`
```
You can also use backticks to expand the set of valid symbols in a symboly name segment to include these three: `.()`

This allows you to spell `.` or `()` as name segments (which historically have appeared in the namespace).

```ucm
.> view `.`
⚠️
The following names were not found in the codebase. Check your spelling.
`.`
.> view `()`
⚠️
The following names were not found in the codebase. Check your spelling.
`()`
```

0 comments on commit 179e131

Please sign in to comment.