mirror of
https://gitlab.gnome.org/jwestman/blueprint-compiler.git
synced 2025-05-06 16:19:07 -04:00
tokenizer: Fix multiline comment regex
This commit is contained in:
parent
7cab7da4bb
commit
3804d91118
4 changed files with 26 additions and 1 deletions
15
tests/samples/comments.blp
Normal file
15
tests/samples/comments.blp
Normal file
|
@ -0,0 +1,15 @@
|
|||
using Gtk 4.0;
|
||||
using GObject 2.0;
|
||||
|
||||
GObject.Object {
|
||||
/* multiline-style comment 1 */
|
||||
}
|
||||
|
||||
Gtk.Label {
|
||||
/* Translators: multiline-style comment 2 */
|
||||
label: _("Test"); // single-line comment
|
||||
/**/ visible: false; /**/
|
||||
}
|
||||
|
||||
/* Note: The output XML does not need to contain translator comments. The
|
||||
translation tooling reads blueprint files, not the generated files. */
|
Loading…
Add table
Add a link
Reference in a new issue