From 7ce69c7c911099fa7cd2bbec3cc891fdf72729f0 Mon Sep 17 00:00:00 2001 From: starwarswii Date: Thu, 17 Sep 2020 22:29:09 -0400 Subject: [PATCH] fixed lark.lark not accepting negative priorities using `SIGNED_INT` instead of `INT` more closely matches the the grammar used by lark in `load_grammar.py` --- examples/lark.lark | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/lark.lark b/examples/lark.lark index fef6b07..8c4fa75 100644 --- a/examples/lark.lark +++ b/examples/lark.lark @@ -49,7 +49,7 @@ REGEXP: /\/(?!\/)(\\\/|\\\\|[^\/\n])*?\/[imslux]*/ _NL: /(\r?\n)+\s*/ %import common.ESCAPED_STRING -> _STRING -%import common.INT -> NUMBER +%import common.SIGNED_INT -> NUMBER %import common.WS_INLINE COMMENT: /\s*/ "//" /[^\n]/*