Pascal Obry
53cff2e1a8
Add default & alternate filters.
...
Add corresponding regression test and documentation.
2022-12-20 16:04:12 +01:00
Pascal Obry
8c2ba5dbd8
Minor reformatting.
2022-12-20 16:04:12 +01:00
Nicolas Boulenguez
3eb67d32ad
Avoid old ISO-8859 encoding in Ada sources
2022-12-14 09:39:59 +01:00
Pascal Obry
4284e33e3c
Fix MACRO tree rewrite.
...
We do not want to change the tree node in if conditional. Only
the TEXT nodes' values are to be changed.
Add corresponding regression test.
Found while working on V531-036.
2022-11-23 13:06:35 +01:00
Pascal Obry
9986f5a15b
Better output for the MACRO in print-tree.
...
Add all INLINE separators. Properly indent the END_INLINE.
2022-11-23 13:06:35 +01:00
Pascal Obry
50ae7d9f03
Minor reformatting.
2022-11-23 13:06:35 +01:00
Nicolas Setton
2e771e553a
Add a missing assignment
...
This solves a potential access to uninitialized variable
when processing an @@INLINE@@ statement.
2022-01-28 14:37:04 +00:00
Nicolas Setton
1307e70b13
Remove "pragma Unreferenced" for referenced variable
...
Flagged by the new compiler.
no-tn-check
2022-01-04 08:34:48 +00:00
Pascal Obry
e0fb4ba488
Make sure B_State is initialized before used.
...
The code is ok, but the compiler may issue a warning about possible
use before initialization.
Part of TA29-029.
2020-10-30 18:32:27 +01:00
Pascal Obry
577db6467c
Fix parsing of INLINE with double escaped characters.
...
Add corresponding regression test.
Fixes #37 .
2020-06-17 20:43:18 +02:00
Pascal Obry
02bf53e6eb
Minor reformatting.
2020-06-17 20:42:10 +02:00
Patschkowski
4bf1340fc9
Do not generate src/templates_parser-version.adb ( #35 )
...
Do not generate src/templates_parser-version.adb.
Instead pass the version information via the Binder's environment to the source code.
This way no code needs to be generated which makes the build process independent
from make.
2020-06-12 07:57:21 +02:00
Pascal Obry
57fa3fa69d
Handle include starting with ./ as relative to current directory.
...
A template file starting with ./ is now properly handled as
relative to the server current working directory.
Fixes a regression. Add corresponding regression test.
For T305-015.
2020-03-07 09:02:54 +01:00
Nicolas Boulenguez
29f5f4fbf6
Set version in Ada package from the Makefile variable.
...
This will simplify updates.
2020-03-06 18:21:52 +01:00
Pascal Obry
88525f472c
Fixes for table's attribute Align_On.
...
There was some cases where the alignment was not correct.
Add corresponding regression test.
Continued work for S717-003.
2019-09-18 14:59:05 +02:00
Pascal Obry
844cfcc630
Ensure that empty block do not get rewritten.
...
There is nothing to rewrite so we properly skip this step.
Update test accordingly.
Continued work for RC04-043.
Continued work for S717-003.
2019-07-24 18:34:01 +02:00
Pascal Obry
932928c62c
Change INLINE support to use the actual expanded content.
...
The inline support was done in the syntactic tree only. We now
only do the trimming at the syntax level and do the inlining on
the expanded block inside the INLINE command.
This fixes a bad interaction between INLINE and TABLE's Aling_On
attribute.
Add corresponding regression test.
Continued work for RC04-043.
Fixes S717-003.
2019-07-19 18:53:58 +02:00
Pascal Obry
469382629e
Minor reformatting and style fix.
2019-07-19 18:51:14 +02:00
Pascal Obry
90e51dc1ab
Fix crash when trying to parse a command with a space in a parameter.
...
Continued work for RC04-043.
2019-07-14 19:15:08 +02:00
Pascal Obry
e92905d3e2
Minor reformatting.
2019-07-14 19:14:29 +02:00
Pascal Obry
c90201a13a
Add report callbacks when parsing.
...
The callback is used to report Unused and/or Undefined tags. This make
it possible to implement some safety checks while parsing a template.
Add correspoinding regression test.
For RC04-043.
2019-06-13 22:46:07 +02:00
Pascal Obry
5128943cec
Fix detection of multiple tag attributes.
...
Fixes S507-056.
2019-05-10 22:58:11 +02:00
Pascal Obry
e662bfe7a5
Make sure the Align_On attribute works only in the table content.
...
Fix the starting point of the content of the table when applying
the alignment.
Add corresponding regression test.
For RC04-043.
2019-05-05 07:57:42 +02:00
Pascal Obry
7964ebbbc3
Fix handling of multiple table tag attributes.
...
Add corresponding regression test.
2019-05-04 10:46:05 +02:00
Pascal Obry
8e6136f3b6
Do not assume Aling_On Text parameter starts at 1.
...
Add corresponding regression test.
2019-05-04 10:46:04 +02:00