Skip to content

Commit

Permalink
Regression fixed: issue #30 and what's new command.
Browse files Browse the repository at this point in the history
  • Loading branch information
maziac committed Jan 10, 2021
1 parent 03ff2f0 commit 889298b
Show file tree
Hide file tree
Showing 7 changed files with 14 additions and 6 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Changelog

# 1.6.2
- Regression fixed: Issue #30: Goto definition to local label not working
- Regression fixed: what's new command.

# 1.6.1
- Fixed: missing manifest.

Expand All @@ -9,6 +13,7 @@
# 1.5.9
- Added syntax highlighting for SLDOPT sjasmplus keyword thanks to kborowinski.
- Fixed sjasmplus OUTEND highlighting thanks to kborowinski.

# 1.5.8
- Fixed #46: Syntax highlighting: clash of Z80 vs. x86
- Added syntax highlighting for DeZog WPMEM, LOGPOINT and ASSERTION.
Expand Down
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "asm-code-lens",
"displayName": "ASM Code Lens",
"version": "1.6.1",
"version": "1.6.2",
"publisher": "maziac",
"description": "A language server that enables code lens, references, hover information, symbol renaming and the outline view for assembler files.",
"author": {
Expand Down
Binary file added releases/asm-code-lens-1.6.2.vsix
Binary file not shown.
3 changes: 3 additions & 0 deletions src/extension.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@ export function activate(context: vscode.ExtensionContext) {
// Major or minor version changed so show the whatsnew page.
new WhatsNewView();
}
// Register the additional command to view the "Whats' New" page.
context.subscriptions.push(vscode.commands.registerCommand("asm-code-lens.whatsNew", () => new WhatsNewView()));


// Register the hex calculator webviews
hexCalcExplorerProvider = new HexCalcProvider();
Expand Down
4 changes: 2 additions & 2 deletions src/regexes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ export function regexEndModuleStruct(): RegExp {
* Used by DefinitionProvider.
*/
export function regexLabelColonForWord(searchWord: string): RegExp {
return new RegExp('^(\\s*)([^0-9\\.\\s][\\w\\.]*)?\\b' + searchWord + ':');
return new RegExp('^(\\s*)([^0-9\\s][\\w\\.]*)?\\b' + searchWord + ':');
}


Expand All @@ -94,7 +94,7 @@ export function regexLabelColonForWord(searchWord: string): RegExp {
* Used by DefinitionProvider.
*/
export function regexLabelWithoutColonForWord(searchWord: string): RegExp {
return new RegExp('^()([^0-9\\.\\s][\\w\\.]*)?\\b' + searchWord + '\\b(?![:\\.])');
return new RegExp('^()([^0-9\\s][\\w\\.]*)?\\b' + searchWord + '\\b(?![:\\.])');
}


Expand Down
4 changes: 2 additions & 2 deletions tests/regexes.tests.ts
Original file line number Diff line number Diff line change
Expand Up @@ -319,7 +319,7 @@ suite('RegExes', () => {
"label", "xxx.label:", true, "",
"label", "_xxx.label:", true, "",
"label", "0xxx.label:", false, "",
"label", ".label:", false, "",
//"label", ".label:", false, "", // Required for issue #30: Goto definition to local label not working
"label", "label.xxx:", false, "",
"label", "yyy.label.xxx:", false, "",
"label", "xlabel:", false, "",
Expand Down Expand Up @@ -351,7 +351,7 @@ suite('RegExes', () => {
"label", "xxx.label", true, "",
"label", "_xxx.label", true, "",
"label", "0xxx.label", false, "",
"label", ".label", false, "",
//"label", ".label", false, "", // Required for issue #30: Goto definition to local label not working
"label", "label.xxx", false, "",
"label", "yyy.label.xxx", false, "",
"label", "xlabel", false, "",
Expand Down

0 comments on commit 889298b

Please sign in to comment.