From 54f87924f9e7dc5dcc60b201f32799c2d3988ef9 Mon Sep 17 00:00:00 2001 From: Laurent Bossavit Date: Fri, 29 Sep 2017 23:45:10 +0200 Subject: [PATCH] :bug: Un identifiant de variable ne peut commencer par une apostrophe --- source/engine/grammar.ne | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/engine/grammar.ne b/source/engine/grammar.ne index 3134d05d7..e255c43ec 100644 --- a/source/engine/grammar.ne +++ b/source/engine/grammar.ne @@ -72,7 +72,7 @@ Constant -> "'" [ .'a-zA-Z\u00C0-\u017F ]:+ "'" {% d => ({ VariableFragment -> VariableWord (_ VariableWord {% d=> ' ' + d[1] %}):* {% d => d[0] + d[1].join('') %} -VariableWord -> ['a-zA-Z\u00C0-\u017F]:+ {% d => d[0].join('') %} +VariableWord -> [a-zA-Z\u00C0-\u017F] ['a-zA-Z\u00C0-\u017F]:* {% d => d[0] + d[1].join('') %} Dot -> [\.] {% d => null %}