# I want the JSParser to accept the await keyword in the editor

**URL:** <https://forum.alternetsoft.com/t/i-want-the-jsparser-to-accept-the-await-keyword-in-the-editor/528>\
**Category:** AlterNET Studio Support\
**Tags:** editor, windows-forms\
**Created:** [October 7, 2026, 10:25am UTC](https://forum.alternetsoft.com/t/i-want-the-jsparser-to-accept-the-await-keyword-in-the-editor/528 "2026-10-07T10:25:12Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![DerekDiamond](https://forum.alternetsoft.com/user_avatar/forum.alternetsoft.com/derekdiamond/32/83_2.png) [@DerekDiamond](https://forum.alternetsoft.com/u/DerekDiamond)\
**Post date:** [October 7, 2026, 10:25am UTC](https://forum.alternetsoft.com/t/i-want-the-jsparser-to-accept-the-await-keyword-in-the-editor/528/1 "2026-10-07T10:25:13Z")

</div>

I want the script editor to accept the await keyword. Where can I set that this is allowed. At the moment the editor shows that the await is not supported at top level, unless the module option is set to ‘es2022’ …

Where can I set this?

---

<div class="post-metadata">

**Author:** ![generalloki](https://forum.alternetsoft.com/user_avatar/forum.alternetsoft.com/generalloki/32/225_2.png) [@generalloki](https://forum.alternetsoft.com/u/generalloki)\
**Post date:** [October 9, 2026, 7:47am UTC](https://forum.alternetsoft.com/t/i-want-the-jsparser-to-accept-the-await-keyword-in-the-editor/528/2 "2026-10-09T07:47:08Z")

</div>

In order to support await keyword in JSParser you can implement JSParserEx like this

```auto
 public class JsParserEx : JsParser
 {
     protected override void InitReswords()
     {
         base.InitReswords();
         reswords.Add("await", CsLexerToken.Await);
     }
 }

```
