Skip to content

Commit 592ed11

Browse files
committed
bugfix: 寻找子程序出错的问题
1 parent b2e510b commit 592ed11

File tree

3 files changed

+5
-6
lines changed

3 files changed

+5
-6
lines changed

CHANGELOG.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,14 @@
11
# Change Log
22

3-
All notable changes to the "masm-tasm" extension will be documented in this file. Welcome [issue](https://github.com/xsro/masm-tasm/issues) and PR
4-
5-
## welcome any feedback
3+
## welcome any feedback [issue](https://github.com/xsro/masm-tasm/issues)
64

75
## 0.2.1
86

97
- [x] `dosbox here`增加了一个命令以在当前文件所在目录下打开dosbox,来提供更加自由的操作,见demo
108
- [x] 优化diagnose对fatal类错误的匹配,优化大纲视图
119
- [x] 提供代码格式化功能(需要完善并且现在的效果并不是很好)
1210
- [x] 提供查找引用功能(目前也并不完美)
11+
- [ ] webpack打包(nls部分总是失败)
1312

1413
鉴于这些功能目前可能不完善,你可以在设置中关闭他们(关闭后需要手动重启)
1514

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
[中文](https://github.com/xsro/masm-tasm/blob/master/doc/README_zh.md)|[English](https://github.com/xsro/masm-tasm/blob/master/README.md)
44

5-
Language support for DOS assembly,maybe suitable for studying MASM/TASM and the course <*principles& peripheral technology of microprocessor*>.
5+
Language support for DOS assembly,may be suitable for studying MASM/TASM and the course <*principles& peripheral technology of microprocessor*>.
66

77
- Offer *grammar*,basic *outline* view and *hover* support for DOS assembly language
88
- Support both **TASM and MASM** assembler tools: choose MASM or TASM in the preference
@@ -71,7 +71,7 @@ Linux and other OS user do not need folder dosbox and player. Instead, we should
7171

7272
```sh
7373
sudo apt install dosbox #install dosbox
74-
dosbox #if successfully opened the dosbox, this means the extension can work
74+
dosbox #if successfully opened the dosbox, it is largely possible for the extension to use dosbox
7575
```
7676

7777
### About use of DOSBox

src/language/wordinfo.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ export function getrefer(word: string, doc: vscode.TextDocument): vscode.Locatio
2929
let start = item.str.indexOf(word)
3030
r = new vscode.Range(index, start, index, start + word.length)
3131
}
32-
if (def?.type === symboltype.procedure || def?.type === symboltype.label && item.operand === word) {
32+
if ((def?.type === symboltype.procedure || def?.type === symboltype.label) && item.operand === word) {
3333
let start = item.str.indexOf(word)
3434
r = new vscode.Range(index, start, index, start + word.length)
3535
}

0 commit comments

Comments
 (0)