Skip to content

Commit

Permalink
fix in annotation registry
Browse files Browse the repository at this point in the history
  • Loading branch information
ffleurey committed Jun 15, 2020
1 parent 892ef54 commit c2d2df9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 18 deletions.
Original file line number Diff line number Diff line change
@@ -1,19 +1,3 @@
/*
* Licensed 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.
*
* See the NOTICE file distributed with this work for additional
* information regarding copyright ownership.
*/
define(["ace/lib/oop", "ace/mode/text", "ace/mode/text_highlight_rules"], function(oop, mText, mTextHighlightRules) {
var HighlightRules = function() {
var keywords = "abstract|action|and|as|composite|configuration|connector|datatype|do|else|end|entry|enumeration|error|errorln|event|exit|false|final|for|fork|fragment|from|function|guard|history|if|import|in|includes|init|instance|internal|keeps|message|not|object|on|optional|or|over|port|print|println|property|protocol|provided|readonly|receives|region|required|return|sends|session|set|state|statechart|thing|transition|true|var|while";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -175,14 +175,14 @@ public class AnnotationRegistry {
//@add_c_libraries
final String add_c_libraries_name = "add_c_libraries";
final String add_c_libraries_desc = "Adds a lib to the generated Makefile.";
final EClass add_c_libraries_scope[] = {ThingMLPackage.eINSTANCE.getThing()};
final EClass add_c_libraries_scope[] = {ThingMLPackage.eINSTANCE.getThing(), ThingMLPackage.eINSTANCE.getConfiguration()};
final Annotation add_c_libraries_annotation = new Annotation(add_c_libraries_name, add_c_libraries_desc, add_c_libraries_scope);
annotations.put(add_c_libraries_name, add_c_libraries_annotation);

//@add_c_modules
final String add_c_modules_name = "add_c_modules";
final String add_c_modules_desc = "Copy <modules>.c <modules>.h and add them to the generated Makefile";
final EClass add_c_modules_scope[] = {ThingMLPackage.eINSTANCE.getThing()};
final EClass add_c_modules_scope[] = {ThingMLPackage.eINSTANCE.getThing(), ThingMLPackage.eINSTANCE.getConfiguration()};
final Annotation add_c_modules_annotation = new Annotation(add_c_modules_name, add_c_modules_desc, add_c_modules_scope);
annotations.put(add_c_modules_name, add_c_modules_annotation);

Expand Down

0 comments on commit c2d2df9

Please sign in to comment.