Skip to content

Commit

Permalink
Improved OCaml handling
Browse files Browse the repository at this point in the history
Fixes #17
Fixes #15
  • Loading branch information
Wilfred committed Jul 14, 2021
1 parent 74c2b8e commit 8b382e4
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
8 changes: 5 additions & 3 deletions config/syntax.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 8b382e4

Please sign in to comment.