Recognise # and <- as OCaml punctuation

Fixes #18
pull/25/head
Wilfred Hughes 2021-07-15 23:54:53 +07:00
parent ae4f404d1a
commit 00fcd4652a
2 changed files with 4 additions and 2 deletions

@ -4,6 +4,8 @@
Improved parsing for Rust punctuation.
Improved parsing for OCaml punctuation.
## 0.4
### Parsing

@ -113,9 +113,9 @@ atom_patterns = [
# Symbols (e.g. variable names)
'[.a-zA-Z0-9_]+',
# Two character operators
'(->|&&|\|\|)',
'(->|<-|&&|\|\|)',
# Single character operators
"[?~=<>/*+-,&|:']",
"[?~=<>/*+-,&|:'#]",
]
string_patterns = [
# Double-quoted strings