[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Sun, 7 Apr 2019 18:09:24 -0400 (EDT)
Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:66.0) Gecko/20100101 Firefox/66.0
Follow-up Comment #11, bug #50920 (project gettext):
> I think it is not straightforward to determine the end of template strings,
because substitutions may be nested
The grammar in
http://www.ecma-international.org/ecma-262/6.0/#sec-template-literal is pretty
straightforward. Yes, it looks like template strings can be nested, just like
expressions can be nested by using parentheses.
> Maybe, it could be based on the backtick support in the shell-script
scanner, which takes into account of nesting.
No, the backtick support in the shell-script scanner has additional
complexities because a backslash inside `...` in shell scripts is different
it's not that hairy.
Reply to this item at:
Message sent via Savannah
Bruno Haible <=