Skip to content
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

closing parantheses #5

Open
thorade opened this issue Apr 14, 2015 · 4 comments
Open

closing parantheses #5

thorade opened this issue Apr 14, 2015 · 4 comments

Comments

@thorade
Copy link

thorade commented Apr 14, 2015

As pointed out by @tbeu in modelica-3rdparty/Modelica_DeviceDrivers#77 the closing parantheses in the enumeration is not highlighted correctly.
Also see http://bit.ly/1ynaPQT

@thorade
Copy link
Author

thorade commented Apr 14, 2015

Other enumerations are highlighted just fine:
http://bit.ly/1GGS3XL

@tbeu
Copy link

tbeu commented Apr 14, 2015

If the semicolon after the enumeration comment is moved to the next line (as in second example) highlighting is correct.

@thorade
Copy link
Author

thorade commented May 5, 2015

wrong highlighting (closing parantheses is blue):

type trigger_type=enumeration(
  event_trig "Event",
  cyclic_trig "Cyclic",
  cyclic_event_trig "Cyclic + Event",
  initial_trig "At Start only",
  terminal_trig "At Stop only") "Use as trigger";

correct highlighting:

type trigger_type=enumeration(
  event_trig "Event",
  cyclic_trig "Cyclic",
  cyclic_event_trig "Cyclic + Event",
  initial_trig "At Start only",
  terminal_trig "At Stop only") "Use as trigger"
;

correct highlighting:

type trigger_type=enumeration(
  event_trig "Event",
  cyclic_trig "Cyclic",
  cyclic_event_trig "Cyclic + Event",
  initial_trig "At Start only",
  terminal_trig "At Stop only") 
"Use as trigger";

@thorade thorade changed the title closing bracket closing parantheses Oct 15, 2015
@thorade
Copy link
Author

thorade commented Oct 15, 2015

Should enumeration appear as a keyword in the grammar file?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants