[llvm] [llvm-lit] Support curly brace syntax in lit internal shell (PR #102830)

Paul Kirth via llvm-commits llvm-commits at lists.llvm.org
Wed Aug 14 11:15:34 PDT 2024


================
@@ -157,7 +157,11 @@ def lex_one_token(self):
         lex_one_token - Lex a single 'sh' token."""
 
         c = self.eat()
+        if c == "{" or c == "}":
+            return (c,)
         if c == ";":
+            if self.maybe_eat("}") or (self.maybe_eat(" ") and self.maybe_eat("}")):
----------------
ilovepi wrote:

Can we get a comment here about what's going on?

https://github.com/llvm/llvm-project/pull/102830


More information about the llvm-commits mailing list