This is an automated email from the git hooks/post-receive script.

git pushed a commit to branch eolian/improvements
in repository efl.

View the commit online.

commit 5d38ebd02781dc1a2edb54b77e1eb8bf852cd322
Author: Cedric BAIL <[email protected]>
AuthorDate: Sat Nov 21 13:59:32 2026 -0600

    eolian: document styles and @deprecated
    
    check-grammar-doc failed on two keywords the grammar document never
    mentioned: the styles block and the @deprecated qualifier of methods
    and properties. Both are described now, from what the parser accepts
    and the validator checks.
    
    Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
---
 doc/eolian/grammar.md | 20 ++++++++++++++++++++
 1 file changed, 20 insertions(+)

diff --git a/doc/eolian/grammar.md b/doc/eolian/grammar.md
index 46f3a0eed8..2fa76d1aaf 100644
--- a/doc/eolian/grammar.md
+++ b/doc/eolian/grammar.md
@@ -226,6 +226,7 @@ class Efl.Ui.Button extends Efl.Ui.Layout_Base implements Efl.Ui.Clickable,
    methods { ... }
    events { ... }
    parts { ... }
+   styles { ... }
 }
 ```
 
@@ -252,6 +253,7 @@ class Efl.Ui.Button extends Efl.Ui.Layout_Base implements Efl.Ui.Clickable,
 | `methods` | the block of methods and properties |
 | `events` | the block of events |
 | `parts` | the block of named sub-objects |
+| `styles` | the block of theme styles the class accepts |
 
 `data: null` says the class carries no private data. It is required, not optional — a
 class that stores nothing must say so.
@@ -391,6 +393,7 @@ Every `@` keyword, and what it means.
 |---|---|
 | `@protected` | callable by subclasses, not by applications |
 | `@private` | internal |
+| `@deprecated` | the one of two that is kept for compatibility, since a stable member cannot be renamed: the generated C declaration carries `EINA_DEPRECATED`, so C callers are warned and keep working, and `eolian_function_is_deprecated` lets a binding generator leave it out. Once per method or property, in any order with the other qualifiers. Not the same as `@beta` |
 | `@const` | does not modify the object |
 | `@static` | no object receiver; a package-level function |
 | `@pure_virtual` | declared here, implemented by whoever inherits |
@@ -428,6 +431,23 @@ parts {
 A part is a named sub-object reachable through `efl_part(obj, "icon")`. Declaring it
 tells bindings the name exists and what class comes back.
 
+### Styles
+
+```eo
+styles {
+   busy_bar; [[A bar sliding along the bottom edge while busy.]]
+   busy_spinner @beta; [[A spinner. Not stable yet.]]
+}
+```
+
+A style is a theme variant, a name the theme has a group for, that the class accepts as
+its `style` property. Each entry is a name, an optional `@beta`, a `;` and its
+documentation. A name appears once in a class: a second declaration is an error, as it
+would be the one variant described twice. `eolian_class_styles_get` lists them, and the
+C header gets a constant named after the class and the style
+(`EFL_UI_TEXTBOX_STYLE_BUSY_BAR`, `"busy_bar"`). The block, like every other, appears
+once in a class.
+
 ## 9. Literals
 
 `true`, `false`, `null`, integers, floats, characters and strings, plus `.` and `:` for

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.

Reply via email to