Additional syntax highlighting
Orion now provides syntax highlighting for .c .h. cpp and Arduino (.pde/.ino) files.
â€¦ will insert JSDoc like this on function expressions:
â€¦ and will insert this JSDoc on function declarations:
Users can now customize the warnings they see on the new validation settings page, Settings > Validation. Â Each validation rule can be set to error, warning or ignore.
A large number of rules have been added, warning you of discouraged code styles, missing documentation, unused variables, unreachable code and many other common programming problems. Â All of the rules have variable severity which you can set on the Validation settings page.
New code validation rules
There have been a lot of new rules added to ESLint in Orion in 6.0, some of the more notable ones are:
Scoped code templates
Show occurrences of object properties
Selecting a named object property with Show Occurrences turned on will highlight the property definition as well as all references to it within the object expression (via this object).
The outliner has also been improved to list the properties of an object.
Orion is now using the the latest version of ESLint – 0.4.2
The Orion customized version of the Esprima parser has seen many updates in 6.0, from performance improvements in Â the token stream and ESLint integration to improved parser errors that direct users how to correct their code problems.
There have also been a few updates to the parserâ€™s tolerance while parsing code with errors in it. Additional recovery support has been added for the following scenarios:
Missing tokens in call expressions:
Missing tokens in object expressions:
Missing declarations in object properties:
Missing tokens in if statements:
Missing tokens in while statements:
Missing tokens in for statements:
Experimental Web Worker Support