Skip to content

Commit 3a0fdc4

Browse files
committed
polish LOOP keywords highlighting
Signed-off-by: Qingpeng Li <qingpeng9802@gmail.com>
1 parent 69e86ed commit 3a0fdc4

File tree

4 files changed

+7
-3
lines changed

4 files changed

+7
-3
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Change Log
22

3+
## [1.2.4] - 2023-06-27
4+
### Added
5+
- polish LOOP keywords highlighting
6+
37
## [1.2.3] - 2023-06-27
48
### Fixed
59
- fix non-alphabetic auto-completion

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"name": "Qingpeng Li",
77
"email": "qingpeng9802@gmail.com"
88
},
9-
"version": "1.2.3",
9+
"version": "1.2.4",
1010
"publisher": "qingpeng",
1111
"engines": {
1212
"vscode": "^1.63.0"

src/web/collect_info/collect_from_text/loop.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ function collectLoopVar(
109109

110110
const subStart = r.indices[4][0];
111111
const subText = text.substring(subStart, closedParenthese);
112-
const subMatchRes = subText.matchAll(/(?<=#'|\s|^)(for|as|with|named)\s*(([#:A-Za-z0-9\+\-\*\/\@\$\%\^\&\_\=\<\>\~\!\?\[\]\{\}\.]+)\s|(\())/igmd);
112+
const subMatchRes = subText.matchAll(/(?<=#'|\s|^)(for|as|with|into|named)\s*(([#:A-Za-z0-9\+\-\*\/\@\$\%\^\&\_\=\<\>\~\!\?\[\]\{\}\.]+)\s|(\())/igmd);
113113
for (const subR of subMatchRes) {
114114
if (subR.indices === undefined) {
115115
continue;

src/web/collect_info/loop_keywords.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ const loopKeywordsTokenMap = new Map<string, string | [string, string[]]>([
3838
['minimize', 'function'],
3939
['minimizing', 'function'],
4040
// used by value accumulation above
41-
['into', 'macro'],
41+
['into', 'keyword'],
4242
// macro End-Test Control Clause Keyword
4343
//['loop-finish', 'macro'],//colored
4444
// conditional execution

0 commit comments

Comments
 (0)