matthiasblaesing commented on PR #4885:
URL: https://github.com/apache/netbeans/pull/4885#issuecomment-3263951830

   One problem solved here also affects JShell Integration. Using `var` in 
JShell causes Exceptions and fails to work properly. The hack from 2f4dd82 
together with a few followups fixes makes it work again.
   
   I think the core problem is, that `var` is not a keyword. It is only valid 
when used in (local) variable declarations, so from my understanding `var` on 
the lexer level can only be an identifier and only the parser level can decide 
whether we see the identifier `var` or a local variable declaration. At least 
that is my take away from skimming through the JLS.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscr...@netbeans.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscr...@netbeans.apache.org
For additional commands, e-mail: notifications-h...@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists

Reply via email to