Sergey Romanov 5 gadi atpakaļ
vecāks
revīzija
0400efce32
2 mainītis faili ar 3 papildinājumiem un 3 dzēšanām
  1. 1 1
      src/st/st.test.ts
  2. 2 2
      src/st/st.ts

+ 1 - 1
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' },

+ 2 - 2
src/st/st.ts

@@ -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'],