[rtems-central commit] validation: Support glossary term plurals

Sebastian Huber sebh at rtems.org
Wed May 12 19:05:11 UTC 2021


Module:    rtems-central
Branch:    master
Commit:    28fb75efb1c7d3296f1477a95eb09b4dece29ece
Changeset: http://git.rtems.org/rtems-central/commit/?id=28fb75efb1c7d3296f1477a95eb09b4dece29ece

Author:    Sebastian Huber <sebastian.huber at embedded-brains.de>
Date:      Wed May 12 14:41:47 2021 +0200

validation: Support glossary term plurals

---

 rtemsspec/validation.py | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/rtemsspec/validation.py b/rtemsspec/validation.py
index 628b520..71cffba 100644
--- a/rtemsspec/validation.py
+++ b/rtemsspec/validation.py
@@ -34,7 +34,7 @@ import textwrap
 from typing import Any, Dict, Iterator, List, NamedTuple, Optional, Tuple
 
 from rtemsspec.content import CContent, CInclude, enabled_by_to_exp, \
-    ExpressionMapper, GenericContent, get_value_params, \
+    ExpressionMapper, GenericContent, get_value_params, get_value_plural, \
     get_value_doxygen_group, get_value_doxygen_function, to_camel_case
 from rtemsspec.items import is_enabled, Item, ItemCache, \
     ItemGetValueContext, ItemMapper
@@ -52,6 +52,7 @@ class _Mapper(ItemMapper):
     def __init__(self, item: Item):
         super().__init__(item)
         self._step = 0
+        self.add_get_value("glossary/term:/plural", get_value_plural)
         self.add_get_value("interface/function:/name",
                            get_value_doxygen_function)
         self.add_get_value("interface/function:/params/name", get_value_params)



More information about the vc mailing list