Skip to content

Comments

Added support for the 'var' keyword in Java#3526

Merged
dmaluka merged 1 commit intomicro-editor:masterfrom
owencmcgrath:master
Oct 31, 2024
Merged

Added support for the 'var' keyword in Java#3526
dmaluka merged 1 commit intomicro-editor:masterfrom
owencmcgrath:master

Conversation

@owencmcgrath
Copy link
Contributor

The var keyword was unsupported, but should now be supported through updates in the YAML file.

Copy link
Contributor

@Andriamanitra Andriamanitra left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Technically var can also be an identifier (the code below is valid Java) but micro's syntax highlighting is not sophisticated enough to reliably distinguish between different uses, so I think it still makes sense to always highlight it as a type.

int var = 42;
var x = 24;

@owencmcgrath
Copy link
Contributor Author

@Andriamanitra

Technically var can also be an identifier (the code below is valid Java) but micro's syntax highlighting is not sophisticated enough to reliably distinguish between different uses, so I think it still makes sense to always highlight it as a type.

int var = 42;
var x = 24;

Oh, that is super cool! I just learned something new. Thank you. :)

@dmaluka dmaluka merged commit c8eeb78 into micro-editor:master Oct 31, 2024
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

Successfully merging this pull request may close these issues.

3 participants