[mlir][PDLL] Tweak the grammar to highlight partial code better
authorRiver Riddle <riddleriver@gmail.com>
Mon, 16 May 2022 23:37:31 +0000 (16:37 -0700)
committerRiver Riddle <riddleriver@gmail.com>
Mon, 16 May 2022 23:46:13 +0000 (16:46 -0700)
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

index 142d397..47c8968 100644 (file)
@@ -27,6 +27,9 @@
     },
     {
       "include": "#pattern"
+    },
+    {
+      "include": "#inside_pattern"
     }
   ],
   "repository": {