From: River Riddle Date: Mon, 16 May 2022 23:37:31 +0000 (-0700) Subject: [mlir][PDLL] Tweak the grammar to highlight partial code better X-Git-Tag: upstream/15.0.7~7555 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=1febbd67aa9cf31119398dde27d2dbf016de351e;p=platform%2Fupstream%2Fllvm.git [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). --- diff --git a/mlir/utils/vscode/pdll-grammar.json b/mlir/utils/vscode/pdll-grammar.json index 142d397..47c8968 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": {