Skip to content

Update jsligo identifiers

E. Rivas requested to merge er433/fix/jsligo-ident into dev

This MR modifies jsligo's identifiers to match the rest of the languages.

In !1078 (merged) idents where updated, allowing _, just before jsligo merged. With this mismatch, a lexing failure occurs in some erroneous cases:

$ cat foo.jsligo 
let x{_x : int = 42
$ dune exec -- ligo print-mini-c foo.jsligo
ligo: internal error, uncaught exception:
      (Failure "lexing: empty token")
      Raised by primitive operation at file "lexing.ml", line 65, characters 15-37
      Called from file "src/passes/01-lexing/jsligo/Token.ml", line 726, characters 8-65
      Called from file "src/passes/01-lexing/shared/Lexer.mll", line 155, characters 12-40
      Called from file "src/passes/01-lexing/shared/Lexer.mll", line 316, characters 20-36
      Called from file "vendors/LexerLib/Core.mll", line 367, characters 8-22
      Called from file "vendors/LexerLib/Core.mll", line 361, characters 16-32
      Called from file "vendors/LexerLib/Core.mll", line 367, characters 8-22
      Called from file "vendors/LexerLib/Core.mll", line 390, characters 23-41
      Called from file "vendors/LexerLib/Core.mll", line 361, characters 16-32
      Called from file "vendors/LexerLib/API.ml", line 125, characters 20-36
      Called from file "vendors/LexerLib/API.ml", line 132, characters 25-38
      Called from file "src/passes/01-lexing/shared/LexerMainGen.ml", line 153, characters 26-65
      Called from file "vendors/ParserLib/API.ml", line 107, characters 12-24
      Called from file "lib/pack/menhirLib.ml", line 1555, characters 18-30
      Called from file "lib/pack/menhirLib.ml", line 1612, characters 21-27
      Called from file "vendors/ParserLib/API.ml", line 206, characters 22-42
      Called from file "src/passes/02-parsing/shared/Common.ml", line 147, characters 8-46
      Called from file "src/main/compile/helpers.ml", line 147, characters 4-46
      Called from file "src/main/compile/helpers.ml", line 177, characters 4-39
      Called from file "vendors/ligo-utils/simple-utils/trace.ml", line 237, characters 11-14
      Called from file "src/main/compile/utils.ml", line 9, characters 24-64
      Called from file "src/main/compile/utils.ml", line 13, characters 24-69
      Called from file "src/main/compile/utils.ml", line 18, characters 20-60
      Called from file "src/main/build/build.ml", line 117, characters 22-80
      Called from file "vendors/ligo-utils/simple-utils/trace.ml", line 237, characters 11-14
      Called from file "src/main/build/build.ml", line 126, characters 48-128
      Called from file "vendors/ligo-utils/simple-utils/trace.ml", line 237, characters 11-14
      Called from file "list.ml", line 121, characters 24-34
      Called from file "src/main/build/build.ml", line 153, characters 26-110
      Called from file "vendors/ligo-utils/simple-utils/trace.ml", line 237, characters 11-14
      Called from file "vendors/ligo-utils/simple-utils/trace.ml", line 237, characters 11-14
      Called from file "src/main/build/build.ml", line 159, characters 28-83
      Called from file "src/bin/cli.ml", line 424, characters 26-76
      Called from file "vendors/ligo-utils/simple-utils/trace.ml", line 237, characters 11-14
      Called from file "src/bin/cli.ml", line 419, characters 6-580
      Called from file "cmdliner_term.ml", line 25, characters 19-24
      Called from file "cmdliner.ml", line 26, characters 27-34
      Called from file "cmdliner.ml", line 117, characters 32-39
Edited by E. Rivas

Merge request reports