From 82feda053202c8d2a800762e885de9a06cdc486c Mon Sep 17 00:00:00 2001 From: Bogdan Haidu Date: Wed, 31 Dec 2025 07:49:08 +0200 Subject: [PATCH] includes apache license header on env file module for antlr generated files --- .../antlr4/coloring/EnvAntlrColoringLexer.g4 | 22 +++++++++++++++++- .../grammar/antlr4/parser/EnvAntlrLexer.g4 | 23 ++++++++++++++++++- .../grammar/antlr4/parser/EnvAntlrParser.g4 | 23 ++++++++++++++++++- 3 files changed, 65 insertions(+), 3 deletions(-) diff --git a/ide/languages.env/src/org/netbeans/modules/languages/env/grammar/antlr4/coloring/EnvAntlrColoringLexer.g4 b/ide/languages.env/src/org/netbeans/modules/languages/env/grammar/antlr4/coloring/EnvAntlrColoringLexer.g4 index 307f7f57c557..4dedabdf2817 100644 --- a/ide/languages.env/src/org/netbeans/modules/languages/env/grammar/antlr4/coloring/EnvAntlrColoringLexer.g4 +++ b/ide/languages.env/src/org/netbeans/modules/languages/env/grammar/antlr4/coloring/EnvAntlrColoringLexer.g4 @@ -18,7 +18,27 @@ */ lexer grammar EnvAntlrColoringLexer; -@header{package org.netbeans.modules.languages.env.grammar.antlr4.coloring;} +@header{ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +package org.netbeans.modules.languages.env.grammar.antlr4.coloring;} tokens { NL, diff --git a/ide/languages.env/src/org/netbeans/modules/languages/env/grammar/antlr4/parser/EnvAntlrLexer.g4 b/ide/languages.env/src/org/netbeans/modules/languages/env/grammar/antlr4/parser/EnvAntlrLexer.g4 index f4e1def01c43..4a900df23213 100644 --- a/ide/languages.env/src/org/netbeans/modules/languages/env/grammar/antlr4/parser/EnvAntlrLexer.g4 +++ b/ide/languages.env/src/org/netbeans/modules/languages/env/grammar/antlr4/parser/EnvAntlrLexer.g4 @@ -18,7 +18,28 @@ */ lexer grammar EnvAntlrLexer; -@header{package org.netbeans.modules.languages.env.grammar.antlr4.parser;} +@header{ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +package org.netbeans.modules.languages.env.grammar.antlr4.parser; +} tokens { NL, diff --git a/ide/languages.env/src/org/netbeans/modules/languages/env/grammar/antlr4/parser/EnvAntlrParser.g4 b/ide/languages.env/src/org/netbeans/modules/languages/env/grammar/antlr4/parser/EnvAntlrParser.g4 index f765448f43d7..6d545d6bfc6e 100644 --- a/ide/languages.env/src/org/netbeans/modules/languages/env/grammar/antlr4/parser/EnvAntlrParser.g4 +++ b/ide/languages.env/src/org/netbeans/modules/languages/env/grammar/antlr4/parser/EnvAntlrParser.g4 @@ -18,7 +18,28 @@ */ parser grammar EnvAntlrParser; -@header{package org.netbeans.modules.languages.env.grammar.antlr4.parser;} +@header{ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +package org.netbeans.modules.languages.env.grammar.antlr4.parser; +} options { superClass = ParserAdaptor;