diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2021-05-12 14:41:47 +0200 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2021-05-12 21:04:47 +0200 |
commit | 28fb75efb1c7d3296f1477a95eb09b4dece29ece (patch) | |
tree | 714ba1eda1a652fd99ae576825b9189ea4e5acd9 | |
parent | content: Improve plural of terms (diff) | |
download | rtems-central-28fb75efb1c7d3296f1477a95eb09b4dece29ece.tar.bz2 |
validation: Support glossary term plurals
-rw-r--r-- | rtemsspec/validation.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/rtemsspec/validation.py b/rtemsspec/validation.py index 628b520f..71cffbae 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) |