From 8cd431fac541fd8f41a039cb6078b5792e709dbb Mon Sep 17 00:00:00 2001 From: Akos Kiss Date: Mon, 25 Nov 2024 02:26:01 +0100 Subject: [PATCH] Add tokenVocab option to separate parsers in tests to avoid ANTLR warnings --- tests/grammars/SeparateParser.g4 | 6 +++++- tests/grammars/UnicodePropertiesParser.g4 | 6 +++++- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/tests/grammars/SeparateParser.g4 b/tests/grammars/SeparateParser.g4 index 2a01fd9..ec28b8f 100644 --- a/tests/grammars/SeparateParser.g4 +++ b/tests/grammars/SeparateParser.g4 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2017-2023 Renata Hodovan, Akos Kiss. + * Copyright (c) 2017-2024 Renata Hodovan, Akos Kiss. * * Licensed under the BSD 3-Clause License * . @@ -19,6 +19,10 @@ parser grammar SeparateParser; +options { + tokenVocab = SeparateLexer; +} + start : TOKEN ; diff --git a/tests/grammars/UnicodePropertiesParser.g4 b/tests/grammars/UnicodePropertiesParser.g4 index 97a1cff..6a27aa5 100644 --- a/tests/grammars/UnicodePropertiesParser.g4 +++ b/tests/grammars/UnicodePropertiesParser.g4 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2023 Renata Hodovan, Akos Kiss. + * Copyright (c) 2023-2024 Renata Hodovan, Akos Kiss. * * Licensed under the BSD 3-Clause License * . @@ -18,4 +18,8 @@ parser grammar UnicodePropertiesParser; +options { + tokenVocab = UnicodePropertiesLexer; +} + start : UPROP GENERAL ENUM_BLOCK ENUM_SCRIPT INVERTED EXTRAS INVERTED_EXTRAS;