diff --git a/src/st/st.test.ts b/src/st/st.test.ts index cc8f8eba..bdf6abc0 100644 --- a/src/st/st.test.ts +++ b/src/st/st.test.ts @@ -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' }, diff --git a/src/st/st.ts b/src/st/st.ts index 16eb60d0..95446872 100644 --- a/src/st/st.ts +++ b/src/st/st.ts @@ -194,8 +194,8 @@ export const language = { [/\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'],