diff options
| author | Gaëtan Gilbert | 2019-10-30 15:41:41 +0100 |
|---|---|---|
| committer | Gaëtan Gilbert | 2019-10-30 17:57:38 +0100 |
| commit | a6e7775b67fe8f82d31d16777559940d6675c94d (patch) | |
| tree | adf07705cdfd445e7f8bfed6e2eb0cb55d83a349 /doc/sphinx | |
| parent | dbcdc4e53758339d2a7eb96d19fbcffeb143154d (diff) | |
Implement the unsupported attribute error using the warning system
This means we can disable it to ignore unsupported attributes. For
instance this would be useful if we change some behaviour of `Cmd` and add an
attribute `att` to restore the old behaviour, then `#[att] Cmd` is
backwards compatible if the warning is disabled.
Diffstat (limited to 'doc/sphinx')
| -rw-r--r-- | doc/sphinx/language/gallina-specification-language.rst | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/doc/sphinx/language/gallina-specification-language.rst b/doc/sphinx/language/gallina-specification-language.rst index ae9d284661..dd65d4aeb3 100644 --- a/doc/sphinx/language/gallina-specification-language.rst +++ b/doc/sphinx/language/gallina-specification-language.rst @@ -1556,6 +1556,11 @@ the following attributes names are recognized: now foo. Abort. +.. warn:: Unsupported attribute + + This warning is an error by default. It is caused by using a + command with some attribute it does not understand. + .. [1] This is similar to the expression “*entry* :math:`\{` sep *entry* :math:`\}`” in standard BNF, or “*entry* :math:`(` sep *entry* |
