Improved OCaml handling

Fixes #17
Fixes #15
pull/25/head 0.4
Wilfred Hughes 2021-07-13 22:51:27 +07:00
parent 74c2b8e901
commit 8b382e4356
2 changed files with 8 additions and 3 deletions

@ -4,6 +4,9 @@
Improved parsing for Rust macro definitions and punctuation.
Improved parsing for OCaml punctuation, and added `.mli` as an OCaml
file extension.
### Diffing
Diff calculation is now significantly faster.

@ -106,14 +106,16 @@ close_delimiter_pattern = '(\]|\}|\))'
[OCaml]
extensions = ["ml"]
extensions = ["ml", "mli"]
atom_patterns = [
# Numbers
'[0-9]+',
# Symbols (e.g. variable names)
'[.a-zA-Z0-9_]+',
# Operators
'[?~=<>/*+-,&|]',
# Two character operators
'(->|&&|\|\|)',
# Single character operators
"[?~=<>/*+-,&|:']",
]
string_patterns = [
# Double-quoted strings