From a2f8097d330dae390e70cd73409afab748e42e1f Mon Sep 17 00:00:00 2001 From: Evan Typanski Date: Tue, 19 May 2026 10:40:13 -0400 Subject: [PATCH] Bump tree sitter grammar for `?as` --- pyproject.toml | 2 +- .../test_samples/test_samples[expression.zeek].raw | 3 +++ tests/samples/expression.zeek | 3 +++ 3 files changed, 7 insertions(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 813cf2c2..6bb4c8dd 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -29,7 +29,7 @@ requires-python = ">= 3.10" dependencies = [ "argcomplete>=3.6.1", "tree-sitter==0.25.2", - "tree-sitter-zeek==0.2.14", + "tree-sitter-zeek==0.2.15", ] [project.optional-dependencies] diff --git a/tests/__snapshots__/test_samples/test_samples[expression.zeek].raw b/tests/__snapshots__/test_samples/test_samples[expression.zeek].raw index 75abb6fd..20b1e3bd 100644 --- a/tests/__snapshots__/test_samples/test_samples[expression.zeek].raw +++ b/tests/__snapshots__/test_samples/test_samples[expression.zeek].raw @@ -32,3 +32,6 @@ const machine_types: table[count] of string = { # Single element curly braced init can go on one line const thing: table[count] of string = {[123] = "onetwothree"}; + +print "0.0.0.0" ?as addr; +print "123" ?as addr; diff --git a/tests/samples/expression.zeek b/tests/samples/expression.zeek index 3cc14015..bf58d073 100644 --- a/tests/samples/expression.zeek +++ b/tests/samples/expression.zeek @@ -14,3 +14,6 @@ const machine_types: table[count] of string = { [0x00] = "UNKNOWN", # Single element curly braced init can go on one line const thing: table[count] of string = {[123] = "onetwothree"}; + +print "0.0.0.0"?as addr; +print "123" ?as addr;