[Mlir-commits] [mlir] 1febbd6 - [mlir][PDLL] Tweak the grammar to highlight partial code better

River Riddle llvmlistbot at llvm.org
Mon May 16 16:46:35 PDT 2022


Author: River Riddle
Date: 2022-05-16T16:46:13-07:00
New Revision: 1febbd67aa9cf31119398dde27d2dbf016de351e

URL: https://github.com/llvm/llvm-project/commit/1febbd67aa9cf31119398dde27d2dbf016de351e
DIFF: https://github.com/llvm/llvm-project/commit/1febbd67aa9cf31119398dde27d2dbf016de351e.diff

LOG: [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).

Added: 
    

Modified: 
    mlir/utils/vscode/pdll-grammar.json

Removed: 
    


################################################################################
diff  --git a/mlir/utils/vscode/pdll-grammar.json b/mlir/utils/vscode/pdll-grammar.json
index 142d3978906ab..47c8968c3ac0c 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": {


        


More information about the Mlir-commits mailing list