@@ -28,7 +28,7 @@ export const expressionLanguageLinterSource = (state: EditorState) => {
28
28
diagnostics . push ( { from, to : node . node . parent ?. parent ?. to ?? to , severity : 'error' , message : `Expression expected` } ) ;
29
29
} else {
30
30
const type = / ^ [ a - z A - Z _ ] + [ a - z A - Z _ 0 - 9 ] * $ / . test ( identifier ) ? 'identifier' : 'operator' ;
31
- diagnostics . push ( { from, to, severity : 'error' , message : `Unexpected ${ type } ' ${ identifier } ' ` } ) ;
31
+ diagnostics . push ( { from, to, severity : 'error' , message : `Unexpected ${ type } <code> ${ identifier } </code> ` } ) ;
32
32
}
33
33
34
34
return ;
@@ -66,7 +66,7 @@ export const expressionLanguageLinterSource = (state: EditorState) => {
66
66
identifier = state . sliceDoc ( from , to ) ;
67
67
68
68
if ( ! types . find ( type => resolveIdentifier ( id , identifier , config . types ?. [ type ] ) ) ) {
69
- diagnostics . push ( { from, to, severity : 'error' , message : `${ node . name } " ${ identifier } " not found in ${ types . join ( '|' ) } ` } ) ;
69
+ diagnostics . push ( { from, to, severity : 'error' , message : `${ node . name } <code> ${ identifier } </code> not found in <code> ${ types . join ( '|' ) } </code> ` } ) ;
70
70
}
71
71
72
72
break ;
@@ -75,14 +75,14 @@ export const expressionLanguageLinterSource = (state: EditorState) => {
75
75
case Function :
76
76
identifier = state . sliceDoc ( from , node . node . firstChild ? node . node . firstChild . from - 1 : to ) ;
77
77
if ( ! resolveIdentifier ( id , identifier , config ) ) {
78
- diagnostics . push ( { from, to, severity : 'error' , message : `${ node . node . name } " ${ identifier } " not found` } ) ;
78
+ diagnostics . push ( { from, to, severity : 'error' , message : `${ node . node . name } <code> ${ identifier } </code> not found` } ) ;
79
79
}
80
80
81
81
break ;
82
82
}
83
83
84
84
if ( identifier && node . node . parent ?. type . isError ) {
85
- diagnostics . push ( { from, to, severity : 'error' , message : `Unexpected identifier " ${ identifier } " ` } ) ;
85
+ diagnostics . push ( { from, to, severity : 'error' , message : `Unexpected identifier <code> ${ identifier } </code> ` } ) ;
86
86
}
87
87
} ) ;
88
88
0 commit comments