Skip to content

Commit a2cd846

Browse files
authored
[TableGen][Docs] Clarify TokCode definition. (#96201)
"shortest" would be an empty sequence and the rule would never match.
1 parent 826bde5 commit a2cd846

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/docs/TableGen/ProgRef.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ TableGen has two kinds of string literals:
174174

175175
.. productionlist::
176176
TokString: '"' (non-'"' characters and escapes) '"'
177-
TokCode: "[{" (shortest text not containing "}]") "}]"
177+
TokCode: "[{" (text not containing "}]") "}]"
178178

179179
A :token:`TokCode` is nothing more than a multi-line string literal
180180
delimited by ``[{`` and ``}]``. It can break across lines and the

0 commit comments

Comments
 (0)