Skip to content

Commit

Permalink
percent members in outline
Browse files Browse the repository at this point in the history
  • Loading branch information
daimor committed Jan 21, 2019
1 parent 32f2551 commit d0900c0
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

- Automatically Preview XML files as UDL, (disabled by default, setting `objectscript.autoPreviewXML`)
- Fixed highlighting for XData with css in style tag
- Show percent-member in outline

## [0.7.7]

Expand Down
10 changes: 5 additions & 5 deletions providers/ObjectScriptClassSymbolProvider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ export class ObjectScriptClassSymbolProvider implements vscode.DocumentSymbolPro
}
}

let method = line.text.match(/^((?:Class|Client)?Method|Trigger|Query) (\b\w+\b|"[^"]+")/i);
let method = line.text.match(/^((?:Class|Client)?Method|Trigger|Query) (%?\b\w+\b|"[^"]+")/i);
if (method) {
let startCode = line.range.start;
let end = line.range.end;
Expand All @@ -64,7 +64,7 @@ export class ObjectScriptClassSymbolProvider implements vscode.DocumentSymbolPro
});
}

let index = line.text.match(/^(Index|ForegnKey) (\b\w+\b)/i);
let index = line.text.match(/^(Index|ForegnKey) (%?\b\w+\b)/i);
if (index) {
symbols.push({
detail: index[1],
Expand All @@ -76,7 +76,7 @@ export class ObjectScriptClassSymbolProvider implements vscode.DocumentSymbolPro
});
}

let property = line.text.match(/^(Property|Relationship) (\b\w+\b|"[^"]+")/i);
let property = line.text.match(/^(Property|Relationship) (%?\b\w+\b|"[^"]+")/i);
if (property) {
let end = line.range.end;
if (!line.text.endsWith(';')) {
Expand All @@ -97,7 +97,7 @@ export class ObjectScriptClassSymbolProvider implements vscode.DocumentSymbolPro
});
}

let parameter = line.text.match(/^(Parameter) (\b\w+\b)/i);
let parameter = line.text.match(/^(Parameter) (%?\b\w+\b)/i);
if (parameter) {
symbols.push({
detail: parameter[1],
Expand All @@ -109,7 +109,7 @@ export class ObjectScriptClassSymbolProvider implements vscode.DocumentSymbolPro
});
}

let other = line.text.match(/^(XData|Storage) (\b\w+\b)/i);
let other = line.text.match(/^(XData|Storage) (%?\b\w+\b)/i);
if (other) {
let startCode = line.range.start;
let end = line.range.end;
Expand Down

0 comments on commit d0900c0

Please sign in to comment.