From 1febbd67aa9cf31119398dde27d2dbf016de351e Mon Sep 17 00:00:00 2001 From: River Riddle Date: Mon, 16 May 2022 16:37:31 -0700 Subject: [PATCH] [mlir][PDLL] Tweak the grammar to highlight partial code better This commit enables proper highlighting when inner statements are outside of a constraint/pattern/etc. This shouldn't really happen in actual code, but can happen in documentation (which uses the same syntax grammar). --- mlir/utils/vscode/pdll-grammar.json | 3 +++ 1 file changed, 3 insertions(+) diff --git a/mlir/utils/vscode/pdll-grammar.json b/mlir/utils/vscode/pdll-grammar.json index 142d3978906a..47c8968c3ac0 100644 --- a/mlir/utils/vscode/pdll-grammar.json +++ b/mlir/utils/vscode/pdll-grammar.json @@ -27,6 +27,9 @@ }, { "include": "#pattern" + }, + { + "include": "#inside_pattern" } ], "repository": {