Skip to content

Commit

Permalink
Better punctuation parsing for JS and OCaml
Browse files Browse the repository at this point in the history
Closes #7
  • Loading branch information
Wilfred committed Jul 8, 2021
1 parent ccaca6f commit 5463c12
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions config/syntax.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ atom_patterns = [
# Symbols (e.g. variable names)
'[.a-zA-Z0-9_]+',
# Operators
'[=<>/*+?:;,-]+',
'[=<>/*+?:;,-]',
]
string_patterns = [
# Double-quoted strings
Expand Down Expand Up @@ -111,7 +111,7 @@ atom_patterns = [
# Symbols (e.g. variable names)
'[.a-zA-Z0-9_]+',
# Operators
'[?~=<>/*+-]+',
'[?~=<>/*+-,&|]',
]
string_patterns = [
# Double-quoted strings
Expand Down

0 comments on commit 5463c12

Please sign in to comment.