Fix tests

pull/2748/head
Sergey Romanov 5 years ago
parent fba61ffccf
commit 0400efce32

@ -37,7 +37,7 @@ testTokenization('st', [
]
}],
[{
line: "IF a > 2#0000_0110 THEN (* Somethign ' happens *)",
line: "IF a > 2#0000_0110 THEN (* Something ' happens *)",
tokens: [
{ startIndex: 0, type: 'keyword.st' },
{ startIndex: 2, type: 'white.st' },

@ -194,8 +194,8 @@ export const language = <ILanguage>{
[/\d+/, 'number'],
[/\b(T|DT|TOD)#[0-9:-_shmyd]+\b/, 'tag'],
[/\b\%(I|Q|M)(X|B|W|D|L)[0-9\.]+\b/, 'tag'],
[/\b\%(I|Q|M)[0-9\.]*\b/, 'tag'],
[/\%(I|Q|M)(X|B|W|D|L)[0-9\.]+/, 'tag'],
[/\%(I|Q|M)[0-9\.]*/, 'tag'],
[/\b[A-Za-z]{1,6}#[0-9]+\b/, 'tag'],
[/\b(TO_|CTU_|CTD_|CTUD_|MUX_|SEL_)[A_Za-z]+\b/, 'predefined'],

Loading…
Cancel
Save