Better punctuation parsing for JS and OCaml

Closes #7
pull/25/head
Wilfred Hughes 2021-07-07 19:53:45 +07:00
parent ccaca6f6a6
commit 5463c120f4
2 changed files with 4 additions and 2 deletions

@ -3,6 +3,8 @@
Improved Rust parsing to recognise lifetime syntax `'foo`, character
literals `'x'` and sequences of punctuation.
Improve punctuation parsing for OCaml and JS.
Fixed an issue where the diff calculated may not be minimal.
## 0.2

@ -6,7 +6,7 @@ atom_patterns = [
# Symbols (e.g. variable names)
'[.a-zA-Z0-9_]+',
# Operators
'[=<>/*+?:;,-]+',
'[=<>/*+?:;,-]',
]
string_patterns = [
# Double-quoted strings
@ -111,7 +111,7 @@ atom_patterns = [
# Symbols (e.g. variable names)
'[.a-zA-Z0-9_]+',
# Operators
'[?~=<>/*+-]+',
'[?~=<>/*+-,&|]',
]
string_patterns = [
# Double-quoted strings