diff --git a/grammar.js b/grammar.js index 8cf70ea..9286e49 100644 --- a/grammar.js +++ b/grammar.js @@ -241,6 +241,7 @@ module.exports = grammar({ choice( "opacity", "fill", + "fill-pattern", "stroke", "stroke-width", "stroke-dash", diff --git a/src/grammar.json b/src/grammar.json index 224ae86..3236b97 100644 --- a/src/grammar.json +++ b/src/grammar.json @@ -994,6 +994,10 @@ "type": "STRING", "value": "fill" }, + { + "type": "STRING", + "value": "fill-pattern" + }, { "type": "STRING", "value": "stroke" diff --git a/src/node-types.json b/src/node-types.json index 11b65e0..97a22c7 100644 --- a/src/node-types.json +++ b/src/node-types.json @@ -412,6 +412,10 @@ "type": "fill", "named": false }, + { + "type": "fill-pattern", + "named": false + }, { "type": "float", "named": true diff --git a/src/parser.c b/src/parser.c index e012840..8a09de8 100644 Binary files a/src/parser.c and b/src/parser.c differ diff --git a/tree-sitter-d2.wasm b/tree-sitter-d2.wasm index 9de2e30..2e797d7 100755 Binary files a/tree-sitter-d2.wasm and b/tree-sitter-d2.wasm differ