minor fixes to vscode outlining
authorBrendan Hansen <brendan.f.hansen@gmail.com>
Thu, 2 Nov 2023 03:12:23 +0000 (22:12 -0500)
committerBrendan Hansen <brendan.f.hansen@gmail.com>
Thu, 2 Nov 2023 15:14:16 +0000 (10:14 -0500)
docs/symbol_info.md
misc/vscode/onyx-0.1.8.vsix [new file with mode: 0644]
misc/vscode/package.json
misc/vscode/syntaxes/onyx.tmLanguage

index 026c3b3238ffc8d612cfa6f45181332eb06cfa40..901e2b0629b744a2cdc80f9c6570a98077bbe4f0 100644 (file)
@@ -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 (file)
index 0000000..56d7d70
Binary files /dev/null and b/misc/vscode/onyx-0.1.8.vsix differ
index 0d7fa3a1a5796b4b6f44aec078a1726e14348894..2cc129f16826c22fc2b25df9763c42f01f4022e8 100644 (file)
@@ -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": {
index 1b944587987d42bd1327df994fd0008883058b2b..80a1feec6c8e6277218ec0d31e8d73e703f73254 100644 (file)
                                                <key>2</key>
                                                <dict>
                                                        <key>name</key>
-                                                       <string>punctuation.block.start.onyx</string>
+                                                       <string>punctuation.block.begin.onyx</string>
                                                </dict>
                                        </dict>
                                </dict>