[crystal] Add annotation to reserved key word list of crystal lang (#10932)

* add annotation to reserved key word list of crystal

* Update crystal docs
This commit is contained in:
cyangle
2021-11-23 07:02:49 -06:00
committed by GitHub
parent 39b8f83e6d
commit 8338962deb
2 changed files with 2 additions and 1 deletions

View File

@@ -58,6 +58,7 @@ These options may be applied as additional-properties (cli) or configOptions (pl
<ul class="column-ul">
<li>abstract</li>
<li>alias</li>
<li>annotation</li>
<li>as</li>
<li>as?</li>
<li>asm</li>

View File

@@ -132,7 +132,7 @@ public class CrystalClientCodegen extends DefaultCodegen {
// reserved word. Ref: https://github.com/crystal-lang/crystal/wiki/Crystal-for-Rubyists#available-keywords
reservedWords = new HashSet<>(
Arrays.asList(
"abstract", "do", "if", "nil?", "select", "union",
"abstract", "annotation", "do", "if", "nil?", "select", "union",
"alias", "else", "in", "of", "self", "unless",
"as", "elsif", "include", "out", "sizeof", "until",
"as?", "end", "instance", "sizeof", "pointerof", "struct", "verbatim",