Commit af3874d1 authored by Philip Makedonski's avatar Philip Makedonski
Browse files

+ fixes for ide integration

* updated activator meta-data for ui
* fixed test sample
+ added repository reference to orbit
+ added keywords to web editor
parent 06895eb4
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -8,4 +8,5 @@
	</feature>
	<category-def name="main" label="TTCN3"/>
	<category-def name="main.source" label="TTCN3 (Sources)"/>
	<repository-reference location="https://download.eclipse.org/tools/orbit/simrel/orbit-aggregation/2024-09" enabled="true" />
</site>
+3 −1
Original line number Diff line number Diff line
@@ -21,7 +21,9 @@ class TTCN3ParsingTest {
	@Test
	def void loadModel() {
		val result = parseHelper.parse('''
			Hello Xtext!
			module Sample { 
				const integer c_sample := 1;
			}
		''')
		Assertions.assertNotNull(result)
		val errors = result.eResource.errors
+1 −1
Original line number Diff line number Diff line
@@ -19,7 +19,7 @@ Require-Bundle: de.ugoe.cs.swe.TTCN3;visibility:=reexport,
 org.eclipse.xtext.builder
Import-Package: org.apache.log4j
Bundle-RequiredExecutionEnvironment: JavaSE-21
Bundle-Activator: de.ugoe.cs.swe.ui.internal.TTCN3Activator
Bundle-Activator: de.ugoe.cs.swe.TTCN3.ui.internal.TTCN3Activator
Export-Package: de.ugoe.cs.swe.ui.quickfix,
 de.ugoe.cs.swe.ui.contentassist,
 de.ugoe.cs.swe.TTCN3.ui.internal
+1 −1
Original line number Diff line number Diff line
define(["ace/lib/oop", "ace/mode/text", "ace/mode/text_highlight_rules"], function(oop, mText, mTextHighlightRules) {
	var HighlightRules = function() {
		var keywords = "bit2hex|bit2int|bit2oct|bit2str|char2int|char2oct|decvalue|decvalue_unichar|encvalue|encvalue_unichar|enum2int|error|fail|float2int|friend|hex2bit|hex2int|hex2oct|hex2str|inconc|int2bit|int2char|int2enum|int2float|int2hex|int2oct|int2str|int2unichar|isbound|ischosen|ispresent|isvalue|lengthof|none|oct2bit|oct2char|oct2hex|oct2int|oct2str|oct2unichar|pass|private|public|regexp|replace|rnd|sizeof|str2float|str2hex|str2int|str2oct|substr|testcasename|unichar2int|unichar2oct|and|or|xor|and4b|xor4b|or4b|not|not4b|mod|rem|@index|@deterministic|@lazy|@fuzzy|@nocase|self|__FILE__|__LINE__|__BFILE__|__SCOPE__|__MODULE__|null|module|encode|variant|display|extension|override|optional|with|const|boolean|integer|language|type|record|union|set|of|enumerated|length|port|message|all|procedure|mixed|component|extends|template|modifies|pattern|complement|subset|superset|permutation|ifpresent|present|infinity|match|valueof|function|return|runs|on|mtc|signature|exception|noblock|testcase|system|execute|altstep|import|except|recursive|group|external|modulepar|control|var|timer|done|killed|running|create|alive|connect|disconnect|map|unmap|start|kill|send|to|call|nowait|reply|raise|receive|from|value|sender|trigger|getcall|param|getreply|check|catch|clear|stop|halt|any|checkstate|read|timeout|bitstring|octetstring|hexstring|verdicttype|float|address|default|anytype|charstring|universal|char|not_a_number|omit|in|out|inout|setverdict|getverdict|action|alt|interleave|label|goto|repeat|activate|deactivate|break|continue|log|for|while|do|if|else|select|case|";
		var keywords = "bit2hex|bit2int|bit2oct|bit2str|char2int|char2oct|decvalue|decvalue_unichar|encvalue|encvalue_unichar|enum2int|error|fail|float2int|friend|hex2bit|hex2int|hex2oct|hex2str|inconc|int2bit|int2char|int2enum|int2float|int2hex|int2oct|int2str|int2unichar|isbound|ischosen|ispresent|isvalue|lengthof|none|oct2bit|oct2char|oct2hex|oct2int|oct2str|oct2unichar|pass|private|public|regexp|replace|rnd|sizeof|str2float|str2hex|str2int|str2oct|substr|testcasename|unichar2int|unichar2oct";
		this.$rules = {
			"start": [
				{token: "keyword", regex: "\\b(?:" + keywords + ")\\b"}