New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tdb: ELEMENT with missing '!' line terminator can silently eat the next line #57

Closed
richardotis opened this Issue Oct 20, 2016 · 0 comments

Comments

Projects
None yet
1 participant
@richardotis
Collaborator

richardotis commented Oct 20, 2016

Example

$ Note missing '!' in next line
ELEMENT ZR   BCT_A5                    
FUNCTION EMBCCTI    298.15 -39.72; 6000 N !

Current Behavior

The TDB parser will concatenate these lines together like ELEMENT ZR BCT_A5 FUNCTION EMBCCTI 298.15 -39.72; 6000 N. Because the grammar rule for ELEMENTs is so permissive, it will silently ignore everything after the element name.

Expected Behavior

The parser should raise a ParseException.

@richardotis richardotis added the bug label Oct 20, 2016

@richardotis richardotis self-assigned this Oct 20, 2016

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment