aboutsummaryrefslogtreecommitdiff
path: root/ide/protocol
diff options
context:
space:
mode:
authorEmilio Jesus Gallego Arias2018-10-02 15:59:06 +0200
committerEmilio Jesus Gallego Arias2018-10-02 16:00:22 +0200
commit87d5e79baea4f3679a1429d2a2e128b564eec5d5 (patch)
treeb8c6f4999bbb806bcceaec22fbe482a839246cfd /ide/protocol
parente65d160d5fa4e0b8b5754b0925b0b5a880523bc5 (diff)
[ocaml] [lib] Remove some compatibility layers for OCaml < 4.03.0
Diffstat (limited to 'ide/protocol')
-rw-r--r--ide/protocol/xml_lexer.mll5
1 files changed, 1 insertions, 4 deletions
diff --git a/ide/protocol/xml_lexer.mll b/ide/protocol/xml_lexer.mll
index 4a52147e17..e8bf7e16ae 100644
--- a/ide/protocol/xml_lexer.mll
+++ b/ide/protocol/xml_lexer.mll
@@ -83,9 +83,6 @@ let error lexbuf e =
last_pos := lexeme_start lexbuf;
raise (Error e)
-[@@@ocaml.warning "-3"] (* String.lowercase_ascii since 4.03.0 GPR#124 *)
-let lowercase = String.lowercase
-[@@@ocaml.warning "+3"]
}
let newline = ['\n']
@@ -222,7 +219,7 @@ and entity = parse
{
let ident = lexeme lexbuf in
try
- Hashtbl.find idents (lowercase ident)
+ Hashtbl.find idents (String.lowercase_ascii ident)
with
Not_found -> "&" ^ ident
}