Ver código fonte

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`
tags/gm/2021-09-23T00Z/github.com--lark-parser-lark/0.10.0
starwarswii 4 anos atrás
committed by GitHub
pai
commit
7ce69c7c91
Nenhuma chave conhecida encontrada para esta assinatura no banco de dados ID da chave GPG: 4AEE18F83AFDEB23
1 arquivos alterados com 1 adições e 1 exclusões
  1. +1
    -1
      examples/lark.lark

+ 1
- 1
examples/lark.lark Ver arquivo

@@ -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]/*


Carregando…
Cancelar
Salvar