ea390988632b — Leonard Ritter 13 days ago
* vscode: syntax fixes
* added one more try test
2 files changed, 21 insertions(+), 2 deletions(-)

M extras/vscode/scopes/syntaxes/scopes.tmLanguage.json
M testing/test_try.sc
M extras/vscode/scopes/syntaxes/scopes.tmLanguage.json +2 -2
@@ 22,7 22,7 @@ 
                 },
                 {
                     "name": "keyword.control.library.scopes",
-                    "match": "(options|bind|include|__this-scope|static|plain|local|new|global|typedef(\\+)?|fold|\\:\\:|\\@\\@|vvv|qq|va-option|sugar|spice|(fn|inline)\\.\\.\\.|(spice-)?capture|struct|fnchain|enum|while|continue|for|in|(sugar-|spice-|static-)?match|from|using|filter|\\:|try|except|locals|import|defer|(static-)?assert|define|define-infix[\\<\\>])(?=[\\s\\(\\)\\[\\]\\{\\}\\,\\;\\#])"
+                    "match": "(options|bind|include|__this-scope|static|plain|local|new|global|typedef(\\+)?|type\\+|fold|\\:\\:|\\@\\@|vvv|qq|va-option|sugar|spice|(fn|inline)\\.\\.\\.|(spice-)?capture|struct|fnchain|enum|while|continue|for|in|(sugar-|spice-|static-)?match|from|using|filter|\\:|try|except|locals|import|defer|(static-)?assert|define|define-infix[\\<\\>])(?=[\\s\\(\\)\\[\\]\\{\\}\\,\\;\\#])"
                 },
                 {
                     "name": "keyword.control.glsl.scopes",

          
@@ 145,7 145,7 @@ 
                 },
                 {
                     "name": "support.function.sfx.builtin.scopes",
-				    "match": "((enter-solver-cli|set-execution-mode|io-write|set-anchor|set-globals|set-typename(-storage|-super|-fields)|compiler-error|abort|discard|unreachable|set-signal-abort|(set|delete)-(type|scope)-symbol)!(\\&)?)(?=[\\s\\(\\)\\[\\]\\{\\}\\,\\;\\#])"
+				    "match": "(unreachable|(enter-solver-cli|set-execution-mode|io-write|set-anchor|set-globals|set-typename(-storage|-super|-fields)|compiler-error|abort|discard|set-signal-abort|(set|delete)-(type|scope)-symbol)!(\\&)?)(?=[\\s\\(\\)\\[\\]\\{\\}\\,\\;\\#])"
                 },
                 {
                     "name": "support.function.sfx.library.scopes",

          
M testing/test_try.sc +19 -0
@@ 75,3 75,22 @@ do
     test-try-else 2
     test-try-else 3
     One.test-refcount-balanced;
+
+
+do
+    # re-raising uniques
+    try
+        try
+            if true
+                let one =
+                    try (One 100)
+                    else
+                        assert false "error creating One"
+                        unreachable;
+                raise one
+        except (err)
+            raise err
+    except (err)
+        ;
+
+    One.test-refcount-balanced;