Implement array value

Adds ArrayValue docs, and tests for diagnostics.
This commit is contained in:
Diego Augusto S. C 2023-11-03 19:10:12 -03:00 committed by Sonny Piers
parent f1cf70b6eb
commit 14be727777
12 changed files with 115 additions and 4 deletions

View file

@ -145,7 +145,6 @@ Example
label: _("This is an advanced feature. Use with caution!");
}
.. _Syntax ObjectValue:
Object Values
@ -170,3 +169,14 @@ String Values
StringValue = :ref:`Translated<Syntax Translated>` | :ref:`QuotedLiteral<Syntax Literal>`
Menus, as well as some :ref:`extensions<Syntax Extension>`, have properties that can only be string literals or translated strings.
.. _Syntax ArrayValue:
Array Values
-------------
.. rst-class:: grammar-block
ArrayValue = '[' (:ref:`StringValue<Syntax StringValue>`),* ']'
For now, it only supports :ref:`Strings<Syntax StringValue>`. This is because Gtk.Builder only supports string arrays.