Parse comments between tokens v0.20.0
authorPhilippe Proulx <eeppeliteloop@gmail.com>
Tue, 10 Oct 2023 23:14:52 +0000 (19:14 -0400)
committerPhilippe Proulx <eeppeliteloop@gmail.com>
Tue, 10 Oct 2023 23:26:28 +0000 (19:26 -0400)
commitba11fb1d54eed503a11e9c31339eb2f68fe776e4
treee5da57888f4ddd095710a3369acbd0e6cec12b2c
parent7a7b31e8be53c34610148332c02b6da5790eca7a
Parse comments between tokens

This patch replaces many whitespace parsing between the individual
tokens of an item by whitespace and comment parsing.

This makes it possible to comment out parts of items:

    aa bb cc @#32#64#~ffh# 88

Result:

    aa bb cc 00 00 00 00 00 88

Moreover, insignificant symbols are only supported between and around
items, hexadecimal nibbles, and binary bits now. This is where they're
the most useful to improve readability, not between tokens of an item.
For example, this is not useful:

    s/:?latin1,"hello world"=*|5

The new `tests/pass-comment-all.nt` file tests comments in all positions
between eligible tokens.

Change-Id: I7167440723010c2549f614fc6ab41621df0fd8b4
Signed-off-by: Philippe Proulx <eeppeliteloop@gmail.com>
Reviewed-on: https://review.lttng.org/c/normand/+/11020
Tested-by: jenkins <jenkins@lttng.org>
README.adoc
normand/normand.py
pyproject.toml
tests/pass-comment-all.nt [new file with mode: 0644]
tests/pass-comment-rep-post.nt [new file with mode: 0644]
tests/pass-comment-sym-rep-post.nt [deleted file]
This page took 0.023897 seconds and 4 git commands to generate.