modelica-tools / atom-language-modelica

Modelica language support for the atom editor
https://atom.io/packages/language-modelica
Other
8 stars 4 forks source link

Variables starting with g are highlighted. #16

Closed palm86 closed 8 years ago

thorade commented 8 years ago

Can you give an example, ideally as a complete .mo file uploaded to http://gist.github.com/ please? Please also note that PR #13 might replace the complete grammar, so fixing this issue will be delayed until PR #13 is merged (or rejected). But we are still interested in your gist file for testing...

dietmarw commented 8 years ago

Here is a simple example:

record gTest
  parameter Real foo;
  parameter Real gfoo;
  parameter Real bar;
  parameter Integer gbar;

end gTest;

gives in atom.io (lightshow for some reason does not show this error ... ) screenshot from 2015-10-15 19 20 09

dietmarw commented 8 years ago

Forgot to mention that this works fine in modelica-mode of emacs :stuck_out_tongue:

thorade commented 8 years ago

Just tested it, this would also be closed by PR #13

thorade commented 8 years ago

Fixed by PR #13 If not, feel free to reopen.