Skip to content

Commit 701ddc2

Browse files
committed
Add support for ComType statements that have a dictionary
1 parent f12f905 commit 701ddc2

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

tree-sitter-quickbms/grammar.js

+1
Original file line numberDiff line numberDiff line change
@@ -250,6 +250,7 @@ module.exports = grammar({
250250
comtype_statement: $ => seq(
251251
$.comtype,
252252
field("algorithm", $._expression),
253+
field("dictionary", optional($._expression)),
253254
),
254255
clog_statement: $ => seq(
255256
$.clog,

tree-sitter-quickbms/test/corpus/comtype.bms

+6-1
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,15 @@ ComType statements
33
================================================================================
44

55
comtype COMP_UNZIP_DYNAMIC
6+
comtype lzss "12 4 2 2 0"
67

78
--------------------------------------------------------------------------------
89

910
(source_file
1011
(comtype_statement
1112
(comtype)
12-
(identifier)))
13+
(identifier))
14+
(comtype_statement
15+
(comtype)
16+
(identifier)
17+
(string_literal)))

0 commit comments

Comments
 (0)