hmatt1 / angelscript-intellij

AngelScript Intellij Plugin Language Support

Home Page:https://plugins.jetbrains.com/plugin/18276-angelscript-language-support

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

AngelScript Intellij Plugin Language Support

For people who want to use Intellij to develop with AngelScript.

Available soon!

Here is the preview page on the Intellij Plugins Marketplace

Features

Token Highlighting

Currently all tokens can have syntax highlighting, such as ==, ;, keywords, etc. Identifier highlighting such as function names is not yet implemented.

Color Settings

All highlighter colors can be changed on the settings page.

Variable Name Code-completion

Only variable names are currently implemented. For example, if you have a script such as:

int foo = 1;
int bar = 3 + f

As soon as you type the f, the option to auto-complete foo will pop up.

Limitations

When using #if, #elif, etc, anything in the #elif block is treated as a comment. This is because I couldn't figure out how to get it working with mismatched braces.

Contributing

Contributions are welcome!!!!! 😄

Open an issue

Feel free to open an issue to report bugs, request features, or ask for help with contributing.

Adding a Test Case

Scripts for test scenarios are located in scripts. New script files can be added there, and then the file name needs to be added to file_names.csv.

Most of the test cases are from the AngelScript svn repository and parsed them into separate files using the run.sh to get the test cases, and then manually cleaned them up.

Additionally, I downloaded sources for various OpenPlanet plugins and added them to a seperate test scenario, with the file names in ops.csv and the scripts stored under opscripts.

Publishing the Plugin

  1. Update the plugin version in build.gradle
  2. Manually run the Plugin Publishing Workflow

Generating a new key-pair for signing

Powershell:

 & 'C:\Program Files\Git\usr\bin\openssl.exe' genpkey  -aes-256-cbc  -algorithm RSA  -out private_encrypted.pem -pkeyopt rsa_keygen_bits:4096

 & 'C:\Program Files\Git\usr\bin\openssl.exe' rsa  -in private_encrypted.pem  -out private.pem

 & 'C:\Program Files\Git\usr\bin\openssl.exe' req  -key private.pem -new  -x509  -days 365 -out chain.crt

Resource

About

AngelScript Intellij Plugin Language Support

https://plugins.jetbrains.com/plugin/18276-angelscript-language-support

License:Apache License 2.0


Languages

Language:AngelScript 93.0%Language:Java 4.4%Language:ActionScript 1.6%Language:Lex 0.9%Language:Shell 0.2%