File tree Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -23,13 +23,13 @@ export class PortBehaviorValidator {
23
23
// Regex that validates a set statement.
24
24
// Has the label type and label value that should be set as capturing groups.
25
25
private static readonly SET_REGEX =
26
- / ^ s e t + ( [ A - Z a - z ] [ A - Z a - z 0 - 9 _ ] * ) \. ( [ A - Z a - z ] [ A - Z a - z 0 - 9 _ ] * ) * = * (?: + | ! | T R U E | F A L S E | \| \| | & & | \( | \) | [ A - Z a - z ] [ A - Z a - z 0 - 9 _ ] * (?: \. [ A - Z a - z ] [ A - Z a - z 0 - 9 _ ] * ) { 2 } ) + $ / ;
26
+ / ^ s e t + ( [ A - Z a - z ] [ A - Z a - z 0 - 9 _ ] * ) \. ( [ A - Z a - z ] [ A - Z a - z 0 - 9 _ ] * ) * = * (?: + | ! | T R U E | F A L S E | \| \| | & & | \( | \) | [ A - Z a - z ] [ A - Z a - z 0 - 9 _ \| ] * (?: \. [ A - Z a - z ] [ A - Z a - z 0 - 9 _ ] * ) { 2 } ) + $ / ;
27
27
// Regex that is used to extract all inputs, their label types and label values from a set statement.
28
28
// Each input is a match with the input name, label type and label value as capturing groups.
29
29
private static readonly SET_REGEX_EXPRESSION_INPUTS =
30
- / ( [ A - Z a - z ] [ A - Z a - z 0 - 9 _ ] * ) \. ( [ A - Z a - z ] [ A - Z a - z 0 - 9 _ ] * ) \. ( [ A - Z a - z ] [ A - Z a - z 0 - 9 _ ] * ) / g;
30
+ / ( [ A - Z a - z ] [ A - Z a - z 0 - 9 _ \| ] * ) \. ( [ A - Z a - z ] [ A - Z a - z 0 - 9 _ ] * ) \. ( [ A - Z a - z ] [ A - Z a - z 0 - 9 _ ] * ) / g;
31
31
// Regex matching alphanumeric characters.
32
- public static readonly REGEX_ALPHANUMERIC = / [ A - Z a - z 0 - 9 _ ] + / ;
32
+ public static readonly REGEX_ALPHANUMERIC = / [ A - Z a - z 0 - 9 _ \| ] + / ;
33
33
34
34
constructor ( @inject ( LabelTypeRegistry ) @optional ( ) private readonly labelTypeRegistry ?: LabelTypeRegistry ) { }
35
35
Original file line number Diff line number Diff line change @@ -103,7 +103,7 @@ const dfdBehaviorLanguageMonarchDefinition: monaco.languages.IMonarchLanguage =
103
103
root : [
104
104
// keywords and identifiers
105
105
[
106
- / [ a - z A - Z _ $ ] [ \w $ ] * / ,
106
+ / [ a - z A - Z _ \| $ ] [ \w $ ] * / ,
107
107
{
108
108
cases : {
109
109
"@keywords" : "keyword" ,
Original file line number Diff line number Diff line change @@ -54,7 +54,7 @@ export class DfdInputPortImpl extends SPortImpl {
54
54
if ( edgeNames . length === 0 ) {
55
55
return undefined ;
56
56
} else {
57
- return edgeNames . sort ( ) . join ( "_ " ) ;
57
+ return edgeNames . sort ( ) . join ( "| " ) ;
58
58
}
59
59
}
60
60
You can’t perform that action at this time.
0 commit comments