Skip to content

Commit

Permalink
fix: transition define multi lines
Browse files Browse the repository at this point in the history
  • Loading branch information
ImagineBoom committed Nov 14, 2023
1 parent 2a4e8ee commit 78815fc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/extension.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,12 +57,12 @@ class gem5slicc_DocumentSymbolProvider implements vscode.DocumentSymbolProvider
nodes[nodes.length-1].push(marker_symbol)
}
else if (line.text.trim().startsWith("transition")) {
const name = line.text.match(/transition\s*\((.*)\)/)
const name = line.text.match(/transition\s*\(([^)]*)/)
if (name==null){
continue
}
const marker_symbol = new vscode.DocumentSymbol(
"T.. "+name[1]+" ",
"T.. "+name[1],
'',
transition,
line.range, line.range)
Expand Down

0 comments on commit 78815fc

Please sign in to comment.