Fixes #114
@ -1,5 +1,9 @@
## 0.18 (unreleased)
### Parsing
Fixed an issue with missing positions in OCaml attribute syntax.
### Display
Fixed display issues where lines were printed more than once.
@ -12,3 +12,9 @@ let do_stuff x =
let stuffs y =
y + 1
type thing =
| X [@visitor.opaque]
| Y
[@@visitor.opaque]
@ -14,3 +14,7 @@ let do_stuff x =
| X
@ -68,7 +68,13 @@ extern "C" {
}
// TODO: begin/end and object/end.
const OCAML_ATOM_NODES: [&str; 4] = ["character", "string", "tag", "type_variable"];
const OCAML_ATOM_NODES: [&str; 5] = [
"character",
"string",
"tag",
"type_variable",
"attribute_id",
];
pub fn from_language(language: guess::Language) -> TreeSitterConfig {
use guess::Language::*;