|
@@ -1315,7 +1315,7 @@ export const initMybatis = () => {
|
|
|
{ include: '@strings' },
|
|
|
{ include: '@complexIdentifiers' },
|
|
|
{ include: '@scopes' },
|
|
|
- [/(<)(where|set|foreach|if|trim)/, ['delimiter', { token: 'tag', next: '@xml' }]],
|
|
|
+ [/(<)(where|set|foreach|if|trim|elseif|else)/, ['delimiter', { token: 'tag', next: '@xml' }]],
|
|
|
[/[;,.]/, 'delimiter'],
|
|
|
[/[()]/, '@brackets'],
|
|
|
[
|
|
@@ -1409,10 +1409,10 @@ export const initMybatis = () => {
|
|
|
}
|
|
|
],
|
|
|
[/[ \t\r\n]+/],
|
|
|
- [/(<\/)(where|if|set|foreach|trim)(>)/, ['delimiter', 'tag', { token: 'delimiter', next: '@pop' }]]
|
|
|
+ [/(<\/)(where|if|set|foreach|trim|elseif|else)(>)/, ['delimiter', 'tag', { token: 'delimiter', next: '@pop' }]]
|
|
|
],
|
|
|
xmlEmbedded: [
|
|
|
- [/<\/(where|if|set|foreach|trim)/, { token: 'tag', next: '@pop', nextEmbedded: '@pop' }],
|
|
|
+ [/<\/(where|if|set|foreach|trim|elseif|else)/, { token: 'tag', next: '@pop', nextEmbedded: '@pop' }],
|
|
|
[/[^<]+/, '']
|
|
|
]
|
|
|
}
|