Skip to content

Commit

Permalink
NOSONAR.
Browse files Browse the repository at this point in the history
  • Loading branch information
maziac committed Oct 6, 2022
1 parent fdb5f22 commit ca67a23
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/extension.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import * as vscode from 'vscode';
export function activate(context: vscode.ExtensionContext) {
const hoverProvider = vscode.languages.registerHoverProvider({scheme: '*', language: '*'}, {
provideHover(document, position, token) {
const range = document.getWordRangeAtPosition(position, /(?<!\w)[0-9a-fA-FbhxulULHB_]+\b/)!; // Note: for Verilog format: '[hHbBdD]... , e.g. 'h7123A for a hex number, b or B for a binary, d or D for a decimal
const range = document.getWordRangeAtPosition(position, /(?<!\w)[0-9a-fA-FbhxulULHB_]+\b/)!; // NOSONAR. Note: for Verilog format: '[hHbBdD]... , e.g. 'h7123A for a hex number, b or B for a binary, d or D for a decimal
if (!range)
return;
let hoveredWord = document.getText(range);
Expand Down

0 comments on commit ca67a23

Please sign in to comment.