Skip to content

Commit 04da2ed

Browse files
committed
Allow unquoted <>&| in atoms
1 parent 5828ff2 commit 04da2ed

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ data representation implied by the fact that a value is an atom (e.g. the atom
5151
`2` may be an integer in memory).
5252

5353
Bare words not containing any
54-
[reserved character sequences](./src/language/parsing/atom.ts#L33-L57) are
54+
[reserved character sequences](./src/language/parsing/atom.ts#L33-L55) are
5555
atoms:
5656

5757
```

src/language/parsing/atom.ts

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -44,15 +44,13 @@ const atomComponentsRequiringQuotation = [
4444
singleLineCommentDelimiter,
4545
whitespace,
4646

47+
// Reserved to allow symbols like `=>` to not be conflated with atoms:
48+
literal('='),
49+
4750
// Reserved for future use:
4851
literal('['),
4952
literal(']'),
50-
literal('<'),
51-
literal('>'),
5253
literal('#'),
53-
literal('&'),
54-
literal('|'),
55-
literal('='),
5654
literal(';'),
5755
] as const
5856

0 commit comments

Comments
 (0)