Skip to content

Part of the ZeroSyntax series. Contains diagnostics for Command & Conquer Generals Zero Hour map.ini syntax.

License

Notifications You must be signed in to change notification settings

ViTeXFTW/ZeroSyntax-Server

Repository files navigation

ZeroSyntax-Server

Introduction

ZeroHour-Server is a language server written in TypeScript for Command and Conquor Generals Zero Hour INI. The server is intended to provide formatting, linting and code completion. Currently this is intended for Visual Studio Code only, however all functionallities will be server sided and can be utilized in other IDEs by creating an interface for communicating with the server over Json-RPC.

How to install

  1. Open Visual Studio Code
  2. Open the Extensions Tab
  3. Search for ZeroSyntax
  4. Click Install
  5. Click Reload
  6. Done!

Functionallities

ZeroSyntax language server supports the following functionallities:

  • Formatting
  • Diagnostics
  • Code Completion

Formatting

To format a ini file you can use the following command:

  1. Access it from the Command Pallette (Ctrl+Shift+P or Cmd+Shift+P on Mac)
  2. Write:
> Format Document
  1. Press Enter

Diagnostics

Diagnostics works out of the box. Any syntax errors will be highlighted in the editor.

Code Completion

The server supports context based code completion. This is done by analyzing the syntax tree and collecting possible completions based on the current context.

  1. Write some code
  2. Press Ctrl+Space

Completions

Contributing

See CONTRIBUTIN

Licsens

This projct is under the MIT LICENSE

Sugestions

As this is my first open-source project, if you have any ideas or suggestions please write to me on either Discord or mail. (Discord might be better)

Questions

Discord: ViTeXFTW#6644
Mail: [email protected]