VHDL-LS / rust_hdl

Other
346 stars 64 forks source link

Syntax errors on time data type #350

Open phscott99 opened 1 week ago

phscott99 commented 1 week ago

The following line in my testbench causes errors: wait for 10ns;

The errors are as follows:

Invalid integer character 'n'     vhdl ls(systax_error)
No declaration of 's'             vhdl ls(unresolved)
Xcodo commented 1 week ago

See #141.

VHDL-LS only allows for time units separated by a space, which seems to match the VHDL-2008 standard. Some tools allow the space to be omitted.

wait for 10 ns; will not cause the error shown.

phscott99 commented 1 week ago

You're right - I missed that issue. Feature request for a more descriptive error message?