diff --git a/blueprintcompiler/language/values.py b/blueprintcompiler/language/values.py index 3204694..626a337 100644 --- a/blueprintcompiler/language/values.py +++ b/blueprintcompiler/language/values.py @@ -27,14 +27,13 @@ from .contexts import ScopeCtx, ValueTypeCtx class Translated(AstNode): grammar = AnyOf( - ["_", "(", UseQuoted("string"), Optional(","), ")"], + ["_", "(", UseQuoted("string"), ")"], [ "C_", "(", UseQuoted("context"), ",", UseQuoted("string"), - Optional(","), ")", ], ) diff --git a/docs/reference/values.rst b/docs/reference/values.rst index 6a0499c..180baf3 100644 --- a/docs/reference/values.rst +++ b/docs/reference/values.rst @@ -80,7 +80,7 @@ Translated Strings .. rst-class:: grammar-block - Translated = ( '_' '(' `> ','? ')' ) | ( '\C_' '(' `> ',' `> ','? ')' ) + Translated = ( '_' '(' `> ')' ) | ( '\C_' '(' `> ',' `> ')' ) Use ``_("...")`` to mark strings as translatable. You can put a comment for translators on the line above if needed.