From 2a573927ea614b1a8254546abbfb5a9cdcdbf45f Mon Sep 17 00:00:00 2001 From: Tian Siyuan Date: Thu, 10 Sep 2020 16:31:15 +0800 Subject: [PATCH] add a missing space --- doc/lexicon.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/lexicon.md b/doc/lexicon.md index 078dc3e7a..637a2fdea 100644 --- a/doc/lexicon.md +++ b/doc/lexicon.md @@ -96,7 +96,7 @@ The recognizers that ANTLR generates assume a character vocabulary containing al ## Actions -Actions are code blocks written in the target language. You can use actions in a number of places within a grammar, but the syntax is always the same: arbitrary text surrounded by curly braces. You don’t need to escape a closing curly character if it’s in a string or comment: `"}"` or `/*}*/`. If the curlies are balanced, you also don’t need to escape }: `{...}`. Otherwise, escape extra curlies with a backslash: `\{` or `\}`. The action text should conform to the target language as specified with thelanguage option. +Actions are code blocks written in the target language. You can use actions in a number of places within a grammar, but the syntax is always the same: arbitrary text surrounded by curly braces. You don’t need to escape a closing curly character if it’s in a string or comment: `"}"` or `/*}*/`. If the curlies are balanced, you also don’t need to escape }: `{...}`. Otherwise, escape extra curlies with a backslash: `\{` or `\}`. The action text should conform to the target language as specified with the language option. Embedded code can appear in: `@header` and `@members` named actions, parser and lexer rules, exception catching specifications, attribute sections for parser rules (return values, arguments, and locals), and some rule element options (currently predicates).