Customize DSL verification syntax rules and give prompts

like this
https://wj.qq.com/docs/dsl/editor_tips
codemirror6 +lezer
How to implement ?