diff options
author | Juergen Haug | 2017-07-17 20:46:22 +0000 |
---|---|---|
committer | Juergen Haug | 2017-07-21 14:09:42 +0000 |
commit | 5e3d77e69e5c353ad11395813505959bb2df12aa (patch) | |
tree | 4188f46e6de667b5f846f0024d4aedb52af6e910 /plugins/org.eclipse.etrice.core.fsm/src-gen/org/eclipse/etrice/core/fsm/parser/antlr/internal/InternalFSM.g | |
parent | edfa0050af236c45465f0330f840dd16ef789a8f (diff) | |
download | org.eclipse.etrice-5e3d77e69e5c353ad11395813505959bb2df12aa.tar.gz org.eclipse.etrice-5e3d77e69e5c353ad11395813505959bb2df12aa.tar.xz org.eclipse.etrice-5e3d77e69e5c353ad11395813505959bb2df12aa.zip |
[targetLang] added ccstring with highlight and smart indentation
Change-Id: Ic5faeb91a39114f196f07c43f533a456bd9b90db
Diffstat (limited to 'plugins/org.eclipse.etrice.core.fsm/src-gen/org/eclipse/etrice/core/fsm/parser/antlr/internal/InternalFSM.g')
-rw-r--r-- | plugins/org.eclipse.etrice.core.fsm/src-gen/org/eclipse/etrice/core/fsm/parser/antlr/internal/InternalFSM.g | 33 |
1 files changed, 27 insertions, 6 deletions
diff --git a/plugins/org.eclipse.etrice.core.fsm/src-gen/org/eclipse/etrice/core/fsm/parser/antlr/internal/InternalFSM.g b/plugins/org.eclipse.etrice.core.fsm/src-gen/org/eclipse/etrice/core/fsm/parser/antlr/internal/InternalFSM.g index 68bd38f3a..7946b8e17 100644 --- a/plugins/org.eclipse.etrice.core.fsm/src-gen/org/eclipse/etrice/core/fsm/parser/antlr/internal/InternalFSM.g +++ b/plugins/org.eclipse.etrice.core.fsm/src-gen/org/eclipse/etrice/core/fsm/parser/antlr/internal/InternalFSM.g @@ -935,17 +935,17 @@ ruleDetailCode returns [EObject current=null] @init { enterRule(); } @after { leaveRule(); }: -(( +((( { $current = forceCreateModelElement( - grammarAccess.getDetailCodeAccess().getDetailCodeAction_0(), + grammarAccess.getDetailCodeAccess().getDetailCodeAction_0_0(), $current); } -)( +)(( ( lv_used_1_0= '{' { - newLeafNode(lv_used_1_0, grammarAccess.getDetailCodeAccess().getUsedLeftCurlyBracketKeyword_1_0()); + newLeafNode(lv_used_1_0, grammarAccess.getDetailCodeAccess().getUsedLeftCurlyBracketKeyword_0_1_0_0()); } { @@ -960,7 +960,7 @@ ruleDetailCode returns [EObject current=null] ( lv_lines_2_0=RULE_STRING { - newLeafNode(lv_lines_2_0, grammarAccess.getDetailCodeAccess().getLinesSTRINGTerminalRuleCall_2_0()); + newLeafNode(lv_lines_2_0, grammarAccess.getDetailCodeAccess().getLinesSTRINGTerminalRuleCall_0_1_1_0()); } { if ($current==null) { @@ -976,9 +976,28 @@ ruleDetailCode returns [EObject current=null] ) )* otherlv_3='}' { - newLeafNode(otherlv_3, grammarAccess.getDetailCodeAccess().getRightCurlyBracketKeyword_3()); + newLeafNode(otherlv_3, grammarAccess.getDetailCodeAccess().getRightCurlyBracketKeyword_0_1_2()); } +)) + |( +( + lv_lines_4_0=RULE_CC_STRING + { + newLeafNode(lv_lines_4_0, grammarAccess.getDetailCodeAccess().getLinesCC_STRINGTerminalRuleCall_1_0()); + } + { + if ($current==null) { + $current = createModelElement(grammarAccess.getDetailCodeRule()); + } + addWithLastConsumed( + $current, + "lines", + lv_lines_4_0, + "org.eclipse.etrice.core.common.Base.CC_STRING"); + } + ) +)?) ; @@ -3950,6 +3969,8 @@ ruleLiteralType returns [Enumerator current=null] RULE_HEX : ('0x'|'0X') ('0'..'9'|'a'..'f'|'A'..'F')+; +RULE_CC_STRING : '\'\'\'' ( options {greedy=false;} : . )*'\'\'\''; + RULE_ID : '^'? ('a'..'z'|'A'..'Z'|'_') ('a'..'z'|'A'..'Z'|'_'|'0'..'9')*; RULE_INT : ('0'..'9')+; |