vala-intellij-plugin icon indicating copy to clipboard operation
vala-intellij-plugin copied to clipboard

Parser errors

Open gregorej opened this issue 9 years ago • 5 comments

  1. https://drive.google.com/file/d/0B8oRwntAar7cYU56Wk9XeEZxMkE/view?usp=sharing
  2. https://drive.google.com/file/d/0B8oRwntAar7cbTdmUFhBcVRleFU/view?usp=sharing
  3. https://drive.google.com/file/d/0B8oRwntAar7cUFRWQnp0YmVSMDQ/view?usp=sharing

Found by @ruckus-dj

gregorej avatar Oct 29 '15 21:10 gregorej

  1. is invalid as per Vala documentation:

However, to define or refer to an identifier with a name that either starts with a digit or is a keyword, you must prefix it with the '@' character.

gregorej avatar Nov 02 '15 15:11 gregorej

About 2. I think the array braces [] should be after type, like:

const string [] NAMES

gregorej avatar Nov 02 '15 15:11 gregorej

Don't know about it. All three examples are compiles without errors. About warnings I'll check tomorrow. Seems Vala don't have a stable syntax and fresh documentation. Working with it for only two months. By the way, pre-increment didn't parsed normal too. example: var a = 2; ++a;

ruckus-dj avatar Nov 02 '15 18:11 ruckus-dj

Yeah, syntax stability is definitely a Vala's weak part

gregorej avatar Nov 02 '15 18:11 gregorej

  1. Compiles without any warnings or errors.
  2. Warnings like this: /home/ruckus/projects/dualit/libs/libgpslip/Slip.vala:382.59-382.77: warning: Access to static member `Gp.Slip.ARROW_DOWN_XPM' with an instance reference this.arrow_down_pixbuf = new Gdk.Pixbuf.from_xpm_data(this.ARROW_DOWN_XPM);

Vala version 0.28.1.

ruckus-dj avatar Nov 03 '15 07:11 ruckus-dj