We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 98e7d11 commit 4c9a218Copy full SHA for 4c9a218
server/src/analyser.ts
@@ -785,6 +785,20 @@ export default class Analyzer {
785
}
786
787
788
+ if (
789
+ node.type === 'word' &&
790
+ node.parent?.type === 'command' &&
791
+ node.parent.firstChild?.text === 'read' &&
792
+ !node.text.startsWith('-') &&
793
+ !/^-.*[dinNptu]$/.test(node.previousSibling?.text ?? '')
794
+ ) {
795
+ return {
796
+ word: node.text,
797
+ range: TreeSitterUtil.range(node),
798
+ kind: LSP.SymbolKind.Variable,
799
+ }
800
801
+
802
return null
803
804
0 commit comments