From: Brendan Hansen Date: Thu, 2 Nov 2023 03:12:23 +0000 (-0500) Subject: minor fixes to vscode outlining X-Git-Url: https://git.brendanfh.com/?a=commitdiff_plain;h=489cd00c13c3ba757eb14b7b8baf26f1c147f444;p=onyx.git minor fixes to vscode outlining --- diff --git a/docs/symbol_info.md b/docs/symbol_info.md index 026c3b32..901e2b06 100644 --- a/docs/symbol_info.md +++ b/docs/symbol_info.md @@ -8,8 +8,9 @@ File contains: - File definition table - File ID - File name + * Scope ID -- Symbol definition table (16 bytes each) +- Symbol definition table (16 bytes each, sorted by Symbol ID) - ID - File ID - Line @@ -22,6 +23,14 @@ File contains: - Length - Symbol ID that it resolves to +* Scopes table (12 bytes each, sorted by Scope ID) + * Scope ID + * Parent Scope ID (-1 for root) + * Symbol list start index + +* Scope symbols table + * Symbol ID (-1 for end of list) + Byte respresentation of the file: magic bytes: O S Y M 0x0 0x0 0x0 0x1 diff --git a/misc/vscode/onyx-0.1.8.vsix b/misc/vscode/onyx-0.1.8.vsix new file mode 100644 index 00000000..56d7d70b Binary files /dev/null and b/misc/vscode/onyx-0.1.8.vsix differ diff --git a/misc/vscode/package.json b/misc/vscode/package.json index 0d7fa3a1..2cc129f1 100644 --- a/misc/vscode/package.json +++ b/misc/vscode/package.json @@ -2,7 +2,7 @@ "name": "onyx", "displayName": "Onyx", "description": "Onyx syntax highlighting and debugger support.", - "version": "0.1.7", + "version": "0.1.8", "publisher": "brendanfh", "license": "BSD-2-Clause", "engines": { diff --git a/misc/vscode/syntaxes/onyx.tmLanguage b/misc/vscode/syntaxes/onyx.tmLanguage index 1b944587..80a1feec 100644 --- a/misc/vscode/syntaxes/onyx.tmLanguage +++ b/misc/vscode/syntaxes/onyx.tmLanguage @@ -454,7 +454,7 @@ 2 name - punctuation.block.start.onyx + punctuation.block.begin.onyx